Update project dependencies (#12211)#12212
Conversation
| Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis pull request updates multiple project dependencies across the codebase. NuGet packages (Jint, Scalar, Aspire suite, Plugin.LocalNotification, Microsoft.SemanticKernel, and Microsoft.Identity.Web) are updated to their latest versions. npm packages (esbuild and TypeScript) are bumped to newer versions, with TypeScript 6.0.2 requiring the addition of Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates JavaScript/TypeScript and .NET dependencies across multiple client projects and the Boilerplate template to address issue #12211 (outdated dependencies).
Changes:
- Bump JS toolchain versions (TypeScript 6.0.2, esbuild 0.27.4) and add
ignoreDeprecationsto severaltsconfig.jsonfiles. - Update Boilerplate template dependencies (Aspire AppHost SDK 13.2.0, Aspire-related package versions, Scalar.AspNetCore, Plugin.LocalNotification, SemanticKernel, Microsoft.Identity.Web).
- Bump Jint to 4.6.4 in demo server and Extras.
Reviewed changes
Copilot reviewed 21 out of 30 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/Websites/Sales/src/Bit.Websites.Sales.Client/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/Websites/Sales/src/Bit.Websites.Sales.Client/package.json | Bump esbuild/typescript devDependencies. |
| src/Websites/Sales/src/Bit.Websites.Sales.Client/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/Websites/Platform/src/Bit.Websites.Platform.Client/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/Websites/Platform/src/Bit.Websites.Platform.Client/package.json | Bump esbuild/typescript devDependencies. |
| src/Websites/Platform/src/Bit.Websites.Platform.Client/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/Websites/Careers/src/Bit.Websites.Careers.Client/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/Websites/Careers/src/Bit.Websites.Careers.Client/package.json | Bump esbuild/typescript devDependencies. |
| src/Websites/Careers/src/Bit.Websites.Careers.Client/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Boilerplate.Server.AppHost.csproj | Update Aspire AppHost SDK and remove explicit Aspire.Hosting.AppHost reference. |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props | Update centralized package versions (Aspire, LocalNotification, Scalar, SemanticKernel, Identity.Web, etc.). |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Platforms/Android/MainActivity.cs | Update LocalNotification constants/types usage for newer package version. |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package.json | Bump TypeScript devDependency. |
| src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package-lock.json | Sync lockfile for TypeScript update. |
| src/Butil/Bit.Butil/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/Butil/Bit.Butil/package.json | Bump esbuild/typescript devDependencies. |
| src/Butil/Bit.Butil/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/Bswup/Bit.Bswup/package.json | Bump esbuild/typescript devDependencies. |
| src/Bswup/Bit.Bswup/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/package.json | Bump esbuild/typescript devDependencies. |
| src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj | Bump Jint package version. |
| src/BlazorUI/Bit.BlazorUI/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/BlazorUI/Bit.BlazorUI/package.json | Bump esbuild/typescript devDependencies. |
| src/BlazorUI/Bit.BlazorUI/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/BlazorUI/Bit.BlazorUI.Extras/tsconfig.json | Add ignoreDeprecations for TS 6 and adjust trailing comma. |
| src/BlazorUI/Bit.BlazorUI.Extras/package.json | Bump esbuild/typescript devDependencies. |
| src/BlazorUI/Bit.BlazorUI.Extras/package-lock.json | Sync lockfile for esbuild/typescript updates. |
| src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj | Bump Jint package version. |
Files not reviewed (9)
- src/BlazorUI/Bit.BlazorUI.Extras/package-lock.json: Language not supported
- src/BlazorUI/Bit.BlazorUI/package-lock.json: Language not supported
- src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/package-lock.json: Language not supported
- src/Bswup/Bit.Bswup/package-lock.json: Language not supported
- src/Butil/Bit.Butil/package-lock.json: Language not supported
- src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package-lock.json: Language not supported
- src/Websites/Careers/src/Bit.Websites.Careers.Client/package-lock.json: Language not supported
- src/Websites/Platform/src/Bit.Websites.Platform.Client/package-lock.json: Language not supported
- src/Websites/Sales/src/Bit.Websites.Sales.Client/package-lock.json: Language not supported
There was a problem hiding this comment.
Actionable comments posted: 10
🧹 Nitpick comments (1)
src/BlazorUI/Bit.BlazorUI/tsconfig.json (1)
8-9: Consider migrating away from the deprecatedoutFileoption.The
outFileoption combined with namespace declarations (as shown in the relevant code snippets) is a legacy TypeScript compilation pattern that's deprecated in TypeScript 6.0. WhileignoreDeprecationstemporarily suppresses warnings, this approach may be unsupported in future versions. Consider migrating to modern ES modules with a bundler like esbuild.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/BlazorUI/Bit.BlazorUI/tsconfig.json` around lines 8 - 9, The tsconfig currently uses the deprecated "outFile" producing wwwroot/scripts/bit.blazorui.js and silences the warning with "ignoreDeprecations": "6.0"; remove the "outFile" entry and stop relying on legacy namespace concatenation, switch the TS module target to an ES module (e.g., set "module" to "esnext" or similar in tsconfig.json), update source files to use ES module exports/imports instead of TypeScript namespaces, and add a bundler step (esbuild/webpack/rollup) in the project build scripts to emit a single bundle into wwwroot/scripts/bit.blazorui.js so you no longer need "ignoreDeprecations" or outFile. Ensure you update any build targets and CI tasks that referenced outFile and verify runtime imports in the Blazor UI consume the new bundled ES module output.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed. Inline comments: In `@src/BlazorUI/Bit.BlazorUI.Extras/tsconfig.json`: - Around line 8-9: The tsconfig.json uses "outFile" which requires an explicit rootDir in TypeScript 6.0 to avoid TS5011; add a "rootDir" property (e.g., "rootDir": "Scripts" or "./Scripts") alongside "outFile" and "ignoreDeprecations" so the compiler knows the common source directory and the build error is resolved. In `@src/BlazorUI/Bit.BlazorUI/package.json`: - Around line 3-5: The package.json dependency "typescript": "6.0.2" is invalid; update the TypeScript version declaration to a valid release (for example set "typescript" to "5.9.3" or to a valid 6.x prerelease such as "6.0.1-rc" or "6.0.0-beta") so npm install will succeed—modify the "typescript" entry in the Bit.BlazorUI/package.json dependencies accordingly. In `@src/BlazorUI/Bit.BlazorUI/tsconfig.json`: - Around line 8-9: The TS build fails with TS5011 because tsconfig.json uses "outFile" without an explicit "rootDir"; update the tsconfig.json next to the existing "outFile": "wwwroot/scripts/bit.blazorui.js" to add a "rootDir" property (e.g., "rootDir": "./Scripts" or the actual common source directory for Bit.BlazorUI sources) so TypeScript 6+ can resolve the common source root when producing the single concatenated output. In `@src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/tsconfig.json`: - Around line 8-9: TS build fails with TS5011 because tsconfig.json uses "outFile": "wwwroot/scripts/app.js" but doesn't set "rootDir"; add an explicit "rootDir" property to the tsconfig.json (e.g., point to the common source folder like "Scripts" or the actual source root) so the compiler knows the input root. Update the tsconfig.json by adding "rootDir": "<your-source-root>" at the same level as "outFile" and "ignoreDeprecations" (preserve existing keys), then re-run the build to ensure the TS5011 error is resolved. In `@src/Bswup/Bit.Bswup/package.json`: - Around line 3-4: TypeScript was bumped to 6.0.2 in package.json which triggers TS5011 for projects using outFile without an explicit compilerOptions.rootDir; add a "rootDir" entry under "compilerOptions" in each affected tsconfig.json (specifically Bit.BlazorUI/tsconfig.json, Bit.BlazorUI.Extras/tsconfig.json, Bit.BlazorUI.Demo.Client.Core/tsconfig.json, Bit.Butil/tsconfig.json, Bit.Websites.Careers.Client/tsconfig.json, Bit.Websites.Platform.Client/tsconfig.json, Bit.Websites.Sales.Client/tsconfig.json) pointing to the appropriate source root (e.g., "src" or the folder containing your TypeScript sources) so the compiler has an explicit rootDir and TS5011 is avoided when building with TypeScript 6.0.2. In `@src/Butil/Bit.Butil/tsconfig.json`: - Around line 7-9: TS5011 occurs because TypeScript needs an explicit rootDir when using outFile; update the tsconfig.json to add a "rootDir" property pointing to the common source directory (e.g., "Scripts") next to "outFile" and "ignoreDeprecations" so the compiler knows the input root. Edit the tsconfig.json JSON object (the same block containing "outFile": "wwwroot/bit-butil.js") and add "rootDir": "Scripts" (or the actual source folder used in the project) to resolve the compilation error. - Line 8: The tsconfig.json contains an invalid ignoreDeprecations value ("6.0"); update the ignoreDeprecations setting in tsconfig.json (property name: ignoreDeprecations) to a valid TypeScript version (for example "5.9" or "5.9.3") or remove the setting entirely if you don't need to suppress deprecation warnings; ensure the change is made where ignoreDeprecations is defined so the compiler no longer targets a non-existent TypeScript release. In `@src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package.json`: - Line 8: Add the TypeScript 6 deprecation suppression to the project's tsconfig.json by adding the compilerOptions entry "ignoreDeprecations": "6.0" (so the compilerOptions block in src/Templates/.../Boilerplate.Client.Core/tsconfig.json includes ignoreDeprecations set to "6.0"); this ensures compatibility with the project’s declared TypeScript version ("typescript": "6.0.2") and prevents deprecation warnings during build/editor use. In `@src/Websites/Platform/src/Bit.Websites.Platform.Client/tsconfig.json`: - Line 9: The tsconfig contains an invalid/unsupported ignoreDeprecations value; update the "ignoreDeprecations" property (in tsconfig.json) to target a real stable TypeScript version (e.g., change "ignoreDeprecations": "6.0" to "5.9") or remove the "ignoreDeprecations" entry entirely if you do not intend to rely on pre-release TypeScript builds so the setting no longer points at a non-existent TS 6.0.x version. In `@src/Websites/Sales/src/Bit.Websites.Sales.Client/tsconfig.json`: - Around line 8-9: The tsconfig.json currently sets "outFile" (wwwroot/scripts/app.js) but lacks an explicit "rootDir", causing TS5011 under TypeScript 6.0; update the tsconfig.json to add a "rootDir" property pointing to the common source directory (e.g., "Scripts" or the correct source folder) so the compiler can determine inputs when using outFile, and ensure this key sits alongside "outFile" and "ignoreDeprecations" in the same compilerOptions object. --- Nitpick comments: In `@src/BlazorUI/Bit.BlazorUI/tsconfig.json`: - Around line 8-9: The tsconfig currently uses the deprecated "outFile" producing wwwroot/scripts/bit.blazorui.js and silences the warning with "ignoreDeprecations": "6.0"; remove the "outFile" entry and stop relying on legacy namespace concatenation, switch the TS module target to an ES module (e.g., set "module" to "esnext" or similar in tsconfig.json), update source files to use ES module exports/imports instead of TypeScript namespaces, and add a bundler step (esbuild/webpack/rollup) in the project build scripts to emit a single bundle into wwwroot/scripts/bit.blazorui.js so you no longer need "ignoreDeprecations" or outFile. Ensure you update any build targets and CI tasks that referenced outFile and verify runtime imports in the Blazor UI consume the new bundled ES module output. 🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 5c27b34e-d6b2-4a50-bbbe-0f8f58286dd7
⛔ Files ignored due to path filters (9)
src/BlazorUI/Bit.BlazorUI.Extras/package-lock.jsonis excluded by!**/package-lock.jsonsrc/BlazorUI/Bit.BlazorUI/package-lock.jsonis excluded by!**/package-lock.jsonsrc/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Bswup/Bit.Bswup/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Butil/Bit.Butil/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Websites/Careers/src/Bit.Websites.Careers.Client/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Websites/Platform/src/Bit.Websites.Platform.Client/package-lock.jsonis excluded by!**/package-lock.jsonsrc/Websites/Sales/src/Bit.Websites.Sales.Client/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (21)
src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csprojsrc/BlazorUI/Bit.BlazorUI.Extras/package.jsonsrc/BlazorUI/Bit.BlazorUI.Extras/tsconfig.jsonsrc/BlazorUI/Bit.BlazorUI/package.jsonsrc/BlazorUI/Bit.BlazorUI/tsconfig.jsonsrc/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csprojsrc/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/package.jsonsrc/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/tsconfig.jsonsrc/Bswup/Bit.Bswup/package.jsonsrc/Butil/Bit.Butil/package.jsonsrc/Butil/Bit.Butil/tsconfig.jsonsrc/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/package.jsonsrc/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Maui/Platforms/Android/MainActivity.cssrc/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.propssrc/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.AppHost/Boilerplate.Server.AppHost.csprojsrc/Websites/Careers/src/Bit.Websites.Careers.Client/package.jsonsrc/Websites/Careers/src/Bit.Websites.Careers.Client/tsconfig.jsonsrc/Websites/Platform/src/Bit.Websites.Platform.Client/package.jsonsrc/Websites/Platform/src/Bit.Websites.Platform.Client/tsconfig.jsonsrc/Websites/Sales/src/Bit.Websites.Sales.Client/package.jsonsrc/Websites/Sales/src/Bit.Websites.Sales.Client/tsconfig.json
closes #12211
Summary by CodeRabbit
Chores
Improvements