7.0.0 (2023-01-19)
Bug Fixes
- api/test: forward ts-jest utils from
ts-jest
, remove mocked
(56756f9)
- config/jest: add jest-environment-jsdom as a dependency (c81409e)
- config/jest: set
ts-jest
transform unconditionally (03df4f9)
- remove
skipLibCheck
as it's no longer necessary (d2e9873)
- scripts/pre-commit: don't fail when no related tests are found (12c307b)
- test: add
@swc/helpers
(446707a)
Features
- api/commit: add support for excluding directories in
ls.dirs()
(8648a39)
- config/eslint: dissallow default exports in strict configuration (1fbee33)
- config/jest:
@swc/jest
→ @swc-node/jest
(supports tsconfig) (7627f06)
- config/release: specify
next
as a pre-release channel as well (5ace598)
- config/test: use @swc/jest as default Jest transform (bf86aac)
- deps: update eslint (17e60e0)
- deps: upgrade
@swc-node/jest
and @swc/core
(a5d4057)
- deps: upgrade all dependencies to latest (82d6fdd)
- deps: upgrade commitlint (fcb02d2)
- deps: upgrade Prettier to 2.8.1 (3f56e8a)
- scripts/ci-after-success: use Semantic Release 19 (9e87c79)
- scripts/test: upgrade Jest to 28.x (0c67b80)
- scripts/test: upgrade Jest to 29.x (01dadec)
- scripts/test: upgrade Jest to 29.x (955ea31)
BREAKING CHANGES
- deps: potential breaking change as some upgrades were major
- api/commit:
ls.dirs()
from api/commit
now takes an options
object as the second parameter instead of a prefix
. If you're using
a prefix you'll need to make the following change:
// Before
ls.dirs('./packages', 'my-prefix');
// After
ls.dirs('./packages', { prefix: 'my-prefix' });
- api/commit:
ls.dirs()
now excludes node_modules
directories
by default. If for some reason you want to include `node_modules`,
you'll need to explicitly set `exclude` to `null`:
// Before
ls.dirs('./packages');
// After
ls.dirs('./packages', { exclude: null });
- config/test: @swc/jest is now the default Jest transform and
ts-jest is no longer installed by default. To preserve the old transform
behavior, install ts-jest as a `devDependency` in you project. ∙ BREAKING
CHANGE: the `@hover/javascript/api/test` API has been removed as ts-jest
is no longer installed by default. If you're still using ts-jest, import
its helpers directly from ts-jest instead of the `/api/test` entrypoint.
- scripts/test: upgrades Jest a major version (28 to 29)
- scripts/test: Node 12 is no longer supported
- scripts/test: upgrades Jest a major version (28 to 29)
- scripts/test: Node 12 is no longer supported
- config/release: the
next
branch will now be treated as pre-releases too
- scripts/ci-after-success: using new major version of Semantic Release in
ci-after-success
- scripts/test: upgrades Jest a major version (27 to 28)
- config/eslint: default exports are no longer allowed when using
@hover/javascript/eslint/strict
- api/test:
api/test
no longer exports mocked()
, it's available
at jest.mocked()
now