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

Create a new pull request by comparing changes across two branches #340

Merged
merged 26 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f371d9e
test(eslint-plugin): add inject tests for select-style rule (#3981)
suke Jul 31, 2023
caa74ff
fix(eslint-plugin): support inject for use-consistent-global-store-na…
suke Aug 3, 2023
1879cc9
fix(effects): register functional effects from object without prototy…
markostanimirovic Aug 4, 2023
65acf86
docs(effects): remove unneeded critical div (#3986)
KshitijTodkar48 Aug 4, 2023
0b98a65
fix(data): make DataServiceError extend from Error (#3988)
rob4226 Aug 5, 2023
19ebb0a
feat(schematics): add entity generation as part of feature schematic …
wgd3 Aug 5, 2023
2c154f6
docs: add GitHub sponsors links, add Nx logo to homepage for sponsors…
brandonroberts Aug 6, 2023
940812c
docs: remove Gitter from README and sponsorship updates
brandonroberts Aug 6, 2023
46aa2df
chore: update funding links
brandonroberts Aug 7, 2023
26f58de
chore: release 16.2.0
brandonroberts Aug 7, 2023
33f0a7a
chore: add Marko to funding links
brandonroberts Aug 7, 2023
d2502fb
build: update packages for npm publishing (#3999)
brandonroberts Aug 9, 2023
c0a9c29
test(eslint-plugin): add inject tests for prefer-selector-in-select r…
suke Aug 11, 2023
067b2b8
test(eslint-plugin): add inject tests for prefer-action-creator-in-di…
suke Aug 14, 2023
7716e46
docs(data): clarify entity dispatcher fires action once (#4005)
Nosfistis Aug 14, 2023
b0d63fd
feat(signals): initial setup (#4002)
markostanimirovic Aug 15, 2023
745d91f
feat(signals): add signalState and selectSignal APIs (#4007)
markostanimirovic Aug 18, 2023
3e9022a
improve docs to point to memory leak if ngOnDestroy is overridden in …
ValentinBossi Aug 19, 2023
54a01c3
docs(component-store): fix typo on the lifecycle page (#4015)
srinathsree66 Aug 21, 2023
f179316
feat(store): prettify createFeature result (#4014)
markostanimirovic Aug 21, 2023
2c7f26e
test(eslint-plugin): add inject tests for no-dispatch-in-effects (#3947)
va-stefanek Aug 21, 2023
eb07755
test(eslint-plugin): add inject tests for updater-explicit-return-typ…
suke Aug 21, 2023
f99f1e1
ci: update node images (#4023)
timdeschryver Aug 31, 2023
3a56412
fix(schematics): make action props plural (#4017)
michaelxvoelker Sep 2, 2023
f194005
docs: update contributing test script (#4020)
timdeschryver Sep 2, 2023
eeadd3f
test(eslint-plugin): add tests using inject (#4022)
timdeschryver Sep 2, 2023
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 .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ version: 2.1
var_1: &cache_key yarn-cache-{{ checksum "yarn.lock" }}-0.14.1
var_2: &run_in_node
docker:
- image: cimg/node:18.16.0
- image: cimg/node:18.16
var_5: &run_in_browser
docker:
- image: cimg/node:18.16.0-browsers
- image: cimg/node:18.16-browsers

orbs:
browser-tools: circleci/[email protected].3
browser-tools: circleci/[email protected].4

jobs:
install:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
<<: *run_in_browser
steps:
- checkout
- browser-tools/install-browser-tools
- browser-tools/install-chrome
- run: |
node --version
google-chrome --version
Expand Down
6 changes: 3 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [ngrx, brandonroberts] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: ngrx
ko_fi: # Replace with a single Ko-fi username
ko_fi: timdeschryver # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
custom: # Replace with a single custom sponsorship URL
custom: https://ko-fi.com/markostanimirovic # Replace with a single custom sponsorship URL
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- ❤️ ngrx? Please consider supporting our collective: 👉 [donate](https://opencollective.com/ngrx/donate) -->
<!-- ❤️ ngrx? Please consider sponsoring us: 👉 [sponsor](https://github.com/sponsors/ngrx) -->

## I'm submitting a...

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: |
❤️ ngrx? Please consider supporting our collective: 👉 [donate](https://opencollective.com/ngrx/donate)
❤️ ngrx? Please consider sponsoring us: 👉 [sponsor](https://github.com/sponsors/ngrx)
Please search GitHub for a similar issue or PR before submitting a new issue.
If you need real-time help, join us on [Discord](https://discord.com/invite/ngrx).

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
- type: markdown
attributes:
value: |
❤️ ngrx? Please consider supporting our collective: 👉 [donate](https://opencollective.com/ngrx/donate)
❤️ ngrx? Please consider sponsoring us: 👉 [sponsor](https://github.com/sponsors/ngrx)
Please search GitHub for a similar issue or PR before submitting a new issue.
If you need real-time help, join us on [Discord](https://discord.com/invite/ngrx).

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: |
❤️ ngrx? Please consider supporting our collective: 👉 [donate](https://opencollective.com/ngrx/donate)
❤️ ngrx? Please consider sponsoring us: 👉 [sponsor](https://github.com/sponsors/ngrx)
Please search GitHub for a similar issue or PR before submitting a new issue.
If you need real-time help, join us on [Discord](https://discord.com/invite/ngrx).

Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
<a name="16.2.0"></a>

# [16.2.0](https://github.com/ngrx/platform/compare/16.1.0...16.2.0) (2023-08-07)

### Bug Fixes

- **data:** make DataServiceError extend from Error ([#3988](https://github.com/ngrx/platform/issues/3988)) ([0b98a65](https://github.com/ngrx/platform/commit/0b98a65))
- **effects:** register functional effects from object without prototype ([#3984](https://github.com/ngrx/platform/issues/3984)) ([1879cc9](https://github.com/ngrx/platform/commit/1879cc9)), closes [#3972](https://github.com/ngrx/platform/issues/3972)
- **eslint-plugin:** fix prefer-contact-latest-from rule to detect inject ([#3946](https://github.com/ngrx/platform/issues/3946)) ([2efd805](https://github.com/ngrx/platform/commit/2efd805))
- **eslint-plugin:** prefix-selectors-with-select suggestion ([#3959](https://github.com/ngrx/platform/issues/3959)) ([27f09df](https://github.com/ngrx/platform/commit/27f09df))
- **eslint-plugin:** support inject for no-typed-global-store rule ([#3951](https://github.com/ngrx/platform/issues/3951)) ([d3e84d8](https://github.com/ngrx/platform/commit/d3e84d8))
- **eslint-plugin:** support inject for use-consistent-global-store-name rule ([#3983](https://github.com/ngrx/platform/issues/3983)) ([caa74ff](https://github.com/ngrx/platform/commit/caa74ff))
- **store-devtools:** resolve memory leak when devtools are destroyed ([#3965](https://github.com/ngrx/platform/issues/3965)) ([644f0b6](https://github.com/ngrx/platform/commit/644f0b6))

### Features

- **eslint-plugin:** include docs URL in lint message ([#3944](https://github.com/ngrx/platform/issues/3944)) ([a1576de](https://github.com/ngrx/platform/commit/a1576de))
- **schematics:** add entity generation as part of feature schematic ([#3850](https://github.com/ngrx/platform/issues/3850)) ([19ebb0a](https://github.com/ngrx/platform/commit/19ebb0a))
- **store-devtools:** provide the ability to connect extension outside of Angular zone ([#3970](https://github.com/ngrx/platform/issues/3970)) ([1ee80e5](https://github.com/ngrx/platform/commit/1ee80e5)), closes [#3839](https://github.com/ngrx/platform/issues/3839)

<a name="16.1.0"></a>

# [16.1.0](https://github.com/ngrx/platform/compare/16.0.1...16.1.0) (2023-07-06)
Expand Down
33 changes: 3 additions & 30 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn test

```shell
yarn nx test effects --watchAll
yarn nx test <library name that matches angular.json entry> --watchAll
yarn nx test <module-name> --watchAll
```

### Testing for a specific schematic unit test
Expand Down Expand Up @@ -180,35 +180,8 @@ AFTER:
New code example here
```

## Financial contributions
## Financial Contributions

We also welcome financial contributions in full transparency on our [open collective](https://opencollective.com/ngrx).
Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.

## Credits

### Contributors
We also welcome sponsorships through [GitHub Sponsors](https://github.com/sponsors/ngrx). Sponsorships aid in the continued development of NgRx libraries, along with supporting core contributors on the project. If you are looking for more hands-on support such as training or workshops, check out our [Enterprise Support](https://ngrx.io/enterprise-support) page.

Thank you to all the people who have already contributed to NgRx!
<a href="https://github.com/ngrx/platform/graphs/contributors"><img src="https://opencollective.com/ngrx/contributors.svg?width=890" /></a>

### Backers

Thank you to all our backers! [[Become a backer](https://opencollective.com/ngrx#backer)]

<a href="https://opencollective.com/ngrx#backers" target="_blank"><img src="https://opencollective.com/ngrx/backers.svg?width=890"></a>

### Sponsors

Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/ngrx#sponsor))

<a href="https://opencollective.com/ngrx/sponsor/0/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/1/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/2/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/3/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/4/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/5/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/6/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/7/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/8/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/sponsor/9/website" target="_blank"><img src="https://opencollective.com/ngrx/sponsor/9/avatar.svg"></a>
38 changes: 15 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# @ngrx

Reactive libraries for Angular
Reactive State for Angular

[![CircleCI](https://circleci.com/gh/ngrx/platform/tree/main.svg?style=shield)](https://circleci.com/gh/ngrx/workflows/platform/tree/main)
[![Join the chat at https://gitter.im/ngrx/platform](https://badges.gitter.im/ngrx/platform.svg)](https://gitter.im/ngrx/platform?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join the discord server at https://discord.com/invite/ngrx](https://img.shields.io/discord/740557383109050469.svg?color=7389D8&labelColor=6A7EC2&logo=discord&logoColor=ffffff&style=flat-square)](https://discord.com/invite/ngrx)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](https://commitizen.github.io/cz-cli/)
[![npm version](https://badge.fury.io/js/%40ngrx%2Fstore.svg)](https://www.npmjs.com/@ngrx/store)
Expand All @@ -18,35 +17,28 @@ NgRx is a community-driven project. Read our [contributing guidelines](./CONTRIB

## Sponsoring NgRx

[![Backers on Open Collective](https://opencollective.com/ngrx/tiers/backers/badge.svg)](#backers)

Become a gold sponsor and get your logo on our README on GitHub and the front page of [ngrx.io](https://ngrx.io).
Sponsorships aid in the continued development and maintenance of NgRx libraries, along with supporting core contributors on the project. Consider asking your company to sponsor NgRx as its core to their business and application development.

### Gold Sponsors

<a href="https://opencollective.com/ngrx/tiers/gold-sponsors/0/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/gold-sponsors/0/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/gold-sponsors/1/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/gold-sponsors/1/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/gold-sponsors/2/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/gold-sponsors/2/avatar.svg"></a>
<a href="https://nx.dev" target="_blank">
<img src="https://github.com/ngrx/platform/blob/main/projects/ngrx.io/src/assets/images/sponsors/nx.svg" width="200px" height="200px" alt="NxDevTools logo">
</a>

### Silver Sponsors
Become a gold sponsor and get your logo on our README on GitHub and the front page of [ngrx.io](https://ngrx.io).

Become a silver sponsor and get your logo on our README on GitHub and our website [ngrx.io](https://ngrx.io).
### Silver Sponsors

<a href="https://opencollective.com/ngrx/tiers/silver-sponsors/0/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/silver-sponsors/0/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/silver-sponsors/1/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/silver-sponsors/1/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/silver-sponsors/2/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/silver-sponsors/2/avatar.svg"></a>
Become a silver sponsor and get your logo on our README on GitHub.

### Bronze Sponsors

<a href="https://houseofangular.io" target="_blank">
<img src="https://github.com/ngrx/platform/blob/main/projects/ngrx.io/src/assets/images/sponsors/house-of-angular.png" width="50px" height="50px" alt="House of Angular" />
</a>

Become a bronze sponsor and get your logo on our README on GitHub.

<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/0/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/0/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/1/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/1/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/2/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/2/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/3/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/3/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/4/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/4/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/5/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/5/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/6/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/6/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/7/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/7/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/8/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/8/avatar.svg"></a>
<a href="https://opencollective.com/ngrx/tiers/bronze-sponsors/9/website" target="_blank"><img src="https://opencollective.com/ngrx/tiers/bronze-sponsors/9/avatar.svg"></a>
## Enterprise Support

If your team or your company is looking for more hands-on support such as training or workshops, check out our [Enterprise Support](https://ngrx.io/enterprise-support) page.
3 changes: 2 additions & 1 deletion build/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const packages: PackageDescription[] = fs
return false;
}

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

Expand Down
3 changes: 2 additions & 1 deletion build/copy-schematics-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const copySchematics = createBuilder([

copySchematics({
scope: '@ngrx',
packages,
// TODO: Remove signals when released as a stable package
packages: [...packages, { name: 'signals' }],
}).catch((err) => {
console.error(err);
process.exit(1);
Expand Down
18 changes: 12 additions & 6 deletions build/publish-latest.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import { createBuilder } from './util';
import { packages } from './config';
import * as shelljs from 'shelljs';
import { readFileSync } from 'fs-extra';

/**
* Publish release to NPM on "latest" tag
*/
export async function publishLatestToNpm() {
const configJSON = JSON.parse(readFileSync('./angular.json').toString());
const projects = configJSON.projects;
const publishablePackages = Object.keys(projects).filter(
(project) => !!projects[project].architect['build-package']
);
const publishablePackages = [
'store',
'effects',
'router-store',
'store-devtools',
'entity',
'component-store',
'component',
'schematics',
'eslint-plugin',
'data',
];

for (let pkg of publishablePackages) {
console.log(`Publishing @ngrx/${pkg}`);
Expand Down
18 changes: 12 additions & 6 deletions build/publish-next.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import { createBuilder } from './util';
import { packages } from './config';
import * as shelljs from 'shelljs';
import { readFileSync } from 'fs-extra';

/**
* Publish release to NPM on "next" tag
*/
export async function publishNextToNpm() {
const configJSON = JSON.parse(readFileSync('./angular.json').toString());
const projects = configJSON.projects;
const publishablePackages = Object.keys(projects).filter(
(project) => !!projects[project].architect['build-package']
);
const publishablePackages = [
'store',
'effects',
'router-store',
'store-devtools',
'entity',
'component-store',
'component',
'schematics',
'eslint-plugin',
'data',
];

for (let pkg of publishablePackages) {
console.log(`Publishing @ngrx/${pkg}`);
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": "16.1.0",
"version": "16.2.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 = '^16.1.0';
export const platformVersion = '^16.2.0';
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": "16.1.0",
"version": "16.2.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 = '^16.1.0';
export const platformVersion = '^16.2.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": "16.1.0",
"version": "16.2.0",
"description": "API management for NgRx",
"repository": {
"type": "git",
Expand All @@ -22,9 +22,9 @@
"peerDependencies": {
"@angular/common": "^16.0.0",
"@angular/core": "^16.0.0",
"@ngrx/store": "16.1.0",
"@ngrx/effects": "16.1.0",
"@ngrx/entity": "16.1.0",
"@ngrx/store": "16.2.0",
"@ngrx/effects": "16.2.0",
"@ngrx/entity": "16.2.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 = '^16.1.0';
export const platformVersion = '^16.2.0';
11 changes: 5 additions & 6 deletions modules/data/src/dataservices/data-service-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import { RequestData } from './interfaces';
* @param error the HttpErrorResponse or the error thrown by the service
* @param requestData the HTTP request information such as the method and the url.
*/
// If extend from Error, `dse instanceof DataServiceError` returns false
// in some (all?) unit tests so don't bother trying.
export class DataServiceError {
message: string | null;

export class DataServiceError extends Error {
constructor(public error: any, public requestData: RequestData | null) {
this.message = typeof error === 'string' ? error : extractMessage(error);
super(
typeof error === 'string' ? error : extractMessage(error) ?? undefined
);
this.name = this.constructor.name;
}
}

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": "16.1.0",
"version": "16.2.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": "^16.0.0",
"@ngrx/store": "16.1.0",
"@ngrx/store": "16.2.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 = '^16.1.0';
export const platformVersion = '^16.2.0';
Loading