Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 19 + deprecate response mapper #23

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from '@nx/jest';
import { getJestProjectsAsync } from '@nx/jest';

export default {
projects: getJestProjects(),
};
export default async () => ({
projects: await getJestProjectsAsync(),
});
1 change: 1 addition & 0 deletions libs/ngx-http-request-state/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ support its development:

## Versions

Version `^3.5.0` supports Angular 14 - 19.
Version `^3.2.0` supports Angular 14 - 18.
Version `^3.1.0` supports Angular 14 - 17.
Version `3.0.0` supports Angular 14, 15 & 16.
Expand Down
4 changes: 2 additions & 2 deletions libs/ngx-http-request-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"loading",
"error"
],
"version": "3.4.0",
"version": "3.5.0",
"peerDependencies": {
"rxjs": "^6.2.0 || ^7.4.0",
"@angular/common": "^14.2.10 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0"
"@angular/common": "^14.2.10 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
10 changes: 10 additions & 0 deletions libs/ngx-http-request-state/src/lib/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ import { loadingState, loadedState, errorState } from './builders';
export function httpRequestStates<T>(): (
source: Observable<HttpResponse<T> | T>
) => Observable<HttpRequestState<T>>;
/**
*
* @param mapResponse a function to map from HttpResponse<T> to K
* @deprecated use rxjs's map() operator to transform the response prior to using httpRequestStates() instead.
*/
export function httpRequestStates<T, K>(
mapResponse: (result: HttpResponse<T>) => K
): (source: Observable<HttpResponse<T>>) => Observable<HttpRequestState<K>>;
/**
*
* @param mapResponse a function to map from T to K
* @deprecated use rxjs's map() operator to transform the value prior to using httpRequestStates() instead.
*/
export function httpRequestStates<T, K>(
mapResponse: (result: T) => K
): (source: Observable<T>) => Observable<HttpRequestState<K>>;
Expand Down
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@
"sharedGlobals": []
},
"useInferencePlugins": false,
"defaultBase": "origin/main"
"defaultBase": "origin/main",
"useLegacyCache": true
}
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@
},
"private": true,
"dependencies": {
"@angular/animations": "18.1.4",
"@angular/common": "18.1.4",
"@angular/compiler": "18.1.4",
"@angular/core": "18.1.4",
"@angular/forms": "18.1.4",
"@angular/platform-browser": "18.1.4",
"@angular/platform-browser-dynamic": "18.1.4",
"@angular/router": "18.1.4",
"@nx/angular": "19.5.7",
"@angular/animations": "18.2.13",
"@angular/common": "18.2.13",
"@angular/compiler": "18.2.13",
"@angular/core": "18.2.13",
"@angular/forms": "18.2.13",
"@angular/platform-browser": "18.2.13",
"@angular/platform-browser-dynamic": "18.2.13",
"@angular/router": "18.2.13",
"@nx/angular": "20.1.3",
"rxjs": "~7.8.0",
"tslib": "^2.3.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "18.1.4",
"@angular-devkit/core": "18.1.4",
"@angular-devkit/schematics": "18.1.4",
"@angular-devkit/build-angular": "18.2.9",
"@angular-devkit/core": "18.2.9",
"@angular-devkit/schematics": "18.2.9",
"@angular-eslint/eslint-plugin": "18.2.0",
"@angular-eslint/eslint-plugin-template": "18.2.0",
"@angular-eslint/template-parser": "18.2.0",
"@angular/cli": "~18.1.0",
"@angular/compiler-cli": "18.1.4",
"@angular/language-service": "18.1.4",
"@nx/cypress": "19.5.7",
"@nx/eslint": "19.5.7",
"@nx/eslint-plugin": "19.5.7",
"@nx/jest": "19.5.7",
"@nx/js": "19.5.7",
"@nx/web": "19.5.7",
"@nx/workspace": "19.5.7",
"@schematics/angular": "18.1.4",
"@types/jest": "^29.4.0",
"@angular/cli": "~18.2.0",
"@angular/compiler-cli": "18.2.13",
"@angular/language-service": "18.2.13",
"@nx/cypress": "20.1.3",
"@nx/eslint": "20.1.3",
"@nx/eslint-plugin": "20.1.3",
"@nx/jest": "20.1.3",
"@nx/js": "20.1.3",
"@nx/web": "20.1.3",
"@nx/workspace": "20.1.3",
"@schematics/angular": "18.2.9",
"@types/jest": "29.5.14",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
Expand All @@ -54,12 +54,12 @@
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "2.15.1",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-marbles": "^3.0.3",
"jest-preset-angular": "14.1.1",
"ng-packagr": "18.1.0",
"nx": "19.5.7",
"ng-packagr": "18.2.1",
"nx": "20.1.3",
"postcss": "^8.4.5",
"postcss-import": "~14.1.0",
"postcss-preset-env": "~7.5.0",
Expand Down
Loading
Loading