chore: update dependencies#2623
Conversation
Update most dependencies to their latest versions.
| // getOffsetParents returns only transformed or non-statically-positioned | ||
| // ancestors, plus the document body (always included as the last entry). |
There was a problem hiding this comment.
This change is here because Jest was updated
|
Visual regression report✅ No changes.
Baselines come from the |
| import { Project } from '@lerna/project' | ||
| const syncRootPackageVersion = async (useProjectVersion: boolean) => { | ||
| const project = new Project(process.cwd()) | ||
| const syncRootPackageVersion = async () => { |
There was a problem hiding this comment.
I've removed the deprecated lerna/project package and added code that has the same behaviour
Bump vitest from ^3.2.2 to ^4.1.9 across all packages and @types/jest from ^29.5.14 to ^30.0.0. Adjust vitest.setup.ts and tsconfig files for the new major versions.
…on reader Drop the deprecated @lerna/project dependency and read the project version directly by walking up to the nearest lerna.json. Removes the associated deprecated transitive deps from the lockfile. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…h local Package class Drop the deprecated @lerna/package dependency and implement a minimal local Package class in pkg-utils exposing name/location/version/serialize. Update ui-scripts to use the version getter/setter instead of the old get/set API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
|
||
| mark('Deleting build artifacts') | ||
| execSync(path.resolve('scripts/clean.js'), opts) | ||
| execSync(path.resolve('scripts/clean.mjs'), opts) |
| "@babel/runtime": "^7.29.7", | ||
| "@babel/standalone": "^7.29.3", | ||
| "codesandbox": "^2.2.3", | ||
| "codesandbox-import-utils": "^2.2.3", |
There was a problem hiding this comment.
This package has wayyy less transitive dependencies
| import type { PackageJson, NormalizeOptions } from 'read-package-up' | ||
| import childProcess from 'child_process' | ||
|
|
||
| export class Package { |
There was a problem hiding this comment.
This is copied from Lerna's source code, they are no longer exporting this class
| settings: { | ||
| // The rule resolves import paths via eslint-module-utils. Without | ||
| // TypeScript extensions the default node resolver can't resolve .ts/.tsx | ||
| // files, resolve.default() returns undefined and the rule silently bails. | ||
| "import/resolver": { | ||
| node: { | ||
| extensions: [".js", ".jsx", ".ts", ".tsx", ".json"] | ||
| } | ||
| } | ||
| }, |
There was a problem hiding this comment.
While doing some refactoring here to remove pkg-utils it turned out that this plugin was not working at all :/
I really dont like ESLint its slow and full of ways where it fails silently
…te deps Finalize the merge of @instructure/pkg-utils into ui-scripts: move its package utilities into lib/utils/pkg-utils/package-utils.ts, add getPackages() there, and repoint all imports (bump, deprecate, publish, publish-private, tag, npm, addNewExportsEntiresToPackageJSONs) at the local module. Drop the package from the tsconfig references and the eslint node-package list. Convert the root scripts/*.js to ESM (.mjs) so they can consume the ESM-only chalk 5 and read-package-up, and update dependencies: chalk 5, which 7, read-package-up 12, @vitejs/plugin-react, and codesandbox-import-utils. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
| }) | ||
| }) | ||
|
|
||
| it('should close when Esc key is pressed', async () => { |
There was a problem hiding this comment.
This test was randomly failing because its async and does not have an await.
This seems to be a systematic issue with Cypress tests, I'll fix them in a later PR
Update most dependencies to their latest versions.
vitestfrom ^3.2.2 to ^4.1.9 across all packages. Adjustvitest.setup.tsandtsconfigfiles for the new major versions.@lerna/projectdependency and read the project versiondirectly by walking up to the nearest
lerna.json.@lerna/packagedependency and implement it directlypkg-utilsand move its code toui-scripts/lib/utils/pkg-utilsI suggest to look at the PR per commit, its divided into distinct parts
to test: