8000 Remove deprecated APIs by edbzn · Pull Request #1511 · rx-angular/rx-angular · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@edbzn
Copy link
Member
@edbzn edbzn commented Feb 8, 2023
  • Drop global render-strategy (cdk)
  • Drop transformations and selections in the main entry-point (state)
  • Drop zone-less/rxjs wrappers (cdk)

edbzn added 3 commits February 8, 2023 08:55
BREAKING CHANGE: The global render-strategy is no longer available.
BREAKING CHANGE: The state library no longer export the transformation-helpers, they are now available under `@rx-angular/cdk/transformations`. Selections operators are no longer exported in the main entrypoint `@rx-angular/state`, they are now available under `@rx-angular/state/selections`.
BREAKING CHANGE: The cdk library no longer export the set of zone-less RxJS wrappers, they moved in a [new repository](https://github.com/rx-angular/rxjs-zone-less) and now available under `rxjs-zone-less` on NPM.
@nx-cloud
Copy link
nx-cloud bot commented Feb 8, 2023

☁️ Nx Cloud Report

We didn't find any information for the current pull request with the commit ce7889a.
You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

8000

@edbzn edbzn requested a review from hoebbelsB February 8, 2023 08:36
@github-actions github-actions bot added { } State @rx-angular/state related 📚 Docs Web Documentation hosted on github pages 🛂 Test Unit tests, e2e tests, integration tests, test coverage 🛠️ CDK CDK related labels Feb 8, 2023
@edbzn edbzn marked this pull request as ready for review February 8, 2023 08:38
Copy link
Member
@hoebbelsB hoebbelsB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edbzn thx for the PR. the changes look good. I just want to mention some things.
We should check that if the updated unit tests in the base branch should be moved to https://github.com/rx-angular/rxjs-zone-less. This is also true for any deleted documentation.

Also, should we provide a migration script for deprecations that can be replaced with other paths ?

@edbzn
Copy link
Member Author
edbzn commented Feb 10, 2023

We should check that if the updated unit tests in the base branch should be moved to https://github.com/rx-angular/rxjs-zone-less. This is also true for any deleted documentation.

@hoebbelsB I'm not sure to get what you mean, should the updated tests from this PR #1509 be backported to https://github.com/rx-angular/rxjs-zone-less? Because there's nothing new in the base branch regarding rxjs-zone-less.

Also, should we provide a migration script for deprecations that can be replaced with other paths ?

The migration already exist and was provi 8000 ded for state v1.4.7:

const renames: Record<string, string | [string, string]> = {
  createSideEffectObservable: '@rx-angular/state/selections',
  createAccumulationObservable: '@rx-angular/state/selections',
  select: '@rx-angular/state/selections',
  stateful: '@rx-angular/state/selections',
  distinctUntilSomeChanged: '@rx-angular/state/selections',
  selectSlice: '@rx-angular/state/selections',
  KeyCompareMap: '@rx-angular/state/selections',
  CompareFn: '@rx-angular/state/selections',
  PickSlice: '@rx-angular/state/selections',
  insert: '@rx-angular/cdk/transformations',
  remove: '@rx-angular/cdk/transformations',
  toDictionary: '@rx-angular/cdk/transformations',
  update: '@rx-angular/cdk/transformations',
  extract: '@rx-angular/cdk/transformations',
  upsert: '@rx-angular/cdk/transformations',
  setProp: '@rx-angular/cdk/transformations',
  patch: '@rx-angular/cdk/transformations',
  deleteProp: '@rx-angular/cdk/transformations',
  dictionaryToArray: '@rx-angular/cdk/transformations',
  toggle: '@rx-angular/cdk/transformations',
  slice: '@rx-angular/cdk/transformations',
  RxState: '@rx-angular/state',
};

@hoebbelsB
Copy link
Member

@edbzn

I'm not sure to get what you mean, should the updated tests from this PR #1509 be backported to https://github.com/rx-angular/rxjs-zone-less? Because there's nothing new in the base branch regarding rxjs-zone-less.

Yes, I mean backporting the updated tests

The migration already exist and was provided for state v1.4.7:

Great, should we change it to run again with the next version?

@hoebbelsB
Copy link
Member

@edbzn moved the tests: rx-angular/rxjs-zone-less#7

@hoebbelsB hoebbelsB merged commit eafb33b into upgrade-angular-v13 Feb 24, 2023
@hoebbelsB hoebbelsB deleted the remove-deprecations branch February 24, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🛠️ CDK CDK related 📚 Docs Web Documentation hosted on github pages { } State @rx-angular/state related 🛂 Test Unit tests, e2e tests, integration tests, test coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0