Skip to content

Commit e93ead4

Browse files
feat(operators): introduce @ngrx/operators package (#4097)
Closes #4057
1 parent f28ea71 commit e93ead4

File tree

81 files changed

+3008
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3008
-61
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ The following is the list of supported scopes:
137137
- **entity**
138138
- **eslint-plugin**
139139
- **example**
140+
- **operators**
140141
- **router-store**
141142
- **schematics**
142143
- **signals**

build/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export const packages: PackageDescription[] = fs
2020
return false;
2121
}
2222

23-
// TODO: Remove signals when released as a stable package
24-
if (path.includes('eslint-plugin') || path.includes('signals')) {
23+
if (path.includes('eslint-plugin')) {
2524
return false;
2625
}
2726

build/copy-schematics-core.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const copySchematics = createBuilder([
88

99
copySchematics({
1010
scope: '@ngrx',
11-
// TODO: Remove signals when released as a stable package
12-
packages: [...packages, { name: 'signals' }],
11+
packages: [...packages],
1312
}).catch((err) => {
1413
console.error(err);
1514
process.exit(1);

build/publish-latest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export async function publishLatestToNpm() {
1717
'schematics',
1818
'eslint-plugin',
1919
'data',
20+
'signals',
21+
'operators',
2022
];
2123

2224
for (let pkg of publishablePackages) {

build/publish-next.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export async function publishNextToNpm() {
1717
'schematics',
1818
'eslint-plugin',
1919
'data',
20+
'signals',
21+
'operators',
2022
];
2123

2224
for (let pkg of publishablePackages) {

modules/component-store/ng-package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/modules/component-store",
44
"assets": ["migrations/**/*.json", "schematics/**/*.json", "**/files/**/*"],
5+
"allowedNonPeerDependencies": ["@ngrx/operators"],
56
"lib": {
67
"entryFile": "index.ts"
78
}

modules/component-store/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/component-store",
3-
"version": "16.3.0",
3+
"version": "17.0.0-beta.0",
44
"description": "Reactive store for component state",
55
"repository": {
66
"type": "git",
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/ngrx/platform#readme",
2424
"peerDependencies": {
25-
"@angular/core": "^16.0.0",
25+
"@angular/core": "^17.0.0-rc.0",
2626
"rxjs": "^6.5.3 || ^7.5.0"
2727
},
2828
"schematics": "./schematics/collection.json",
@@ -38,11 +38,13 @@
3838
"@ngrx/store-devtools",
3939
"@ngrx/component-store",
4040
"@ngrx/component",
41-
"@ngrx/eslint-plugin"
41+
"@ngrx/eslint-plugin",
42+
"@ngrx/signals"
4243
],
4344
"migrations": "./migrations/migration.json"
4445
},
4546
"dependencies": {
47+
"@ngrx/operators": "17.0.0-beta.0",
4648
"tslib": "^2.0.0"
4749
}
4850
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^16.3.0';
1+
export const platformVersion = '^17.0.0-beta.0';

modules/component-store/spec/types/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export const compilerOptions = () => ({
55
experimentalDecorators: true,
66
paths: {
77
'@ngrx/component-store': ['./modules/component-store'],
8+
'@ngrx/operators': ['./modules/operators'],
89
},
910
});

modules/component-store/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from './component-store';
2-
export * from './tap-response';
2+
export { tapResponse } from '@ngrx/operators';
33
export {
44
provideComponentStore,
55
OnStateInit,

0 commit comments

Comments
 (0)