GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update dependency ts-jest to v29 by xcomponentadmin · Pull Request #255 · xcomponent/ReactiveXComponent.js

Conversation

@xcomponentadmin

@xcomponentadmin xcomponentadmin commented Sep 9, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
ts-jest (source) devDependencies major ^25.0.0 -> ^29.0.0

Release Notes

kulshekhar/ts-jest

v29.0.3

Compare Source

Bug Fixes
  • merge config from globals with transformer config correctly (#​3842) (9c9fd60), closes #​3841
  • presets: allow merging transform config when using presets (#​3833) (afc6a94)
Features
  • add useESM option to pathsToModuleNameMapper options (#​3792) (eabe906)

v29.0.2

Compare Source

Bug Fixes
  • mark ts-jest as optional in ConfigGlobals (#​3816) (cbb88bb), closes #​3815
  • use correct typings for config:init command (#​3825) (21b94db)

v29.0.1

Compare Source

Bug Fixes
  • legacy: include existing globals config in cached config (#​3803) (e79be47)
Features
  • add typings for ts-jest options via transform config (#​3805) (664b0f2)

v29.0.0

Compare Source

Features
  • drop Node 12 and Node 17 support (#​3787) (0f1de16)
  • migrate globals config to transformer config (#​3780) (31e5843)
  • support Jest 29 (#​3767) (94b553b)
DEPRECATIONS
  • Define ts-jest config under globals is now deprecated. Please define the config via transformer config instead.
BREAKING CHANGES
  • Only Node 14, 16 and 18 are supported
  • Jest 29 is required.

v28.0.8

Compare Source

Bug Fixes
  • allow .mts to be processed (#​3713) (effae71), closes #​3702

v28.0.7

Compare Source

Bug Fixes
  • update @jest/types to be an optional peer dependency (#​3690) (8a8c3fa), closes #​3689

v28.0.6

Compare Source

Bug Fixes
  • config: don't show diagnostics warning with diagnostics: false (#​3647) (9a9bc02), closes #​3638
  • legacy: add useCaseSensitiveFileNames wherever needed (#​3683) (c40bc34), closes #​3665
  • set @jest/types as peer dependency (#​3633) (24567e1)

v28.0.5

Compare Source

Bug Fixes
  • legacy: throw type check error in ESM mode with reject (#​3618) (7dd01ff), closes #​3507

v28.0.4

Compare Source

Bug Fixes
  • remove @types/jest from peer deps (#​3592) (b66b656)

v28.0.3

Compare Source

Bug Fixes
  • security: update version of json5 (#​3528) (b31f5ba)

v28.0.2

Compare Source

Bug Fixes
  • transformers: use Array.sort in hoisting transformer (#​3498) (e400a6e), closes #​3476

v28.0.1

Compare Source

Bug Fixes
  • lower the required node version to ^16.10 (#​3495) (3a4e48a), closes #​3494

v28.0.0

Compare Source

Bug Fixes
  • legacy invoke Babel processAsync for babel-jest in ESM mode instead of process (#​3430) (0d7356c)
Features
  • presets: add presets for legacy mode (#​3465) (543b4ad)
  • mark ConfigSet as legacy (#​3456) (a986729)
  • mark TsCompiler and TsJestCompiler as legacy (#​3457) (0f2fe30)
  • remove path-mapping AST transformer (#​3455) (f566869)
  • set Jest peer dependencies to v28 (#​3454) (1e880ff)
  • core: drop support for Node.js 10 (#​3332) (7a9aa61)
  • core: remove mocked testing util (#​3333) (2d9017d)
  • core: remove ts-jest/utils sub path export (#​3334) (9f253d3)
  • mark TsJestTransformer as legacy (#​3451) (b090179)
BREAKING CHANGES
  • path-mapping AST transformer is no longer shipped in ts-jest v28. Please use an alternative one like https://github.com/LeDDGroup/typescript-transform-paths instead.
  • Any imports ts-jest/dist/compiler/ts-compiler should change to ts-jest/dist/legacy/compiler/ts-compiler
  • Any imports ts-jest/dist/compiler/ts-jest-compiler should change to ts-jest/dist/legacy/compiler/ts-jest-compiler
  • Any imports ts-jest/dist/config/config-set should change to ts-jest/dist/legacy/config/config-set
  • Minimum support TypeScript version is now 4.3 since Jest 28 requires it.
  • Jest 28 is required.
  • core: Any imports ts-jest/utils should be replaced with ts-jest.
  • core: Starting from Jest 27.4, mocked has been integrated into Jest repo.
  • core: Support for Node.js v10 has been removed as Jest drops support for it.

27.1.5 (2022-05-17)

Bug Fixes
  • transformers use Array.sort in hoisting transformer (#​3498) (e400a6e), fixes #​3476

27.1.4 (2022-03-24)

Bug Fixes
  • compiler: revert #​3194 (#​3362) (2b7dffe), closes #​3272
  • remove esbuild from peer dependency (#​3360) (8c8c1ca), closes #​3346
  • support Babel config file with .cjs extension (#​3361) (5e5ac4a), closes #​3335

27.1.3 (2022-01-14)

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

27.1.2 (2021-12-15)

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

27.1.1 (2021-12-07)

Bug Fixes
  • bring back afterProcess hook (#​3132) (2b6b86e)
  • make esbuild as optional peer dependency (#​3129) (20258de)

v27.1.5

Compare Source

Bug Fixes
  • transformers use Array.sort in hoisting transformer (#​3498) (e400a6e), fixes #​3476

v27.1.4

Compare Source

Bug Fixes
  • compiler: revert #​3194 (#​3362) (2b7dffe), closes #​3272
  • remove esbuild from peer dependency (#​3360) (8c8c1ca), closes #​3346
  • support Babel config file with .cjs extension (#​3361) (5e5ac4a), closes #​3335

v27.1.3

Compare Source

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

v27.1.2

Compare Source

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

v27.1.1

Compare Source

Bug Fixes
  • bring back afterProcess hook (#​3132) (2b6b86e)
  • make esbuild as optional peer dependency (#​3129) (20258de)

v27.1.0

Compare Source

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 https://github.com/facebook/jest/pull/12089. One should use the one from Jest instead

27.0.7 (2021-10-16)

Bug Fixes
  • correct lodash import (#​2978) (8b60679), closes #​2977

27.0.6 (2021-10-14)

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

27.0.5 (2021-08-14)

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
  • use native Buffer.from and mkdird (#​2774) (4869660)

27.0.4 (2021-07-21)

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
  • link jest config types on npx ts-jest:init (#​2742) (f51ba05)
  • set env var TS_JEST to allow detecting of ts-jest (#​2717) (56c137a), closes #​2716

27.0.3 (2021-06-06)

Bug Fixes
  • revert exports field to support all node versions (#​2658) (132c8ba)
Features
  • emit ESM codes if using ESM mode with Babel (#​2661) (9b55404), closes #​2650

27.0.2 (2021-05-30)

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 (2021-05-26)

Bug Fixes
  • cli: keep testMatch if old jest config contains it (#​2618) (c568f49), closes #​2616
  • compiler: make sure isolatedModules: false use updated compiler options (#​2628) (348e30f), closes #​2629
  • add missing export presets (#​2624) (0ea025e), closes #​2623

v27.0.7

Compare Source

Bug Fixes
  • correct lodash import (#​2978) (8b60679), closes #​2977

v27.0.6

Compare Source

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

v27.0.5

Compare Source

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
  • use native Buffer.from and mkdird (#​2774) (4869660)

v27.0.4

Compare Source

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
  • link jest config types on npx ts-jest:init (#​2742) (f51ba05)
  • set env var TS_JEST to allow detecting of ts-jest (#​2717) (56c137a), closes #​2716

v27.0.3

Compare Source

Bug Fixes
  • revert exports field to support all node versions (#​2658) (132c8ba)
Features
  • emit ESM codes if using ESM mode with Babel (#​2661) (9b55404), closes #​2650

v27.0.2

Compare Source

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

v27.0.1

Compare Source

Bug Fixes
  • cli: keep testMatch if old jest config contains it (#​2618) (c568f49), closes #​2616
  • compiler: make sure isolatedModules: false use updated compiler options (#​2628) (348e30f), closes #​2629
  • add missing export presets (#​2624) (0ea025e), closes #​2623

v27.0.0

Compare Source

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

  • By default, ts-jest will use sourceMap option from your tsconfig. If users want to have sourcemap on, they need to set sourceMap: true in tsconfig.
  • follow Jest support Node engines (#​2478) (1fecf7f)
  • add exports field to package.json, see https://nodejs.org/api/packages.html#packages_package_entry_points (#​2467) (d3aba3e)
  • ts-jest custom AST transformer function signature has changed to
import type { TsCompilerInstance } from 'ts-jest/dist/types'

export function factory(compilerInstance: TsCompilerInstance) {
   //...
}
  • One is currently using pathRegex should use exclude with glob patterns.
  • If one currently relies on type check for js files, please set checkJs: true in your tsconfig.
  • Now both isolatedModules: true and isolatedModule: false codes are in one single class TsCompiler which is an instance created in TsJestCompiler based on config option compiler with value typescript or ttypescript.
  • config: packageJson config option is not used in internal ts-jest so this option is now removed.
  • config: One is defining ast transformers in jest.config.js/package.json should change to
// 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.

26.5.6 (2021-05-05)

Code Refactoring
  • refactor(config): show warning message for sourceMap: false (#​2557) (cf60990).

v26.5.6

Compare Source

Code Refactoring
  • refactor(config): show warning message for sourceMap: false (#​2557) (cf60990).

v26.5.5

Compare Source

Bug Fixes
  • compiler: return file content on emitSkipped for non ts/tsx files (#​2515) (0320fb3), closes #​2513

v26.5.4

Compare Source

Bug Fixes
  • compiler: initialize compiler with .ts/.tsx/.d.ts files only (#​2457) (1dc731a), closes #​2445

v26.5.3

Compare Source

Bug Fixes
  • config: create fallback jest config when jest config is undefined (#​2421) (0fb6b45), closes #​2085
  • remove @types/jest from direct dep (#​2416) (060302e), closes #​2406 #​2411
  • compiler: return original file content on emit skip (#​2408) (cfba8f4), closes #​2407

v26.5.2

Compare Source

Bug Fixes
  • compiler: exclude files in outDir from compiler source files (#​2376) (9034677), closes #​2350 #​2374
  • config: define matchTestFilePath before setupTsJestCfg (#​2373) (c427fea), closes #​2371
  • config: improve emit skipped error message (#​2357) (f2808bb)
  • typings: set correct typing for tsconfig/tsConfig option (#​2377) (d4f6aff), closes #​2368

v26.5.1

Compare Source

Features
  • config: support typed config options for jest config typescript (#​2336) (f4f5d32)
  • presets: add typing for presets entry point (#​2341) (e12b004), closes #​2325

v26.5.0

Compare Source

Bug Fixes
  • reduce size of node_modules when adding ts-jest (#​2309) (6bf2e8a)
Features
  • introduce exclude to exclude files from diagnostics (#​2308) (cd82fd3)
DEPRECATIONS
  • config: deprecate pathRegex in favor of exclude (#​2308) (cd82fd3)

v26.4.4

Compare Source

Bug Fixes
  • revert usage of @jest/create-cache-key-function (#​2108) (dee8231), closes #​2080 #​2090 #​2104
Features
  • testing: expose all types for util mocked (#​2096) (b1d072b), closes #​2086

v26.4.3

Compare Source

Bug Fixes
  • compiler: only exclude test files when initializing compiler (#​2062) (7264c13), closes #​2061, #​2068, #​2072, #​2073
  • config: resolve .babelrc file path before attempting to read it (#​2071) (681bfef), closes #​2064
Features
  • config: allow to override resolve tsconfig behavior (#​2063) (9f46ace)

v26.4.2

Compare Source

Features
  • config: expose several typings as public apis (#​2054) (3b6b705)
Performance Improvements
  • compiler: speed up bootstrap time for isolatedModules:false (#​2055) (230b5dd)
DEPRECATIONS
  • config: deprecate tsConfig in favor of tsconfig (#​1997)
  • config: deprecate packageJson since internal codes don't use it anymore (#​2034)

v26.4.1

Compare Source

Bug Fixes
  • utils: MaybeMockedConstructor returns T (#​1976) (b7712b2)
  • utils: revert path.join and add check on prefix ends with / (#​1989) (3d9035b), closes #​1982

v26.4.0

Compare Source

Bug Fixes
  • utils: pathsToModuleNameMapper resolve path mapping with path.join (#​1969) (81fce4c), closes #​1968
  • set minimum jest-util version at 26.1.0 (#​1914) (f00414c), closes #​1913
Features
  • config: allow custom options in custom transformers (#​1966) (1452ce4), closes #​1942
  • transformers: support hoisting when using @jest/globals (#​1937) (0e5be15), closes #​1593
  • transformers: add path-mapping custom AST transformer (#​1927) (3325186)
Performance Improvements
  • compiler: remove createProgram for isolatedModules: true to boost startup speed (#​1941) (dd84534)

v26.3.0

Compare Source

Bug Fixes
  • config: compute cache key without reading package.json (#​1893) (4875a58), closes #​1892
Features
  • support TypeScript 4.0 (#​1889) (f070e93)

v26.2.0

Compare Source

Bug Fixes
  • move @types/jest to dependencies to work well with yarn 2 (#​1859) (5eb1389), closes

Configuration

📅 Schedule: 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, click this checkbox.

This PR has been generated by Renovate Bot.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@renovate-bot
Update dependency ts-jest to v29
0f42c6c

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@xcomponentadmin @renovate-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.