Repository navigation
chore(deps)!: compile with typescript 7 and support node 26 - #172
Conversation
move dev tooling to @loopback/build 13, eslint-config 17, testlab 9, @types/node 22 and typescript-eslint ~8.72.2. lb-tsc compiles with typescript 7 (@typescript/native) and typescript is aliased to the typescript 6 api for eslint. add node 26 to engines and the ci matrix. runtime stays on loopback 7. drop the unused catch binding in the authorization action provider and add src/release_notes/ to .eslintignore, since typescript-eslint 8 fails to parse js files outside the ts project. no behaviour change. GH-171 BREAKING CHANGE: yes
|
rohit-sourcefuse
left a comment
There was a problem hiding this comment.
Thanks Piyush. I checked it out and ran it against master.
What I verified
npm ci --ignore-scripts, build, lint (npm run eslintand plainnpx eslint .) and the 21 tests pass on master and on this branch, andnpm lsexits 0 on both.- What consumers install does not change. The file list and
.d.tsfiles are identical, and the compiled JS differs only in helper variable names andcatch (error)becomingcatch (_a). The only manifest change isenginesgaining 26. npm audit --omit=devis 0 on both. All lockfile entries resolve from registry.npmjs.org, and no new package has an install script.- Putting
src/release_notes/in.eslintignoreworks for bothlb-eslintand plain eslint.
Before merging: release version and notes
Same as audit-log#180. The repo squash-merges with the commit messages as the body, and I ran that message through the repo's semantic-release config: with the ! title and the BREAKING CHANGE: / yes footer it releases 10.0.0, and the BREAKING CHANGES section says yes.
Since nothing a consumer installs changes, I don't think this needs a major. @sourceloop/core and authentication-service depend on ^9.0.0, so 10.0.0 would need a catalog bump before anyone gets it. My suggestion is to squash as chore(deps): ... and delete the footer. If the team does want a major, please replace yes with a real note.
Approving, with the release note to sort out at squash time.



Description
Fixes #171
This compiles the package with the TypeScript 7 native compiler and adds Node.js 26 to the supported engines and the CI matrix.
The runtime stays on LoopBack 7. The LoopBack 8 packages still peer on
@loopback/core^7, so moving now would nest a second LoopBack copy in every LoopBack 7 app. The LoopBack 8 move comes in a separate release.BREAKING CHANGE: Yes
Consumers see two changes.
enginesnow includes Node.js 26, and the package is built with TypeScript 7. The published declaration files stay usable from TypeScript 5.9 consumers.What changes:
@loopback/build13,@loopback/eslint-config17 (from 16),@loopback/testlab9 and@types/node22.lb-tscruns on@typescript/native7.0.2. eslint and editors usetypescriptaliased to@typescript/typescript6.~8.72.2. From 8.73 it peers on the TypeScript 7.1 dev builds, which breaksnpm ls.enginesand the CI matrix add Node.js 26 (22 || 24 || 26).src/providers/authorization-action.provider.tsis dropped (catch {}).src/release_notes/is added to.eslintignore. typescript-eslint 8 reports a parse error for JavaScript files outside the TypeScript project, and those scripts are only run by hand. It sits in.eslintignorerather thanignorePatternsso that it applies to lb-eslint, plainnpx eslint .and editors alike.Known limitation
LoopBack 7 declares
engines: 20 || 22 || 24, so npm on Node.js 26 prints EBADENGINE warnings for the@loopback/*packages. These are warnings only. Install, build and tests work, and nothing fails unlessengine-strictis set. Any LoopBack 7 app on Node.js 26 sees the same warnings from its own dependencies. They go away with LoopBack 8.Type of change
How has this been tested?
lb-tscbuilds with TypeScript 7.0.2. Build and lint are clean.npm testpasses (21 tests) on Node.js 22, 24 and 26.npm lsis clean.npm ciworks on npm 10 and npm 11.@sourceloop/core) on Node.js 22, 24 and 26. The install result matches the published 9.0.1 release, with one@loopback/corein the tree.slCLI was tested end to end on Node.js 26. Permission-based allow and deny checks pass (13 checks).Checklist