-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into koa-bodyparser
- Loading branch information
Showing
159 changed files
with
7,235 additions
and
6,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'skuba': major | ||
--- | ||
|
||
lint: Migrate to ESLint 9 and `@typescript-eslint` 8. | ||
|
||
These changes may affect your project setup if customising your ESLint configuration. See the individual migration guides: | ||
|
||
- https://eslint.org/docs/latest/use/migrate-to-9.0.0 | ||
- https://typescript-eslint.io/blog/announcing-typescript-eslint-v8 | ||
|
||
In addition, through these major upgrades, some lint rules have changed or have been renamed. You will likely need adjust your code after running ESLint. | ||
|
||
Furthermore, `eslint-plugin-import` has been replaced with `eslint-plugin-import-x`. To migrate, any references to `eslint-plugin-import` should be replaced with `eslint-plugin-import-x`, and `import/` rules with `import-x/`. | ||
|
||
As part of this migration, skuba has migrated to using Flat ESLint configuration. Read the migration: https://eslint.org/docs/latest/use/configure/migration-guide. | ||
|
||
`skuba format` will attempt to migrate to flat configuration for you, where `.eslintignore` and `.eslintrc` are replaced by `eslint.config.js`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
lint: Update Docker base images to point to AWS ECR Public and remove redundant `--platform` usage | ||
|
||
This updates references to `node:` or `python:` Docker images in your `Dockerfile` and `docker-compose.yml` files to point to AWS ECR Public to avoid Docker Hub rate limiting, along with removing redundant `--platform` [usage](https://docs.docker.com/reference/build-checks/from-platform-flag-const-disallowed/). | ||
|
||
eg. | ||
|
||
```Dockerfile | ||
## Before | ||
FROM --platform=arm64 node:20-alpine AS dev-deps | ||
|
||
## After | ||
FROM public.ecr.aws/docker/library/node:20-alpine AS dev-deps | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'skuba': major | ||
--- | ||
|
||
node, start: Replace `ts-node` with `tsx` | ||
|
||
`skuba start` and `skuba node` now use `tsx` instead of `ts-node` for running TypeScript files. `tsx` has better ESM interoperability, like support for dynamic imports (`await import()`), than `ts-node`. | ||
|
||
There are some downsides for the REPL (which is what `skuba node` without any file is): | ||
|
||
- `import` statements in the REPL are not supported; `require` and `await import()` are still supported. | ||
- Pasting code into the REPL may not work as well as `ts-node`. If encountering issues, a workaround could be to use [`.editor`](https://nodejs.org/en/learn/command-line/how-to-use-the-nodejs-repl#dot-commands) | ||
|
||
Otherwise, `skuba start` and `skuba node <file>` _should_ work as expected. However, it is difficult to comprehensively test every scenario, so this has been released as a major version. It is recommended to test your use-cases of `skuba start` and `skuba node` after upgrading. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
template/koa-rest-api: Enable secure headers middleware by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
lint: Removes obsolete version field from docker-compose.yml files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
template: Add required tags to `lambda-sqs-worker-cdk` template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
api: Truncate Buildkite annotations over 1 MiB to resolve `buildkite-agent` crash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
deps: validate-npm-package-name ^6.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
deps: normalize-package-data ^7.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
deps: TypeScript 5.6 | ||
|
||
This major release includes breaking changes. See the [TypeScript 5.6](https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/) announcement for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
deps: esbuild ~0.24.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
deps: concurrently ^9.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
lint: Replace `.buildkite/` files with duplicated YAML merge keys, for example: | ||
|
||
```yaml | ||
# Before | ||
- <<: *deploy | ||
<<: *docker | ||
label: stuff | ||
|
||
# After | ||
- <<: [*deploy, *docker] | ||
label: stuff | ||
``` | ||
This should have no functional change, and is to support standardised YAML parsing across different tools, including the latest ESLint upgrades. | ||
This migration will not be capture all cases of this (e.g. if there are keys between the merge keys). If you have other cases, update them following the example above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
template/lambda-sqs-worker-cdk: Replace custom hooks with `@seek/aws-codedeploy-infra` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'eslint-config-skuba': minor | ||
--- | ||
|
||
Disable `@typescript-eslint/only-throw-error` in test files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'skuba': minor | ||
--- | ||
|
||
lint, format: Remove [logic](https://github.com/seek-oss/skuba/pull/1226/) which skips autofixing Renovate branches when there is no open pull request. | ||
|
||
Previously, this was put in place to prevent an issue where a Renovate branch can get stuck in the `Edited/Blocked` state without a pull request being raised. | ||
|
||
Skuba's default autofix commits are [now ignored by skuba's recommended renovate configuration](https://github.com/seek-oss/rynovate/pull/121). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'eslint-config-skuba': major | ||
--- | ||
|
||
Migrate to ESLint 9, `@typescript-eslint` 8, `eslint-config-seek` 14. | ||
|
||
These changes may affect your project setup if customising your ESLint configuration. See the individual migration guides: | ||
|
||
- https://eslint.org/docs/latest/use/migrate-to-9.0.0 | ||
- https://typescript-eslint.io/blog/announcing-typescript-eslint-v8 | ||
|
||
Through these major upgrades, some lint rules have changed or have been renamed. You will likely need to adjust your code after running ESLint. | ||
|
||
As part of this migration, this project has migrated to Flat ESLint configuration. Read the migration: https://eslint.org/docs/latest/use/configure/migration-guide. | ||
|
||
Furthermore, `eslint-plugin-import` has been replaced with `eslint-plugin-import-x`. To migrate, any references to `eslint-plugin-import` should be replaced with `eslint-plugin-import-x`, and `import/` rules with `import-x/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
template/\*: Update Docker base images to point to AWS ECR Public and remove redundant `--platform` usage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,16 @@ | |
prPriority: 99, | ||
schedule: 'before 3:00 am every weekday', | ||
}, | ||
{ | ||
matchDepTypes: ['devDependencies'], | ||
matchManagers: ['npm'], | ||
semanticCommitType: 'devDeps', | ||
}, | ||
{ | ||
matchDepTypes: ['dependencies', 'peerDependencies'], | ||
matchManagers: ['npm'], | ||
semanticCommitType: 'deps', | ||
}, | ||
{ | ||
matchPaths: ['template/**'], | ||
|
||
|
@@ -102,13 +112,14 @@ | |
], | ||
branchPrefix: 'renovate-', | ||
commitMessageAction: '', | ||
gitIgnoredAuthors: ['[email protected]'], | ||
postUpdateOptions: [], | ||
prConcurrentLimit: 3, | ||
prNotPendingHours: 1, | ||
rangeStrategy: 'replace', | ||
schedule: 'after 3:00 am and before 6:00 am every weekday', | ||
semanticCommitScope: '', | ||
semanticCommitType: 'deps', | ||
semanticCommitType: 'update', | ||
customManagers: [ | ||
{ | ||
customType: 'regex', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.