Skip to content

Commit

Permalink
chore(deps): update dependency @swc/* (#1839)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs)
([source](https://togithub.com/swc-project/swc)) | [`1.5.7` ->
`1.5.24`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.5.7/1.5.24) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc%2fcore/1.5.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc%2fcore/1.5.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc%2fcore/1.5.7/1.5.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc%2fcore/1.5.7/1.5.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc (@&#8203;swc/core)</summary>

###
[`v1.5.24`](https://togithub.com/swc-project/swc/compare/v1.5.23...a1084695ae075079c8a0b967f45b6f4cc4c07bcd)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.23...v1.5.24)

###
[`v1.5.23`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1523---2024-05-30)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.22...v1.5.23)

##### Bug Fixes

- **(bindings/node)** Fix regression of JS APIs
([#&#8203;8998](https://togithub.com/swc-project/swc/issues/8998))
([125ddd2](https://togithub.com/swc-project/swc/commit/125ddd2dd98e882f9e10b7d94f766eae85143d71))

- **(es/jest)** Handle `@jest/globals`
([#&#8203;8994](https://togithub.com/swc-project/swc/issues/8994))
([a81a01f](https://togithub.com/swc-project/swc/commit/a81a01f629613a624798693e60f9796904a8dce1))

###
[`v1.5.22`](https://togithub.com/swc-project/swc/compare/v1.5.20...v1.5.22)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.20...v1.5.22)

###
[`v1.5.20`](https://togithub.com/swc-project/swc/compare/v1.5.19...v1.5.20)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.19...v1.5.20)

###
[`v1.5.19`](https://togithub.com/swc-project/swc/compare/v1.5.11...v1.5.19)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.11...v1.5.19)

###
[`v1.5.11`](https://togithub.com/swc-project/swc/compare/v1.5.7...v1.5.11)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.5.7...v1.5.11)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/AmadeusITGroup/otter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
  • Loading branch information
kpanot authored Jun 5, 2024
2 parents 3cd2769 + cfb29d8 commit 2ee69d4
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 154 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"@schematics/angular": "~17.3.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
"@swc-node/register": "^1.6.7",
"@swc/core": "1.5.7",
"@swc/core": "~1.5.24",
"@types/estree": "^1.0.5",
"@types/jest": "~29.5.2",
"@types/node": "^20.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/@ama-sdk/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"prepare:publish": "prepare-publish ./dist"
},
"dependencies": {
"@swc/helpers": "^0.5.0",
"@swc/helpers": "~0.5.0",
"tslib": "^2.6.2",
"uuid": "^9.0.0"
},
Expand Down Expand Up @@ -131,8 +131,8 @@
"@o3r/test-helpers": "workspace:^",
"@schematics/angular": "~17.3.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
"@swc/cli": "^0.3.0",
"@swc/core": "1.5.7",
"@swc/cli": "~0.3.0",
"@swc/core": "~1.5.24",
"@types/jest": "~29.5.2",
"@types/minimist": "^1.2.2",
"@types/node": "^20.0.0",
Expand Down
13 changes: 13 additions & 0 deletions packages/@ama-sdk/schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@
"type-fest": "^4.10.2",
"typescript": "~5.4.2"
},
"generatorDependencies": {
"@swc/cli": "~0.3.0",
"@swc/core": "~1.5.24",
"@swc/helpers": "~0.5.0",
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"jest-junit": "~16.0.0",
"lint-staged": "^15.0.0",
"minimist": "^1.2.6",
"rimraf": "^5.0.1",
"typedoc": "~0.25.0",
"tsc-watch": "^6.0.4"
},
"openApiSupportedVersion": "~7.4.0",
"engines": {
"node": ">=18.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from 'node:path';
import type { PackageJson } from 'type-fest';

/** Get generator package.json */
export const readPackageJson = async <T extends PackageJson>(): Promise<T> => {
export const readPackageJson = async <T extends PackageJson & {generatorDependencies: Record<string, string>}>(): Promise<T> => {
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');

return JSON.parse(await fs.readFile(packageJsonPath, {encoding: 'utf-8'}));
Expand Down
25 changes: 18 additions & 7 deletions packages/@ama-sdk/schematics/schematics/typescript/shell/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,36 @@ function ngGenerateTypescriptSDKFn(options: NgGenerateTypescriptSDKShellSchemati
/* eslint-disable @typescript-eslint/naming-convention */
const versions = {
'tslib': amaSdkSchematicsPackageJson.dependencies!.tslib,
'@commitlint/cli': amaSdkSchematicsPackageJson.generatorDependencies['@commitlint/cli'],
'@commitlint/config-conventional': amaSdkSchematicsPackageJson.generatorDependencies['@commitlint/config-conventional'],
'@swc/helpers': amaSdkSchematicsPackageJson.generatorDependencies['@swc/helpers'],
'@swc/cli': amaSdkSchematicsPackageJson.generatorDependencies['@swc/cli'],
'@swc/core': amaSdkSchematicsPackageJson.generatorDependencies['@swc/core'],
'@types/jest': amaSdkSchematicsPackageJson.devDependencies!['@types/jest'],
'@types/node': amaSdkSchematicsPackageJson.devDependencies!['@types/node'],
'@typescript-eslint/eslint-plugin': amaSdkSchematicsPackageJson.devDependencies!['@typescript-eslint/eslint-plugin'],
'@typescript-eslint/parser': amaSdkSchematicsPackageJson.devDependencies!['@typescript-eslint/parser'],
'eslint': amaSdkSchematicsPackageJson.devDependencies!.eslint,
'@openapitools/openapi-generator-cli': amaSdkSchematicsPackageJson.devDependencies!['@openapitools/openapi-generator-cli'],
'@stylistic/eslint-plugin-ts': amaSdkSchematicsPackageJson.devDependencies!['@stylistic/eslint-plugin-ts'],
'commit-and-tag-version': amaSdkSchematicsPackageJson.devDependencies!['commit-and-tag-version'],
'cpy-cli': amaSdkSchematicsPackageJson.devDependencies!['cpy-cli'],
'eslint-plugin-jest': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-jest'],
'eslint-plugin-jsdoc': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-jsdoc'],
'eslint-plugin-prefer-arrow': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-prefer-arrow'],
'eslint-plugin-unicorn': amaSdkSchematicsPackageJson.devDependencies!['eslint-plugin-unicorn'],
'eslint': amaSdkSchematicsPackageJson.devDependencies!.eslint,
'globby': amaSdkSchematicsPackageJson.devDependencies!.globby,
'isomorphic-fetch': amaSdkSchematicsPackageJson.devDependencies!['isomorphic-fetch'],
'cpy-cli': amaSdkSchematicsPackageJson.devDependencies!['cpy-cli'],
'jest': amaSdkSchematicsPackageJson.devDependencies!.jest,
'rxjs': amaSdkSchematicsPackageJson.dependencies!.rxjs,
'ts-jest': amaSdkSchematicsPackageJson.devDependencies!['ts-jest'],
'globby': amaSdkSchematicsPackageJson.devDependencies!.globby,
'typescript': amaSdkSchematicsPackageJson.devDependencies!.typescript,
'@openapitools/openapi-generator-cli': amaSdkSchematicsPackageJson.devDependencies!['@openapitools/openapi-generator-cli'],
'@stylistic/eslint-plugin-ts': amaSdkSchematicsPackageJson.devDependencies!['@stylistic/eslint-plugin-ts'],
'rxjs': amaSdkSchematicsPackageJson.dependencies!.rxjs,
'commit-and-tag-version': amaSdkSchematicsPackageJson.devDependencies!['commit-and-tag-version']
'jest-junit': amaSdkSchematicsPackageJson.generatorDependencies['jest-junit'],
'lint-staged': amaSdkSchematicsPackageJson.generatorDependencies['lint-staged'],
'minimist': amaSdkSchematicsPackageJson.generatorDependencies.minimist,
'rimraf': amaSdkSchematicsPackageJson.generatorDependencies.rimraf,
'tsc-watch': amaSdkSchematicsPackageJson.generatorDependencies['tsc-watch'],
'typedoc': amaSdkSchematicsPackageJson.generatorDependencies.typedoc
};
const openApiSupportedVersion = typeof amaSdkSchematicsPackageJson.openApiSupportedVersion === 'string' &&
amaSdkSchematicsPackageJson.openApiSupportedVersion.replace(/\^|~/, '');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
]
},
"dependencies": {
"@swc/helpers": "^0.5.0",
"@swc/helpers": "<%= versions['@swc/helpers'] %>",
"tslib": "<%= versions['tslib'] %>"
},
"peerDependenciesMeta": {
Expand All @@ -73,18 +73,18 @@
"@angular-eslint/utils": "<%= angularEslintVersion %>",
"@angular/compiler": "<%= angularVersion %>",
"@angular/cli": "<%= angularVersion %>",
"@commitlint/cli": "^17.0.0",
"@commitlint/cli": "<%= versions['@commitlint/cli'] %>",
"@schematics/angular": "<%= angularVersion %>",
"@commitlint/config-conventional": "^17.0.0",
"@commitlint/config-conventional": "<%= versions['@commitlint/config-conventional'] %>",
"@ama-sdk/schematics": "<%= sdkCoreRange %>",
"@ama-sdk/core": "<%= sdkCoreRange %>",
"@o3r/eslint-config-otter": "<%= sdkCoreRange %>",
"@o3r/eslint-plugin": "<%= sdkCoreRange %>",
"@o3r/schematics": "<%= sdkCoreRange %>",
"@openapitools/openapi-generator-cli": "<%= versions['@openapitools/openapi-generator-cli'] %>",
"@stylistic/eslint-plugin-ts": "<%= versions['@stylistic/eslint-plugin-ts'] %>",
"@swc/cli": "^0.1.57",
"@swc/core": "1.5.7",
"@swc/cli": "<%= versions['@swc/cli'] %>",
"@swc/core": "<%= versions['@swc/core'] %>",
"@types/jest": "<%= versions['@types/jest'] %>",
"@types/node": "<%= versions['@types/node'] %>",
"@typescript-eslint/eslint-plugin": "<%= versions['@typescript-eslint/eslint-plugin'] %>",
Expand All @@ -99,15 +99,15 @@
"globby": "<%= versions['globby'] %>",
"isomorphic-fetch": "<%= versions['isomorphic-fetch'] %>",
"jest": "<%= versions['jest'] %>",
"jest-junit": "~16.0.0",
"lint-staged": "^13.0.0",
"minimist": "^1.2.6",
"rimraf": "^5.0.1",
"jest-junit": "<%= versions['jest-junit'] %>",
"lint-staged": "<%= versions['lint-staged'] %>",
"minimist": "<%= versions['minimist'] %>",
"rimraf": "<%= versions['rimraf'] %>",
"rxjs": "<%= versions['rxjs'] %>",
"commit-and-tag-version": "<%= versions['commit-and-tag-version'] %>",
"ts-jest": "<%= versions['ts-jest'] %>",
"typedoc": "~0.25.0",
"tsc-watch": "^6.0.0",
"typedoc": "<%= versions['typedoc'] %>",
"tsc-watch": "<%= versions['tsc-watch'] %>",
"typescript": "<%= versions['typescript'] %>"<% if (specPackageName) { %>,
"<%=specPackageName%>": "<%=specPackageVersion%>"<% } %>
},<% if (exactO3rVersion) { %>
Expand Down
6 changes: 3 additions & 3 deletions packages/@ama-sdk/showcase-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"tools:changelog": "commit-and-tag-version"
},
"dependencies": {
"@swc/helpers": "^0.5.0",
"@swc/helpers": "~0.5.0",
"tslib": "^2.6.2"
},
"peerDependenciesMeta": {
Expand All @@ -82,8 +82,8 @@
"@openapitools/openapi-generator-cli": "~2.13.0",
"@schematics/angular": "~17.3.0",
"@stylistic/eslint-plugin-ts": "^1.5.4",
"@swc/cli": "^0.3.0",
"@swc/core": "1.5.7",
"@swc/cli": "~0.3.0",
"@swc/core": "~1.5.24",
"@types/jest": "~29.5.2",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
Expand Down
Loading

0 comments on commit 2ee69d4

Please sign in to comment.