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

chore(deps): update dependency jest-preset-angular to v14 #243

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 12, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jest-preset-angular (source) 8.3.2 -> 14.1.1 age adoption passing confidence

Release Notes

thymikee/jest-preset-angular (jest-preset-angular)

v14.1.1

Compare Source

Features

v14.1.0

Compare Source

Features
  • extend version support range to Angular 18 (24e097d)
  • remove ivy flag for snapshot serializer (3433cd8)

14.0.4 (2024-05-07)

Features
  • Support generic type for signal queries, closes #​2392
  • Support outputFromObservable, closes #​2374
  • Support input.required, closes #​2370

14.0.3 (2024-02-16)

Features
  • support signal queries in Angular 17.2 (a57ad7d)

14.0.2 (2024-02-11)

Performance Improvements
  • reduce package size and speed up execution (d7cbbac)

14.0.1 (2024-02-09)

Features

v14.0.4

Compare Source

Features
  • Support generic type for signal queries, closes #​2392
  • Support outputFromObservable, closes #​2374
  • Support input.required, closes #​2370

v14.0.3

Compare Source

Features
  • support signal queries in Angular 17.2 (a57ad7d)

v14.0.2

Compare Source

Performance Improvements
  • reduce package size and speed up execution (d7cbbac)

v14.0.1

Compare Source

Features

v14.0.0

Compare Source

BREAKING CHANGES

  • Drop support for Angular 13, 14 (a3091b5)

13.1.6 (2024-01-11)

Bug Fixes

13.1.5 (2024-01-03)

Bug Fixes

13.1.4 (2023-11-11)

