Skip to content

Commit

Permalink
Merge branch 'master' into loadWithQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jan 6, 2023
2 parents 52295f6 + e267d21 commit 84cdba2
Show file tree
Hide file tree
Showing 46 changed files with 1,327 additions and 1,185 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<a name="15.1.0"></a>

# [15.1.0](https://github.com/ngrx/platform/compare/15.0.0...15.1.0) (2022-12-21)

### Bug Fixes

- **component-store:** revert throwError usages with factory for RxJS 6 compatibility ([726dfb7](https://github.com/ngrx/platform/commit/726dfb7))
- **data:** revert throwError usages with factory for RxJS 6 compatibility ([a137b59](https://github.com/ngrx/platform/commit/a137b59)), closes [#3702](https://github.com/ngrx/platform/issues/3702)
- **eslint-plugin:** remove [@angular-devkit](https://github.com/angular-devkit)/schematics dependency ([#3710](https://github.com/ngrx/platform/issues/3710)) ([f0ae915](https://github.com/ngrx/platform/commit/f0ae915)), closes [#3709](https://github.com/ngrx/platform/issues/3709)
- **schematics:** disable package json peer dep updates during build ([#3692](https://github.com/ngrx/platform/issues/3692)) ([9cfc103](https://github.com/ngrx/platform/commit/9cfc103)), closes [#3691](https://github.com/ngrx/platform/issues/3691)
- **store:** support using `createActionGroup` with props typed as unions ([#3713](https://github.com/ngrx/platform/issues/3713)) ([e75fa1a](https://github.com/ngrx/platform/commit/e75fa1a)), closes [#3712](https://github.com/ngrx/platform/issues/3712)

### Features

- **router-store:** add new selectRouteDataParam selector ([#3673](https://github.com/ngrx/platform/issues/3673)) ([#3686](https://github.com/ngrx/platform/issues/3686)) ([81bc0d9](https://github.com/ngrx/platform/commit/81bc0d9))
- **store:** support using`createSelector` with selectors dictionary ([#3703](https://github.com/ngrx/platform/issues/3703)) ([5c87dda](https://github.com/ngrx/platform/commit/5c87dda)), closes [#3677](https://github.com/ngrx/platform/issues/3677)

<a name="15.0.0"></a>

# [15.0.0](https://github.com/ngrx/platform/compare/15.0.0-rc.0...15.0.0) (2022-11-29)
Expand Down
28 changes: 9 additions & 19 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,6 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/data-example-app/src/environments/environment.ts",
"with": "projects/data-example-app/src/environments/environment.prod.ts"
}
],
"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -479,6 +473,7 @@
"tsConfig": "modules/eslint-plugin/tsconfig.build.json",
"packageJson": "modules/eslint-plugin/package.json",
"main": "modules/eslint-plugin/src/index.ts",
"updateBuildableProjectDepsInPackageJson": false,
"sourceMap": false,
"assets": [
"collection.json",
Expand Down Expand Up @@ -552,12 +547,6 @@
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "projects/example-app/src/environments/environment.ts",
"with": "projects/example-app/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
Expand Down Expand Up @@ -846,12 +835,6 @@
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "projects/standalone-app/src/environments/environment.ts",
"with": "projects/standalone-app/src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
Expand Down Expand Up @@ -1041,7 +1024,14 @@
"outputs": ["{workspaceRoot}/coverage/modules/store-devtools"]
}
},
"schematics": {},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
},
"tags": []
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/component-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component-store",
"version": "15.0.0",
"version": "15.1.0",
"description": "Reactive store for component state",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
2 changes: 1 addition & 1 deletion modules/component-store/src/component-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class ComponentStore<T extends object> implements OnDestroy {
return EMPTY;
}

return throwError(() => error);
return throwError(error);
}),
takeUntil(this.destroy$)
)
Expand Down
2 changes: 1 addition & 1 deletion modules/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component",
"version": "15.0.0",
"version": "15.1.0",
"description": "Reactive Extensions for Angular Components",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/component/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
8 changes: 4 additions & 4 deletions modules/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/data",
"version": "15.0.0",
"version": "15.1.0",
"description": "API management for NgRx",
"repository": {
"type": "git",
Expand All @@ -22,9 +22,9 @@
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@ngrx/store": "15.0.0",
"@ngrx/effects": "15.0.0",
"@ngrx/entity": "15.0.0",
"@ngrx/store": "15.1.0",
"@ngrx/effects": "15.1.0",
"@ngrx/entity": "15.1.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/data/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
4 changes: 2 additions & 2 deletions modules/data/src/dataservices/default-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class DefaultDataService<T> implements EntityCollectionDataService<T> {
}
default: {
const error = new Error('Unimplemented HTTP method, ' + method);
result$ = throwError(() => error);
result$ = throwError(error);
}
}
if (this.timeout) {
Expand All @@ -184,7 +184,7 @@ export class DefaultDataService<T> implements EntityCollectionDataService<T> {
return ok;
}
const error = new DataServiceError(err, reqData);
return throwError(() => error);
return throwError(error);
};
}

Expand Down
2 changes: 1 addition & 1 deletion modules/data/src/dataservices/entity-cache-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class EntityCacheDataService {
protected handleError(reqData: RequestData) {
return (err: any) => {
const error = new DataServiceError(err, reqData);
return throwError(() => error);
return throwError(error);
};
}

Expand Down
9 changes: 4 additions & 5 deletions modules/data/src/dispatchers/entity-cache-dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,13 @@ export class EntityCacheDispatcher {
mergeMap((act) => {
return act.type === EntityCacheAction.SAVE_ENTITIES_CANCEL
? throwError(
() =>
new PersistanceCanceled(
(act as SaveEntitiesCancel).payload.reason
)
new PersistanceCanceled(
(act as SaveEntitiesCancel).payload.reason
)
)
: act.type === EntityCacheAction.SAVE_ENTITIES_SUCCESS
? of((act as SaveEntitiesSuccess).payload.changeSet)
: throwError(() => (act as SaveEntitiesError).payload);
: throwError((act as SaveEntitiesError).payload);
})
);
}
Expand Down
4 changes: 2 additions & 2 deletions modules/data/src/dispatchers/entity-dispatcher-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,10 @@ export class EntityDispatcherBase<T> implements EntityDispatcher<T> {
mergeMap((act) => {
const { entityOp } = act.payload;
return entityOp === EntityOp.CANCEL_PERSIST
? throwError(() => new PersistanceCanceled(act.payload.data))
? throwError(new PersistanceCanceled(act.payload.data))
: entityOp.endsWith(OP_SUCCESS)
? of(act.payload.data as D)
: throwError(() => act.payload.data.error);
: throwError(act.payload.data.error);
})
);
}
Expand Down
4 changes: 2 additions & 2 deletions modules/effects/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/effects",
"version": "15.0.0",
"version": "15.1.0",
"description": "Side effect model for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -22,7 +22,7 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@ngrx/store": "15.0.0",
"@ngrx/store": "15.1.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/effects/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
4 changes: 2 additions & 2 deletions modules/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/entity",
"version": "15.0.0",
"version": "15.1.0",
"description": "Common utilities for entity reducers",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@ngrx/store": "15.0.0",
"@ngrx/store": "15.1.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/entity/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
3 changes: 1 addition & 2 deletions modules/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/eslint-plugin",
"version": "15.0.0",
"version": "15.1.0",
"description": "NgRx ESLint Plugin",
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,7 +36,6 @@
},
"sideEffects": false,
"dependencies": {
"@angular-devkit/schematics": "^14.0.0-rc.0",
"@typescript-eslint/experimental-utils": "^5.4.0",
"eslint-etc": "^5.1.0",
"semver": "^7.3.5",
Expand Down
4 changes: 2 additions & 2 deletions modules/router-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/router-store",
"version": "15.0.0",
"version": "15.1.0",
"description": "Bindings to connect @angular/router to @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -23,7 +23,7 @@
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/router": "^15.0.0",
"@ngrx/store": "15.0.0",
"@ngrx/store": "15.1.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
2 changes: 1 addition & 1 deletion modules/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
2 changes: 1 addition & 1 deletion modules/schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/schematics",
"version": "15.0.0",
"version": "15.1.0",
"description": "NgRx Schematics for Angular",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
4 changes: 2 additions & 2 deletions modules/store-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store-devtools",
"version": "15.0.0",
"version": "15.1.0",
"description": "Developer tools for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -20,7 +20,7 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@ngrx/store": "15.0.0",
"@ngrx/store": "15.1.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
2 changes: 1 addition & 1 deletion modules/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store",
"version": "15.0.0",
"version": "15.1.0",
"description": "RxJS powered Redux for Angular apps",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/store/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.0.0';
export const platformVersion = '^15.1.0';
2 changes: 1 addition & 1 deletion modules/store/src/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export function createSelectorFactory<T = any, Props = any, V = any>(
* return a.reduce(reduceToDetermineIfArraysContainSameContents, true);
* }
*
* export const creactOrderDoesNotMatterSelector = createSelectorFactory(
* export const createOrderDoesNotMatterSelector = createSelectorFactory(
* (projectionFun) => defaultMemoize(
* projectionFun,
* orderDoesNotMatterComparer,
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/platform",
"version": "15.0.0",
"version": "15.1.0",
"description": "monorepo for ngrx development",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -88,11 +88,11 @@
},
"devDependencies": {
"@angular-devkit/build-angular": "15.0.0",
"@angular-eslint/builder": "14.0.4",
"@angular-eslint/eslint-plugin": "14.0.4",
"@angular-eslint/eslint-plugin-template": "14.0.4",
"@angular-eslint/schematics": "14.0.4",
"@angular-eslint/template-parser": "14.0.4",
"@angular-eslint/builder": "15.1.0",
"@angular-eslint/eslint-plugin": "15.1.0",
"@angular-eslint/eslint-plugin-template": "15.1.0",
"@angular-eslint/schematics": "15.1.0",
"@angular-eslint/template-parser": "15.1.0",
"@angular/cli": "15.0.0",
"@angular/compiler-cli": "15.0.0",
"@angular/language-service": "15.0.0",
Expand Down Expand Up @@ -123,9 +123,9 @@
"@types/rimraf": "^0.0.28",
"@types/semver": "^7.3.9",
"@types/shelljs": "^0.8.5",
"@typescript-eslint/eslint-plugin": "5.37.0",
"@typescript-eslint/parser": "5.37.0",
"@typescript-eslint/utils": "5.37.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@typescript-eslint/utils": "^5.43.0",
"chokidar": "^1.7.0",
"chokidar-cli": "^1.2.0",
"conventional-changelog": "^1.1.4",
Expand All @@ -134,7 +134,7 @@
"cpy-cli": "^1.0.1",
"cypress": "^11.0.0",
"deep-freeze": "^0.0.1",
"eslint": "8.15.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "2.26.0",
Expand Down

This file was deleted.

16 changes: 0 additions & 16 deletions projects/data-example-app/src/environments/environment.ts

This file was deleted.

Loading

0 comments on commit 84cdba2

Please sign in to comment.