From b22190657b4c8bf0149c5dc5a100471ee89c7403 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:22:04 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript to v5 --- package.json | 2 +- pnpm-lock.yaml | 124 ++++++++++++++++++++++++------------------------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/package.json b/package.json index ad44acb0..c8fd6446 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "rimraf": "6.0.1", "ts-node": "10.9.2", "tsup": "8.2.3", - "typescript": "4.9.5", + "typescript": "5.5.4", "vitepress": "1.3.1", "vitest": "2.0.4" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4442618e..04d5b95e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,10 +35,10 @@ importers: version: 17.0.32 '@typescript-eslint/eslint-plugin': specifier: 7.17.0 - version: 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5) + version: 7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/parser': specifier: 7.17.0 - version: 7.17.0(eslint@8.57.0)(typescript@4.9.5) + version: 7.17.0(eslint@8.57.0)(typescript@5.5.4) '@vitest/coverage-v8': specifier: 2.0.4 version: 2.0.4(vitest@2.0.4(@types/node@18.19.42)(@vitest/ui@2.0.4)) @@ -92,22 +92,22 @@ importers: version: 3.3.3 prettier-plugin-organize-imports: specifier: 4.0.0 - version: 4.0.0(prettier@3.3.3)(typescript@4.9.5) + version: 4.0.0(prettier@3.3.3)(typescript@5.5.4) rimraf: specifier: 6.0.1 version: 6.0.1 ts-node: specifier: 10.9.2 - version: 10.9.2(@types/node@18.19.42)(typescript@4.9.5) + version: 10.9.2(@types/node@18.19.42)(typescript@5.5.4) tsup: specifier: 8.2.3 - version: 8.2.3(postcss@8.4.40)(typescript@4.9.5) + version: 8.2.3(postcss@8.4.40)(typescript@5.5.4) typescript: - specifier: 4.9.5 - version: 4.9.5 + specifier: 5.5.4 + version: 5.5.4 vitepress: specifier: 1.3.1 - version: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.42)(postcss@8.4.40)(search-insights@2.15.0)(typescript@4.9.5) + version: 1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.42)(postcss@8.4.40)(search-insights@2.15.0)(typescript@5.5.4) vitest: specifier: 2.0.4 version: 2.0.4(@types/node@18.19.42)(@vitest/ui@2.0.4) @@ -2523,9 +2523,9 @@ packages: resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==} engines: {node: '>= 0.4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.5.4: + resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + engines: {node: '>=14.17'} hasBin: true unbox-primitive@1.0.2: @@ -3204,34 +3204,34 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5)': + '@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@4.9.5) + '@typescript-eslint/parser': 7.17.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/scope-manager': 7.17.0 - '@typescript-eslint/type-utils': 7.17.0(eslint@8.57.0)(typescript@4.9.5) - '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 7.17.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/visitor-keys': 7.17.0 eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@4.9.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@4.9.5)': + '@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@typescript-eslint/scope-manager': 7.17.0 '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/typescript-estree': 7.17.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.4) '@typescript-eslint/visitor-keys': 7.17.0 debug: 4.3.6 eslint: 8.57.0 optionalDependencies: - typescript: 4.9.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -3240,21 +3240,21 @@ snapshots: '@typescript-eslint/types': 7.17.0 '@typescript-eslint/visitor-keys': 7.17.0 - '@typescript-eslint/type-utils@7.17.0(eslint@8.57.0)(typescript@4.9.5)': + '@typescript-eslint/type-utils@7.17.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: - '@typescript-eslint/typescript-estree': 7.17.0(typescript@4.9.5) - '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.4) + '@typescript-eslint/utils': 7.17.0(eslint@8.57.0)(typescript@5.5.4) debug: 4.3.6 eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@4.9.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color '@typescript-eslint/types@7.17.0': {} - '@typescript-eslint/typescript-estree@7.17.0(typescript@4.9.5)': + '@typescript-eslint/typescript-estree@7.17.0(typescript@5.5.4)': dependencies: '@typescript-eslint/types': 7.17.0 '@typescript-eslint/visitor-keys': 7.17.0 @@ -3263,18 +3263,18 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@4.9.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.17.0(eslint@8.57.0)(typescript@4.9.5)': + '@typescript-eslint/utils@7.17.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@typescript-eslint/scope-manager': 7.17.0 '@typescript-eslint/types': 7.17.0 - '@typescript-eslint/typescript-estree': 7.17.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 7.17.0(typescript@5.5.4) eslint: 8.57.0 transitivePeerDependencies: - supports-color @@ -3287,10 +3287,10 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-vue@5.1.1(vite@5.3.5(@types/node@18.19.42))(vue@3.4.34(typescript@4.9.5))': + '@vitejs/plugin-vue@5.1.1(vite@5.3.5(@types/node@18.19.42))(vue@3.4.34(typescript@5.5.4))': dependencies: vite: 5.3.5(@types/node@18.19.42) - vue: 3.4.34(typescript@4.9.5) + vue: 3.4.34(typescript@5.5.4) '@vitest/coverage-v8@2.0.4(vitest@2.0.4(@types/node@18.19.42)(@vitest/ui@2.0.4))': dependencies: @@ -3418,29 +3418,29 @@ snapshots: '@vue/shared': 3.4.34 csstype: 3.1.3 - '@vue/server-renderer@3.4.34(vue@3.4.34(typescript@4.9.5))': + '@vue/server-renderer@3.4.34(vue@3.4.34(typescript@5.5.4))': dependencies: '@vue/compiler-ssr': 3.4.34 '@vue/shared': 3.4.34 - vue: 3.4.34(typescript@4.9.5) + vue: 3.4.34(typescript@5.5.4) '@vue/shared@3.4.34': {} - '@vueuse/core@10.11.0(vue@3.4.34(typescript@4.9.5))': + '@vueuse/core@10.11.0(vue@3.4.34(typescript@5.5.4))': dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.11.0 - '@vueuse/shared': 10.11.0(vue@3.4.34(typescript@4.9.5)) - vue-demi: 0.14.10(vue@3.4.34(typescript@4.9.5)) + '@vueuse/shared': 10.11.0(vue@3.4.34(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) transitivePeerDependencies: - '@vue/composition-api' - vue - '@vueuse/integrations@10.11.0(focus-trap@7.5.4)(vue@3.4.34(typescript@4.9.5))': + '@vueuse/integrations@10.11.0(focus-trap@7.5.4)(vue@3.4.34(typescript@5.5.4))': dependencies: - '@vueuse/core': 10.11.0(vue@3.4.34(typescript@4.9.5)) - '@vueuse/shared': 10.11.0(vue@3.4.34(typescript@4.9.5)) - vue-demi: 0.14.10(vue@3.4.34(typescript@4.9.5)) + '@vueuse/core': 10.11.0(vue@3.4.34(typescript@5.5.4)) + '@vueuse/shared': 10.11.0(vue@3.4.34(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) optionalDependencies: focus-trap: 7.5.4 transitivePeerDependencies: @@ -3449,9 +3449,9 @@ snapshots: '@vueuse/metadata@10.11.0': {} - '@vueuse/shared@10.11.0(vue@3.4.34(typescript@4.9.5))': + '@vueuse/shared@10.11.0(vue@3.4.34(typescript@5.5.4))': dependencies: - vue-demi: 0.14.10(vue@3.4.34(typescript@4.9.5)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -4727,10 +4727,10 @@ snapshots: dependencies: fast-diff: 1.3.0 - prettier-plugin-organize-imports@4.0.0(prettier@3.3.3)(typescript@4.9.5): + prettier-plugin-organize-imports@4.0.0(prettier@3.3.3)(typescript@5.5.4): dependencies: prettier: 3.3.3 - typescript: 4.9.5 + typescript: 5.5.4 prettier@3.3.3: {} @@ -5039,13 +5039,13 @@ snapshots: tree-kill@1.2.2: {} - ts-api-utils@1.3.0(typescript@4.9.5): + ts-api-utils@1.3.0(typescript@5.5.4): dependencies: - typescript: 4.9.5 + typescript: 5.5.4 ts-interface-checker@0.1.13: {} - ts-node@10.9.2(@types/node@18.19.42)(typescript@4.9.5): + ts-node@10.9.2(@types/node@18.19.42)(typescript@5.5.4): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -5059,13 +5059,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.9.5 + typescript: 5.5.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 tslib@2.6.3: {} - tsup@8.2.3(postcss@8.4.40)(typescript@4.9.5): + tsup@8.2.3(postcss@8.4.40)(typescript@5.5.4): dependencies: bundle-require: 5.0.0(esbuild@0.23.0) cac: 6.7.14 @@ -5085,7 +5085,7 @@ snapshots: tree-kill: 1.2.2 optionalDependencies: postcss: 8.4.40 - typescript: 4.9.5 + typescript: 5.5.4 transitivePeerDependencies: - jiti - supports-color @@ -5134,7 +5134,7 @@ snapshots: is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 - typescript@4.9.5: {} + typescript@5.5.4: {} unbox-primitive@1.0.2: dependencies: @@ -5188,24 +5188,24 @@ snapshots: '@types/node': 18.19.42 fsevents: 2.3.3 - vitepress@1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.42)(postcss@8.4.40)(search-insights@2.15.0)(typescript@4.9.5): + vitepress@1.3.1(@algolia/client-search@4.24.0)(@types/node@18.19.42)(postcss@8.4.40)(search-insights@2.15.0)(typescript@5.5.4): dependencies: '@docsearch/css': 3.6.1 '@docsearch/js': 3.6.1(@algolia/client-search@4.24.0)(search-insights@2.15.0) '@shikijs/core': 1.12.0 '@shikijs/transformers': 1.12.0 '@types/markdown-it': 14.1.2 - '@vitejs/plugin-vue': 5.1.1(vite@5.3.5(@types/node@18.19.42))(vue@3.4.34(typescript@4.9.5)) + '@vitejs/plugin-vue': 5.1.1(vite@5.3.5(@types/node@18.19.42))(vue@3.4.34(typescript@5.5.4)) '@vue/devtools-api': 7.3.7 '@vue/shared': 3.4.34 - '@vueuse/core': 10.11.0(vue@3.4.34(typescript@4.9.5)) - '@vueuse/integrations': 10.11.0(focus-trap@7.5.4)(vue@3.4.34(typescript@4.9.5)) + '@vueuse/core': 10.11.0(vue@3.4.34(typescript@5.5.4)) + '@vueuse/integrations': 10.11.0(focus-trap@7.5.4)(vue@3.4.34(typescript@5.5.4)) focus-trap: 7.5.4 mark.js: 8.11.1 minisearch: 7.1.0 shiki: 1.12.0 vite: 5.3.5(@types/node@18.19.42) - vue: 3.4.34(typescript@4.9.5) + vue: 3.4.34(typescript@5.5.4) optionalDependencies: postcss: 8.4.40 transitivePeerDependencies: @@ -5268,19 +5268,19 @@ snapshots: - supports-color - terser - vue-demi@0.14.10(vue@3.4.34(typescript@4.9.5)): + vue-demi@0.14.10(vue@3.4.34(typescript@5.5.4)): dependencies: - vue: 3.4.34(typescript@4.9.5) + vue: 3.4.34(typescript@5.5.4) - vue@3.4.34(typescript@4.9.5): + vue@3.4.34(typescript@5.5.4): dependencies: '@vue/compiler-dom': 3.4.34 '@vue/compiler-sfc': 3.4.34 '@vue/runtime-dom': 3.4.34 - '@vue/server-renderer': 3.4.34(vue@3.4.34(typescript@4.9.5)) + '@vue/server-renderer': 3.4.34(vue@3.4.34(typescript@5.5.4)) '@vue/shared': 3.4.34 optionalDependencies: - typescript: 4.9.5 + typescript: 5.5.4 webidl-conversions@4.0.2: {} From e5e68b89c5f3fac3e57f9d4c8720057c014b43e4 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Sat, 27 Jul 2024 23:27:03 +0200 Subject: [PATCH 2/2] chore: sort imports --- bin/node-pg-migrate.ts | 2 +- src/index.ts | 2 +- src/utils/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/node-pg-migrate.ts b/bin/node-pg-migrate.ts index c210b326..30008b61 100755 --- a/bin/node-pg-migrate.ts +++ b/bin/node-pg-migrate.ts @@ -4,7 +4,7 @@ import type { DotenvConfigOptions } from 'dotenv'; // Import as node-pg-migrate, so tsup does not self-reference as '../dist' // otherwise this could not be imported by esm // @ts-ignore: when a clean was made, the types are not present in the first run -import { default as migrationRunner, Migration } from 'node-pg-migrate'; +import { Migration, default as migrationRunner } from 'node-pg-migrate'; import { readFileSync } from 'node:fs'; import { createRequire } from 'node:module'; import { join, resolve } from 'node:path'; diff --git a/src/index.ts b/src/index.ts index 76450110..3003a19d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -264,5 +264,5 @@ export type { export { runner as default, runner } from './runner'; export { PgType } from './types'; export type { MigrationBuilder, RunnerOption } from './types'; -export { isPgLiteral, PgLiteral } from './utils'; +export { PgLiteral, isPgLiteral } from './utils'; export type { PgLiteralValue } from './utils'; diff --git a/src/utils/index.ts b/src/utils/index.ts index 59704c19..83f8bcb9 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -9,7 +9,7 @@ export { getSchemas } from './getSchemas'; export { identity } from './identity'; export { intersection } from './intersection'; export { makeComment } from './makeComment'; -export { isPgLiteral, PgLiteral } from './PgLiteral'; +export { PgLiteral, isPgLiteral } from './PgLiteral'; export type { PgLiteralValue } from './PgLiteral'; export { quote } from './quote'; export { StringIdGenerator } from './StringIdGenerator';