Skip to content

Commit f64349d

Browse files
Merge branch 'main' into master
2 parents ec58077 + 7108d84 commit f64349d

File tree

27 files changed

+4418
-7127
lines changed

27 files changed

+4418
-7127
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json.
22
{
33
"name": "Platform",
4-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1.0-20-bullseye",
4+
"image": "mcr.microsoft.com/devcontainers/typescript-node:22-bullseye",
55

66
// Features to add to the dev container. More info: https://containers.dev/features.
77
"features": {

.devcontainer/ngrx.io/devcontainer.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

build/util.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ export function getPackageFilePath(pkg: string, filename: string) {
102102
return baseDir(`./modules/${pkg}/${filename}`);
103103
}
104104

105-
const sorcery = require('sorcery');
106-
export async function mapSources(file: string) {
107-
const chain = await sorcery.load(file);
108-
chain.write();
109-
}
110-
111105
const ora = require('ora');
112106
async function runTask(name: string, taskFn: () => Promise<any>) {
113107
const spinner = ora(name);

migrate-content.js

Lines changed: 0 additions & 81 deletions
This file was deleted.

modules/eslint-plugin/spec/rules/store/on-function-explicit-return-type.spec.ts

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const reducer = createReducer(
2929
const reducer = createReducer(
3030
initialState,
3131
on(increment, incrementFunc),
32-
on(increment, s => incrementFunc(s)),
3332
on(increment, (s): State => incrementFunc(s)),
3433
)`,
3534
`
@@ -174,6 +173,57 @@ const reducer = createReducer(
174173
const reducer = createReducer(
175174
initialState,
176175
on(reset, (): State => initialState ),
176+
)`,
177+
},
178+
],
179+
},
180+
],
181+
},
182+
{
183+
code: `
184+
const reducer = createReducer(
185+
initialState,
186+
on(reset, s => foo(s)),
187+
)`,
188+
errors: [
189+
{
190+
column: 13,
191+
endColumn: 24,
192+
line: 4,
193+
messageId: onFunctionExplicitReturnType,
194+
suggestions: [
195+
{
196+
messageId: onFunctionExplicitReturnTypeSuggest,
197+
output: `
198+
const reducer = createReducer(
199+
initialState,
200+
on(reset, (s): State => foo(s)),
201+
)`,
202+
},
203+
],
204+
},
205+
],
206+
},
207+
// https://github.com/ngrx/platform/issues/4901
208+
{
209+
code: `
210+
const reducer = createReducer(
211+
initialState,
212+
on(reset, s => ({ ...s, counter: Number(1) })),
213+
)`,
214+
errors: [
215+
{
216+
column: 13,
217+
endColumn: 48,
218+
line: 4,
219+
messageId: onFunctionExplicitReturnType,
220+
suggestions: [
221+
{
222+
messageId: onFunctionExplicitReturnTypeSuggest,
223+
output: `
224+
const reducer = createReducer(
225+
initialState,
226+
on(reset, (s): State => ({ ...s, counter: Number(1) })),
177227
)`,
178228
},
179229
],

modules/eslint-plugin/src/utils/selectors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const dispatchInEffects = (name: RegExp | string) =>
6969
export const createReducer = `CallExpression[callee.name='createReducer']`;
7070

7171
export const onFunctionWithoutType =
72-
`${createReducer} CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation], :has(CallExpression))` as const;
72+
`${createReducer} CallExpression[callee.name='on'] > ArrowFunctionExpression:not([returnType.typeAnnotation])` as const;
7373

7474
export const storeActionReducerMap =
7575
`${ngModuleImports} CallExpression[callee.object.name='StoreModule'][callee.property.name=/^for(Root|Feature)$/] > ObjectExpression:first-child` as const;

package.json

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,9 @@
8080
"@angular/platform-browser-dynamic": "20.0.0",
8181
"@angular/platform-server": "20.0.0",
8282
"@angular/router": "20.0.0",
83-
"@codemirror/autocomplete": "^6.16.2",
84-
"@codemirror/commands": "^6.6.0",
85-
"@codemirror/lang-angular": "^0.1.3",
86-
"@codemirror/lang-javascript": "^6.2.2",
87-
"@codemirror/lang-sass": "^6.0.2",
88-
"@codemirror/language": "^6.10.2",
89-
"@codemirror/search": "^6.5.6",
90-
"@codemirror/state": "^6.4.1",
91-
"@codemirror/tooltip": "^0.19.16",
92-
"@codemirror/view": "^6.28.1",
93-
"@lezer/common": "^1.2.1",
94-
"@lezer/javascript": "^1.4.17",
9583
"@microsoft/api-extractor": "^7.52.4",
9684
"@microsoft/tsdoc": "^0.15.1",
9785
"@nx/angular": "21.1.2",
98-
"@typescript/vfs": "^1.5.3",
99-
"ajv-formats": "^2.1.1",
100-
"core-js": "^2.5.4",
101-
"eslint-etc": "^5.1.0",
102-
"fast-glob": "^3.3.3",
10386
"firebase-admin": "^12.1.1",
10487
"firebase-functions": "^5.0.1",
10588
"front-matter": "^4.0.2",
@@ -109,9 +92,7 @@
10992
"marked-highlight": "^2.2.1",
11093
"marked-mangle": "^1.1.10",
11194
"marked-shiki": "^1.2.0",
112-
"mermaid": "^10.2.4",
11395
"opencollective": "^1.0.3",
114-
"prismjs": "^1.29.0",
11596
"rxjs": "7.8.0",
11697
"semver": "^7.3.6",
11798
"shiki": "~1.6.1",
@@ -155,7 +136,6 @@
155136
"@types/jasmine": "4.0.3",
156137
"@types/jasminewd2": "^2.0.2",
157138
"@types/jest": "29.5.13",
158-
"@types/lodash": "^4.14.80",
159139
"@types/ncp": "^2.0.1",
160140
"@types/node": "^18.16.9",
161141
"@types/ora": "^1.3.1",
@@ -170,13 +150,10 @@
170150
"chokidar-cli": "^1.2.0",
171151
"conventional-changelog": "^1.1.4",
172152
"conventional-changelog-cli": "^1.3.21",
173-
"coveralls": "^2.13.0",
174153
"cpy-cli": "^1.0.1",
175154
"cypress": "14.2.1",
176155
"deep-freeze": "^0.0.1",
177156
"eslint": "8.57.0",
178-
"eslint-config-prettier": "10.0.0",
179-
"eslint-plugin-cypress": "2.14.0",
180157
"eslint-plugin-import": "2.26.0",
181158
"express": "4.21.2",
182159
"fs-extra": "^10.1.0",
@@ -201,32 +178,23 @@
201178
"mkdirp": "^3.0.1",
202179
"ncp": "^2.0.0",
203180
"ng-packagr": "19.2.0",
204-
"npm-run-all": "^4.1.5",
205181
"nx": "21.1.2",
206-
"nyc": "^10.1.2",
207182
"ora": "^1.3.0",
208183
"prettier": "^2.7.1",
209-
"protractor": "7.0.0",
210-
"reflect-metadata": "^0.1.9",
211-
"replace-in-file": "^3.1.1",
212184
"rimraf": "^2.5.4",
213185
"rollup": "~2.59.0",
214186
"rollup-plugin-alias": "^1.4.0",
215187
"rollup-plugin-commonjs": "10.1.0",
216188
"rollup-plugin-node-resolve": "^5.2.0",
217189
"rollup-plugin-sourcemaps": "^0.6.3",
218190
"rxjs-marbles": "^7.0.1",
219-
"sorcery": "^0.10.0",
220191
"ts-jest": "29.1.0",
221192
"ts-loader": "^5.3.3",
222193
"ts-node": "10.9.1",
223194
"ts-snippet": "5.0.2",
224195
"tsconfig-paths": "^3.1.3",
225-
"tsickle": "^0.37.0",
226-
"tsutils": "2.27.2",
227196
"typescript": "5.8.2",
228197
"typescript-eslint": "8.19.0",
229-
"uglify-js": "^3.1.9",
230198
"vite": "^6.3.0",
231199
"vite-tsconfig-paths": "^4.2.0",
232200
"vitest": "2.1.9",
@@ -236,8 +204,5 @@
236204
"type": "opencollective",
237205
"url": "https://opencollective.com/ngrx",
238206
"logo": "https://opencollective.com/opencollective/logo.txt"
239-
},
240-
"overrides": {
241-
"lodash": "^4.17.11"
242207
}
243208
}

0 commit comments

Comments
 (0)