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

fix(router): revert commit that replaced last helper with native Array.at(-1) #54051

Open
wants to merge 2 commits into
base: 17.0.x
Choose a base branch
from

Conversation

pkozlowski-opensource
Copy link
Member

This is backport of #54021 to the LTS branch

…rray.at(-1)` (angular#54021)

While `Array.at` is technically supported in all browsers we officially
support, the change was needlessly breaking without any real benefit.

PR Close angular#54021
@pullapprove pullapprove bot requested a review from atscott January 24, 2024 14:21
@pkozlowski-opensource pkozlowski-opensource added area: router target: lts This PR is targeting a version currently in long-term support labels Jan 24, 2024
@ngbot ngbot bot added this to the Backlog milestone Jan 24, 2024
atscott
atscott previously approved these changes Jan 24, 2024
Currently the ZoneJS typing tests executes outside of Bazel, as a legacy
artifact of the monorepo merging (as it seems - not ideal at all).

Looks like this test relies on its own node modules, that were NOT
locked using a yarn lock file. This commit adds one, and specifically
locks it to a `@types/node` version that does not include the most
recent patch release (which seemingly introduced a breaking change)
that causes issues with TypeScript's lib checking.

Whenever we perform lock file maintenance in the future, we have the
following options:

- Consider disabling lib checking via `skipLibCheck` for this test. This
  may be acceptable.
- Continue locking the node version,
- Waiting for chokidar to comply with the new signature
- Waiting for the breaking change to be rolled back.

Culprit change:
DefinitelyTyped/DefinitelyTyped#68300

PR Close angular#54048
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build & ci Related the build and CI infrastructure of the project area: router target: lts This PR is targeting a version currently in long-term support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants