Skip to content

build(deps): upgrade dependencies and drop @babel/types - #18

Merged
wuchendi merged 1 commit into
mainfrom
build/upgrade-dependencies
Nov 28, 2026
Merged

wuchendi merged 1 commit into
mainfrom
build/upgrade-dependencies

Conversation

@wuchendi

Copy link
Copy Markdown
Owner

What

Upgrades the dependencies to their latest versions within the pinned lines, in one change.

Dependency From To
@biomejs/biome 2.6.7 2.6.9
@playwright/test 1.65.0 1.65.1
@types/node 26.6.6 26.6.11
vite 8.3.8 8.4.0
vitest 5.1.0 5.1.2
intl-messageformat 12.1.5 12.2.1
vue (Vue 3 targets) 3.5.45 3.5.46
vue-router (Vue 3 targets) 5.5.1 5.5.3

The scaffold templates, the versions written into generated projects and the source panel typings follow. The lockfile is regenerated from scratch, which also refreshes 70 transitive dependencies (minor and patch versions only, e.g. rolldown 1.3.2 -> 1.3.4).

Unchanged on purpose: the Vue 2 stack, React 16, Monaco 0.52 and the component libraries.

Why one change

The Biome bump was split by Dependabot into three pull requests (root, Vue 2 template, Vue 3 template), and create-lowcode/tests/versions.test.ts requires the three to match, so each fails alone.

Fix that came with the upgrade

vue-router 5.5.3 reads the __VUE_OPTIONS_API__ build flag. The UMD bundles inline vue-router and did not define it, so the Vue 3 canvas threw __VUE_OPTIONS_API__ is not defined and rendered nothing. The flag is now defined for both distributions. Unit tests do not load the bundles; the E2E checks caught it.

Also

@babel/types is no longer a dependency. The source panel imported one type from it to cast the result of acorn, which acorn types itself.

Verification

Run locally after pnpm clean, deleting the lockfile and a fresh install:

  • pnpm lint, pnpm lint:type, pnpm check:publint
  • pnpm test: 491 passed
  • pnpm test:e2e against the production designer build: 36 passed

Supersedes #13, #14, #15, #16 and #17.

Biome 2.6.9, Playwright 1.65.1, @types/node 26.6.11, Vite 8.4.0, Vitest
5.1.2, intl-messageformat 12.2.1, Vue 3.5.46 and vue-router 5.5.3, in the
catalogs, the scaffold templates, the versions of generated projects and
the source panel typings. The lockfile is regenerated. The pinned lines
(Vue 2 stack, React 16, Monaco 0.52, the component libraries) are unchanged.

vue-router 5.5.3 reads the __VUE_OPTIONS_API__ build flag: define it for
the UMD bundles, which inline vue-router and otherwise throw in the Vue 3
canvas.

The source panel no longer depends on @babel/types: it was used for one
cast of acorn's result, which acorn types itself.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying lowcode-vue with  Cloudflare Pages  Cloudflare Pages

Latest commit: f56b8ba
Status: ✅  Deploy successful!
Preview URL: https://f3367f9a.lowcode-vue.pages.dev
Branch Preview URL: https://build-upgrade-dependencies.lowcode-vue.pages.dev

View logs

@wuchendi wuchendi self-assigned this Nov 28, 2026
@wuchendi
wuchendi merged commit 14343a1 into main Nov 28, 2026
4 checks passed
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.

1 participant