Repository navigation
build(deps): upgrade dependencies and drop @babel/types - #18
Merged
Merged
Conversation
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.
Deploying lowcode-vue with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Upgrades the dependencies to their latest versions within the pinned lines, in one change.
@biomejs/biome@playwright/test@types/nodevitevitestintl-messageformatvue(Vue 3 targets)vue-router(Vue 3 targets)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.tsrequires 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 definedand rendered nothing. The flag is now defined for both distributions. Unit tests do not load the bundles; the E2E checks caught it.Also
@babel/typesis 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:publintpnpm test: 491 passedpnpm test:e2eagainst the production designer build: 36 passedSupersedes #13, #14, #15, #16 and #17.