Skip to content

docs: Migration guide for 0.13 - #3492

Open
iwoplaza wants to merge 1 commit into
mainfrom
docs/migration-0-13
Open

iwoplaza wants to merge 1 commit into
mainfrom
docs/migration-0-13

Conversation

@iwoplaza

@iwoplaza iwoplaza commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Adds a "Migrating to 0.13" page, so that removing deprecated APIs has a place to point users to. For now it only covers writePartial → patch (and InferPartial → InferPatch), which is being removed in #3484.

More sections can be added as other deprecated APIs get removed before the release.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/eslint-plugin-typegpu@8fe031b9450ba3836b2ae25fa8b9efd453b745ae
https://pkg.pr.new/software-mansion/TypeGPU/tinyest@8fe031b9450ba3836b2ae25fa8b9efd453b745ae
https://pkg.pr.new/software-mansion/TypeGPU/tinyest-for-wgsl@8fe031b9450ba3836b2ae25fa8b9efd453b745ae
https://pkg.pr.new/software-mansion/TypeGPU/typegpu@8fe031b9450ba3836b2ae25fa8b9efd453b745ae
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/gl@8fe031b9450ba3836b2ae25fa8b9efd453b745ae
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@8fe031b9450ba3836b2ae25fa8b9efd453b745ae

benchmark
view benchmark

commit
view commit

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Resolution Time Benchmark

---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.84, 1.69, 3.80, 6.01, 7.32, 10.59, 22.79, 26.44]
  line [0.82, 1.72, 3.69, 6.24, 6.83, 10.62, 22.86, 25.91]
  line [0.77, 1.60, 3.63, 5.98, 6.71, 10.72, 21.03, 22.75]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.24, 0.45, 0.59, 0.71, 0.89, 0.96, 1.12, 1.27]
  line [0.26, 0.41, 0.56, 0.68, 0.92, 0.97, 1.16, 1.29]
  line [0.18, 0.45, 0.56, 0.63, 0.85, 0.91, 1.06, 1.22]
Loading
---
config:
  themeVariables:
    xyChart:
      plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
  title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
  x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
  y-axis "time (ms)"
  line [0.78, 2.16, 3.69, 6.80, 14.20, 27.43, 54.51, 111.23]
  line [0.85, 2.09, 3.68, 6.96, 14.32, 27.08, 56.85, 111.20]
  line [0.76, 1.80, 3.31, 6.60, 11.25, 23.72, 53.10, 99.39]
Loading

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Bundle size comparison (import * as ... in PR vs import * as ... in target):

🟢 Decreased ➖ Unchanged 🔴 Increased ❔ Unknown
0 360 0 0

No notable changes.

If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu.

@iwoplaza
iwoplaza force-pushed the docs/migration-0-13 branch from d8d4587 to 8fe031b Compare December 4, 2026 15:31
@iwoplaza
iwoplaza marked this pull request as ready for review December 4, 2026 15:31
@iwoplaza
iwoplaza requested review from aleksanderkatan, cieplypolar, reczkok and vende11s and a balanced review from Copilot December 4, 2026 15:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the TypeGPU 0.13 migration guide and sidebar update.

No open issues 🎉

What changed in this PR

Adds a TypeGPU 0.13 migration guide ahead of the deprecated API removals in #3484.

Changes:

  • Documents writePartial → patch and InferPartial → InferPatch, including sparse and nested array examples.
  • Adds the guide to the migrations sidebar.
File Description
apps/​typegpu-docs/​src/​content/​docs/​migrations/​0-13.mdx Adds migration instructions and examples.
apps/​typegpu-docs/​astro.config.mjs Adds the 0.13 migration sidebar link.

Review effort: Balanced

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • New 0.13 migration page — documents writePartial → patch, the array-shape change to { [idx]: value } (including arrays nested in structs), and InferPartial → InferPatch.
  • Sidebar entry — adds "Migrating to 0.13" above 0.12, matching the newest-first ordering already in astro.config.mjs.

Verified the documented patch shapes against getPatchInstructions in packages/typegpu/src/data/partialIO.ts and confirmed InferPatch is exported from typegpu/data. packages/typegpu/skills has no writePartial/InferPartial references, so no skill updates are needed. Formatting passes oxfmt --check.

One sequencing note, not a blocker: docs deploy from main, so this page goes live while writePartial still exists in released 0.12.x and the removal PR #3484 is unmerged.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants