Addono / container-registry-proxy

A proxy for modifying modifying requests to Docker-compatible container requests on the fly. Bring your own custom behaviour through an extensive plugin-system.
https://github.com/Addono/container-registry-proxy
MIT License
12 stars 2 forks source link

Upgrade ts-jest: 26.5.6 → 27.1.3 (major) #311

Closed depfu[bot] closed 2 years ago

depfu[bot] commented 2 years ago

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ ts-jest (26.5.6 → 27.1.3) · Repo · Changelog

Release Notes

27.1.3 (from changelog)

Bug Fixes

  • compiler: update memory cache for compiler using received file content (#3194) (e4d9541)

27.1.2 (from changelog)

Bug Fixes

  • stimulate esbuild type to avoid importing esbuild directly (#3147) (9ace0a9)

27.1.1 (from changelog)

Bug Fixes

27.1.0 (from changelog)

Features

  • allow subclasses to extend processAsync and getCacheKeyAsync (#3047) (571a880)
  • config: support custom AST transformers written in TypeScript (#3063) (340a305), closes #2831
  • export ts-jest public apis from index.js (#3080) (53175dd), closes #3045

Code Refactoring

  • utils: deprecate mocked util function (#3102) (55e69f1)
  • define clear type for compiler option (#3087) (cc42daf)
  • transformers: deprecate path-mapping AST transformer (#3088) (d8f6b96)
  • transformers: use ts factory API for hoisting AST transformer (#3058) (a72f51d)

DEPRECATIONS

  • transformers: path-mapping AST transformer is deprecated and will be removed in v28.0.0. One should use an alternative one like https://github.com/LeDDGroup/typescript-transform-paths instead.
  • utils: mocked function is deprecated and will be removed in v28.0.0. The function has been integrated into jest-mock package as a part of Jest 27.4.0, see facebook/jest#12089. One should use the one from Jest instead

27.0.7 (from changelog)

Bug Fixes

27.0.6 (from changelog)

Bug Fixes

  • use specific lodash package instead of full package lodash (#2959) (dc89fe5), closes #2954

27.0.5 (from changelog)

Bug Fixes

  • cli: add migration tsConfig option for ts-jest config options (#2794) (781710b), closes #2764
  • cli: fix config:init genarate invalid type comment (#2773) (ede8a20), closes #2772
  • config: handle ./ in tsconfig paths for pathsToModuleNameMapper (#2797) (42ff5e4), closes #2709

Code Refactoring

27.0.4 (from changelog)

Bug Fixes

  • add @types/jest as optional peerDependencies to solve yarn 2 (#2756) (5fbf43e)
  • add babel-jest as optional peerDependencies to solve yarn 2 (#2751) (8bede2e)
  • config: include AST transformer's name and version into cache key (#2755) (310fb9a), closes #2753

Features

27.0.3 (from changelog)

Bug Fixes

  • revert exports field to support all node versions (#2658) (132c8ba)

Features

27.0.2 (from changelog)

Bug Fixes

  • compiler: add empty string file content to compiler cache (#2633) (0feb556), closes #2625
  • config: exclude should only exclude files which match glob values (#2637) (c5ce979), closes #2634

27.0.1 (from changelog)

Bug Fixes

27.0.0 (from changelog)

Bug Fixes

  • compiler: return file content on emitSkipped for non ts/tsx files (#2519) (a4e5640), closes #2513
  • compiler: retype check other files if processing file is used by those ones in watch mode (#2481) (ac8f3d0), closes #943
  • compiler: initialize compiler with .ts/.tsx/.d.ts files only (#2458) (a89f0e2), closes #2445
  • compiler: resolve nested imported modules for each processing file (#2436) (3cb9019), closes #1390 #1747
  • config: create fallback jest config when jest config is undefined (#2433) (c6d6e4c), closes #2085
  • remove @types/jest from direct dep (#2409) (8913120), closes #2406 #2411
  • compiler: return original file content and show warning on emit skip (#2410) (c2b2164), closes #2407
  • compiler: type check correctly in watch mode when a file content itself has changed (#2405) (064bf3a), closes #2118
  • compiler: exclude files in outDir from compiler source files (#2375) (ec68c74), closes #2350 #2374
  • config: cache config and compiler correctly between runs (#2356) (5f91336)
  • config: improve emit skipped error message (#2358) (2ae8df4), closes #2350
  • typings: set correct typing for tsconfig option (#2383) (584324a), closes #2368
  • config: invalidate Jest transform cache when astTransformers value changes (#2345) (d726016)
  • reduce size of node_modules when adding ts-jest (#2263) (8e0675c)

Features

  • config: allow disable sourcemap (#2544) (47da6ad)
  • compiler: expose TsCompiler as public api (#2344) (871cd6a)
  • config: support typed config options for jest config typescript (#2335) (3cfc37b)
  • presets: add typing for presets entry point (#2337) (1a3058f)
  • compiler: allow custom transformers to access internal Program (#2299) (387964f)
  • config: replace pathRegex with exclude (#2295) (f2f99c3)
  • config: type checking js files based on checkJs (#2283) (1e04433)
  • compiler: support ESM for isolatedModules: false (#2269) (9bb0c05), closes #1709
  • compiler: support ESM for isolatedModule: true (#2219) (e101db0), closes #1709
  • presets: add 3 new presets to work with ESM (#2207) (c277858)
  • allow subclasses of TsJestTransformer to have version checking (#2176) (ca8d7c4)

Performance Improvements

  • reuse jest file system cache for isolatedModules: false (#2189) (68f446b)

Code Refactoring

  • config: remove support for astTransformers string array (#2129) (1e0b2ce)
  • config: remove support for packageJson option (#2128) (05916b9)
  • move jest transformer class to package entry (#2122) (5bbfd06)
  • config: remove support for tsConfig option (#2127) (3cc9b80)

BREAKING CHANGES

// jest.config.js
module.exports = {
   //...
   globals: {
      'ts-jest': {
         astTransformers: {
           before: ['your_before_transformer_path'],
           after: ['your_after_transformer_path'],
           afterDeclarations: ['your_afterDeclarations_transformer_path'],
         }
      }
   }
}

or

// package.json
{
  "jest": {
     "globals": {
        "ts-jest": {
           "astTransformers": {
              "before": ["your_before_transformer_path"],
              "after": ["your_after_transformer_path"],
              "afterDeclarations": ["your_afterDeclarations_transformer_path"]
           }
        }
     }
  }
}
  • One currently refers type in jest.config.js
/** @typedef {import('ts-jest')} */
module.exports = {
  //...
}

should change to

/** @typedef {import('ts-jest/dist/types')} */
module.exports = {
  //...
}
  • Remove possibilities to import mocked, createJestPreset, pathsToModuleNameMapper from package entry. One should change to
import { mocked, createJestPreset, pathsToModuleNameMapper } from 'ts-jest/utils'
  • config: One currently uses tsConfig should change to tsconfig in your jest.config.js or package.json.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
depfu[bot] commented 2 years ago

Closed in favor of #326.