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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
skuba@5.0.0
Major Changes
test: Remove default
src
module alias (#987)Our Jest preset automatically registers your
tsconfig.json
paths as module aliases, but would previously fall back to thesrc
alias if the option was omitted or failed to load. This default has now been removed.This is not expected to affect most projects. If yours makes use of the
src
alias and its tests are now failing on imports like the following:Ensure that you declare this path in a
tsconfig.json
located in your project root:build, test: Default to isolated modules (#987)
Our Jest and TypeScript presets now enable
isolatedModules
by default. Your Jest tests should start quicker, consume less resources, and no longer get stuck on pesky type errors. This should not compromise the type safety of your project asskuba lint
is intended to type check all production and testing code.If your project contains files without imports and exports like
jest.setup.ts
, you can add an empty export statement to them to placate the TypeScript compiler:jest.setup.ts(1,1): error TS1208: 'jest.setup.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
process.env.ENVIRONMENT = 'test'; + export {};
If you previously enabled
isolatedModules
via theglobals
option in your Jest config, this is no longer functional due to syntax changes in ts-jest 29. You should be able to rely on our default going forward.skuba configure
can attempt to clean up the stale option, or you can remove it from yourjest.config.ts
manually:Isolated modules are incompatible with certain language features like
const enum
s. We recommend migrating away from such features as they are not supported by the broader ecosystem, including transpilers like Babel and esbuild. If your project is not yet ready for isolated modules, you can override the default in yourtsconfig.json
:{ "compilerOptions": { + "isolatedModules": false }, "extends": "skuba/config/tsconfig.json" }
Minor Changes
format: Sort package.json (#1016)
build: Add experimental esbuild support (#681)
You can now build your project with esbuild. Note that this integration is still experimental, only includes the bare minimum to supplant a basic
tsc
-based build, and is not guaranteed to matchtsc
output. See the esbuild deep dive for more information.To opt in, modify your
package.json
:{ "skuba": { + "build": "esbuild", "template": null } }
Patch Changes
configure: Fix
tsconfig.json#/compilerOptions/lib
clobbering (#1031)template: Bump greeter and API templates to Node.js 18 (#1011)
Node.js 18 is now in active LTS. The Lambda templates are stuck on Node.js 16 until the new AWS Lambda runtime is released.
template/lambda-sqs-worker-cdk: Replace Runtypes with Zod as default schema validator (#984)
template/lambda-sqs-worker: Replace Runtypes with Zod as default schema validator (#984)
configure: Fix package version lookups (#974)
This resolves the following error:
Error: Package "xyz" does not have a valid package.json manifest
configure: Fix
jest.setup.js
clobbering (#1031)template/lambda-sqs-worker*: Adjust Buildkite pipelines for new
renovate--
branch name prefix (#1022)See the pull request that aligns our Renovate presets for more information.
template: Support AMD64 Docker builds via
BUILDPLATFORM
(#1021)See the Docker documentation for more information. Note that this does not allow you to build on AMD64 hardware then deploy to ARM64 hardware and vice versa. It is provided for convenience if you need to revert to an AMD64 workflow and/or build and run an image on local AMD64 hardware.
template/koa-rest-api: Replace Runtypes with Zod as default schema validator (#984)