Bug Fixes
  • transformers: handle single string styles or styleUrl property (#​2186) (0c99aae)

13.1.3 (2023-11-06)

Features

13.1.2 (2023-09-19)

Code Refactoring

13.1.1 (2023-05-14)

Bug Fixes
  • file separator issue on Windows causing error in ngcc-jest-processor (#​2079) (b6b3911)

v13.1.6

Compare Source

Bug Fixes

v13.1.5

Compare Source

Bug Fixes

v13.1.4

Compare Source

Bug Fixes
  • transformers: handle single string styles or styleUrl property (#​2186) (0c99aae)

v13.1.3

Compare Source

Features

v13.1.2

Compare Source

Code Refactoring

v13.1.1

Compare Source

Bug Fixes
  • file separator issue on Windows causing error in ngcc-jest-processor (#​2079) (b6b3911)

v13.1.0

Compare Source

Features

13.0.1 (2023-03-21)

Bug Fixes

v13.0.1

Compare Source

Bug Fixes

v13.0.0

Compare Source

Bug Fixes
Features

BREAKING CHANGES

v12.2.6

Compare Source

Bug Fixes

v12.2.5

Compare Source

Bug Fixes

v12.2.4

Compare Source

Bug Fixes

v12.2.3

Compare Source

Features

v12.2.2

Compare Source

Bug Fixes

v12.2.1

Compare Source

Bug Fixes

v12.2.0

Compare Source

Bug Fixes
Features

v12.1.0

Compare Source

Features

12.0.1 (2022-05-14)

Features

v12.0.1

Compare Source

Features

v12.0.0

Compare Source

Bug Fixes
Features

BREAKING CHANGES

  • Since Angular 11, the minimum version of zone.js is 0.11.x and Angular 10 is EOL, so now we can use zone patch directly from zone.js.
    If one is not using zone.js@0.11.x, please upgrade.
  • Now we are using Angular AST transformers, reflect-metadata is not needed anymore.
  • Jest 28 correctly resolves Angular package format files so the ng-jest-resolver is now optional.
  • Node 12 is no longer support
  • Previously, we always checked file extension .mjs and any files from node_modules excluding tslib to be processed with esbuild.
    With the new option processWithEsbuild, now we put default all .mjs files to be processed by esbuild. Files like lodash-es default isn't processed by esbuild.
    If you wish to use esbuild to process such files, please configure in your Jest config like
// jest.config.js
module.exports = {
    //...
    globals: {
         ngJest: {
              processWithEsbuild: ['**/node_modules/lodash-es/*.js],
         }
    }
}
  • Angular 10 is no longer support
  • Require Jest 28
  • ngcc-jest-processor entry file is now removed. One should use jest-preset-angular/global-setup instead.

11.1.2 (2022-04-24)

Bug Fixes
  • correct deprecation message of ngcc-jest-processor (3899abf), closes #​1411

11.1.1 (2022-02-11)

Performance Improvements

v11.1.2

Compare Source

Bug Fixes
  • correct deprecation message of ngcc-jest-processor (3899abf), closes #​1411

v11.1.1

Compare Source

Performance Improvements

v11.1.0

Compare Source

Bug Fixes
DEPRECATIONS
  • ngcc-jest-processor is deprecated in favor of globalSetup file (#​1275) (75e7368)

11.0.1 (2021-11-22)

Bug Fixes

v11.0.1

Compare Source

Bug Fixes

v11.0.0

Compare Source

Bug Fixes
Features
Code Refactoring
Performance Improvements

BREAKING CHANGES

  • js files from node_modules are now compiled with esbuild to improve performance.
  • NodeJs range version support now is ^12.20.0 || ^14.15.0 || >=16.10.0
  • Due to the introduction of ESM package format for Angular packages, several things are added to the default preset
    to handle .mjs files from Angular ESM packages. Please check our migration documentation at https://thymikee.github.io/jest-preset-angular/docs/next/guides/angular-13+
Special Thanks

Alan Agius, Pete Bacon Darwin from Angular team

v10.1.0

Compare Source

Bug Fixes
Code Refactoring
  • transformers use Angular downlevel-ctor transformer (#​1099) (3c26aba)
  • transformers remove workaround for ts < 4.0 in replace-resource transformer (#​1100) (ce68298)
  • transformers migrate html-comment to new Jest serializer (#​1114) (3005330)

v10.0.1

Compare Source

Bug Fixes
  • utils: allow skipping ngcc-jest-processor via some Jest args (#​1013) (7d3a712)

v10.0.0

Compare Source

Build

BREAKING CHANGES

Angular 9 is no longer supported, see https://angular.io/guide/releases#support-policy-and-schedule The minimum support Angular version now is 10

9.0.7 (2021-08-20)

Bug Fixes

9.0.6 (2021-08-17)

Bug Fixes
  • config: set allowJs: true internally always (#​976) (9900c8b), closes #​974
  • utils: throw error when cannot find @angular/core for ngcc-jest-preprocessor util (#​981) (c35d3f2)

9.0.5 (2021-07-22)

Features
Code Refactoring
  • remove webpack and @angular-devkit/build-angular from peer dependencies and optional dependencies (#​973) (ce7fc60)

9.0.4 (2021-06-15)

Bug Fixes

9.0.3 (2021-06-08)

Bug Fixes
  • add missing @angular/platform-browser-dynamic to peer dep (c1729e4)

9.0.2 (2021-06-06)

Bug Fixes

9.0.1 (2021-05-28)

Bug Fixes

v9.0.7

Compare Source

Bug Fixes

v9.0.6

Compare Source

Bug Fixes
  • config: set allowJs: true internally always (#​976) (9900c8b), closes #​974
  • utils: throw error when cannot find @angular/core for ngcc-jest-preprocessor util (#​981) (c35d3f2)

v9.0.5

Compare Source

Features
Code Refactoring
  • remove webpack and @angular-devkit/build-angular from peer dependencies and optional dependencies (#​973) (ce7fc60)

v9.0.4

Compare Source

Bug Fixes

v9.0.3

Compare Source

Bug Fixes
  • add missing @angular/platform-browser-dynamic to peer dep (c1729e4)

v9.0.2

Compare Source

Bug Fixes

v9.0.1

Compare Source

Bug Fixes

v9.0.0

Compare Source

Bug Fixes
Features
Performance Improvements
  • compiler: reuse cacheFS from jest to reduce file system reading (#​679) (f5d9d4b)
  • config: set skipLibCheck: true if not defined in tsconfig (#​678) (0df3ce1)

BREAKING CHANGES

  • Drop support for Angular < 9.0, see https://angular.io/guide/releases#support-policy-and-schedule.
  • Drop support for Node.js version 10 since it becomes EOL on 2021-04-30. Required Node version now is >=12.13.0.
  • Require Jest 27.
  • Users who are using import 'jest-preset-angular' should change to import 'jest-preset-angular/setup-jest'
  • transformers: The AST transformers InlineFilesTransformer and StripStylesTransformer are REMOVED and
    default jest-preset-angular uses AST transformers from @angular/compiler-cli and @ngtools/webpack.
    One should remove the old transformers from the jest config.
  • compiler: jest-preset-angular now switches to default to use its own transformer which wraps around ts-jest to transform codes.

Users who are currently doing in jest config

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'ts-jest',
    },
}

should change to

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'jest-preset-angular',
    },
}
  • serializers:: snapshot serializer paths have been changed:
    • 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js' is changed to 'jest-preset-angular/build/serializers/no-ng-attributes.
    • 'jest-preset-angular/build/AngularSnapshotSerializer.js' is changed to 'jest-preset-angular/build/serializers/ng-snapshot.
    • 'jest-preset-angular/build/HTMLCommentSerializer.js' is changed to 'jest-preset-angular/build/serializers/html-comment.
  • When generating a new project from Angular CLI, by default the tsconfig.json doesn't contain any path mappings
    hence removing moduleNameMapper from preset will make sure that the preset works in pair with tsconfig.json.
    Ones who are relying on the value of moduleNameMapper from the preset should create their own moduleNameMapper
    config manually or via ts-jest util https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping.

If you wish to reuse the old configuration of moduleNameMapper, you can put this into your Jest config

moduleNameMapper: {
  '^src/(.*)$': '<rootDir>/src/$1',
  '^app/(.*)$': '<rootDir>/src/app/$1',
  '^assets/(.*)$': '<rootDir>/src/assets/$1',
  '^environments/(.*)$': '<rootDir>/src/environments/$1',
}
  • By default, if skipLibCheck is not defined in tsconfig, jest-preset-angular will set it to true. If one wants to have it as false, one can set explicitly in tsconfig.
  • compiler: jest-preset-angular now switches to default to use its own transformer which wraps around ts-jest to transform codes.

Users who are currently doing in jest config

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'ts-jest',
    },
}

should change to

// jest.config.js
module.exports = {
    // [...]
    transform: {
      '^.+\\.(ts|js|html)$': 'jest-preset-angular',
    },
}

v8.4.0

Compare Source

Features
DEPRECATIONS
  • Import serializer via 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/no-ng-attributes'
  • Import serializer via 'jest-preset-angular/build/AngularSnapshotSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/ng-snapshot'
  • Import serializer via 'jest-preset-angular/build/HTMLCommentSerializer.js' is deprecated in favor of 'jest-preset-angular/build/serializers/html-comment'
  • Import setup file via import 'jest-preset-angular' is deprecated in favor of import 'jest-preset-angular/setup-jest'

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot assigned C0ZEN Jan 12, 2024
@renovate renovate bot requested a review from C0ZEN January 12, 2024 08:33
Copy link
Author

renovate bot commented Jan 12, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: yokai@0.0.0
npm error Found: typescript@4.1.5
npm error node_modules/typescript
npm error   dev typescript@"4.1.5" from the root project
npm error   peer typescript@">=4.0 <4.2" from @angular/compiler-cli@11.1.2
npm error   node_modules/@angular/compiler-cli
npm error     dev @angular/compiler-cli@"11.1.2" from the root project
npm error     peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/build-angular@0.1100.7
npm error     node_modules/@angular-devkit/build-angular
npm error       dev @angular-devkit/build-angular@"0.1100.7" from the root project
npm error     1 more (ng-packagr)
npm error   2 more (ng-packagr, tslint)
npm error
npm error Could not resolve dependency:
npm error peer typescript@"~4.0.0" from @angular-devkit/build-angular@0.1100.7
npm error node_modules/@angular-devkit/build-angular
npm error   dev @angular-devkit/build-angular@"0.1100.7" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-07T08_56_03_519Z-eresolve-report.txt

npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-07T08_56_03_519Z-debug-0.log

@renovate renovate bot force-pushed the renovate/jest-preset-angular-14.x branch 3 times, most recently from b213451 to 8771fc4 Compare February 16, 2024 11:00
@renovate renovate bot force-pushed the renovate/jest-preset-angular-14.x branch from 8771fc4 to 00a710a Compare May 7, 2024 08:56
@renovate renovate bot force-pushed the renovate/jest-preset-angular-14.x branch from 00a710a to 2048e44 Compare May 21, 2024 16:41
Copy link
Author

renovate bot commented May 21, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: yokai@0.0.0
npm error Found: typescript@4.1.5
npm error node_modules/typescript
npm error   dev typescript@"4.1.5" from the root project
npm error   peer typescript@">=4.0 <4.2" from @angular/compiler-cli@11.1.2
npm error   node_modules/@angular/compiler-cli
npm error     dev @angular/compiler-cli@"11.1.2" from the root project
npm error     peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/build-angular@0.1100.7
npm error     node_modules/@angular-devkit/build-angular
npm error       dev @angular-devkit/build-angular@"0.1100.7" from the root project
npm error     1 more (ng-packagr)
npm error   2 more (ng-packagr, tslint)
npm error
npm error Could not resolve dependency:
npm error peer typescript@"~4.0.0" from @angular-devkit/build-angular@0.1100.7
npm error node_modules/@angular-devkit/build-angular
npm error   dev @angular-devkit/build-angular@"0.1100.7" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-06-23T15_00_58_840Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-06-23T15_00_58_840Z-debug-0.log

@renovate renovate bot force-pushed the renovate/jest-preset-angular-14.x branch from 2048e44 to 2c5c4de Compare June 23, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant