diff --git a/CHANGELOG.md b/CHANGELOG.md index 111e165..486a8f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [3.7.1](https://github.com/kaisermann/svelte-i18n/compare/v3.4.0...v3.7.1) (2023-09-03) + + +### Bug Fixes + +* validate `initialLocale` before using it ([#217](https://github.com/kaisermann/svelte-i18n/issues/217)) ([ebeec58](https://github.com/kaisermann/svelte-i18n/commit/ebeec58db57b01cd062cc215a14953fd63353e93)) + + + # [3.7.0](https://github.com/kaisermann/svelte-i18n/compare/v3.4.0...v3.7.0) (2023-07-04) diff --git a/package.json b/package.json index b352458..fb64aa7 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "devDependencies": { "@kiwi/eslint-config": "^1.19.5", "@kiwi/prettier-config": "^1.19.5", - "@rollup/plugin-commonjs": "^23.0.2", + "@rollup/plugin-commonjs": "^25.0.4", "@types/cli-color": "^2.0.2", "@types/dlv": "^1.1.2", "@types/estree": "1.0.0", @@ -77,9 +77,9 @@ "jest-environment-jsdom": "^29.3.1", "lint-staged": "^13.0.3", "prettier": "^2.7.1", - "rollup": "^3.3.0", + "rollup": "^3.28.1", "rollup-plugin-auto-external": "^2.0.0", - "rollup-plugin-dts": "^5.0.0", + "rollup-plugin-dts": "^6.0.1", "rollup-plugin-esbuild": "^5.0.0", "sass": "^1.56.1", "svelte": "^3.53.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 99bd9da..d471274 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,8 +34,8 @@ devDependencies: specifier: ^1.19.5 version: 1.19.5(prettier@2.7.1) '@rollup/plugin-commonjs': - specifier: ^23.0.2 - version: 23.0.2(rollup@3.3.0) + specifier: ^25.0.4 + version: 25.0.4(rollup@3.28.1) '@types/cli-color': specifier: ^2.0.2 version: 2.0.2 @@ -85,17 +85,17 @@ devDependencies: specifier: ^2.7.1 version: 2.7.1 rollup: - specifier: ^3.3.0 - version: 3.3.0 + specifier: ^3.28.1 + version: 3.28.1 rollup-plugin-auto-external: specifier: ^2.0.0 - version: 2.0.0(rollup@3.3.0) + version: 2.0.0(rollup@3.28.1) rollup-plugin-dts: - specifier: ^5.0.0 - version: 5.0.0(rollup@3.3.0)(typescript@4.9.3) + specifier: ^6.0.1 + version: 6.0.1(rollup@3.28.1)(typescript@4.9.3) rollup-plugin-esbuild: specifier: ^5.0.0 - version: 5.0.0(esbuild@0.19.2)(rollup@3.3.0) + version: 5.0.0(esbuild@0.19.2)(rollup@3.28.1) sass: specifier: ^1.56.1 version: 1.56.1 @@ -122,11 +122,12 @@ packages: '@jridgewell/trace-mapping': 0.3.17 dev: true - /@babel/code-frame@7.18.6: - resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==} + /@babel/code-frame@7.22.13: + resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.18.6 + '@babel/highlight': 7.22.13 + chalk: 2.4.2 dev: true /@babel/compat-data@7.20.1: @@ -139,7 +140,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.0 - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 '@babel/generator': 7.20.4 '@babel/helper-compilation-targets': 7.20.0(@babel/core@7.20.2) '@babel/helper-module-transforms': 7.20.2 @@ -214,7 +215,7 @@ packages: '@babel/helper-module-imports': 7.18.6 '@babel/helper-simple-access': 7.20.2 '@babel/helper-split-export-declaration': 7.18.6 - '@babel/helper-validator-identifier': 7.19.1 + '@babel/helper-validator-identifier': 7.22.5 '@babel/template': 7.18.10 '@babel/traverse': 7.20.1 '@babel/types': 7.20.2 @@ -246,8 +247,8 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-identifier@7.19.1: - resolution: {integrity: sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==} + /@babel/helper-validator-identifier@7.22.5: + resolution: {integrity: sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==} engines: {node: '>=6.9.0'} dev: true @@ -267,11 +268,11 @@ packages: - supports-color dev: true - /@babel/highlight@7.18.6: - resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==} + /@babel/highlight@7.22.13: + resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.19.1 + '@babel/helper-validator-identifier': 7.22.5 chalk: 2.4.2 js-tokens: 4.0.0 dev: true @@ -432,7 +433,7 @@ packages: resolution: {integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 '@babel/parser': 7.20.3 '@babel/types': 7.20.2 dev: true @@ -441,7 +442,7 @@ packages: resolution: {integrity: sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 '@babel/generator': 7.20.4 '@babel/helper-environment-visitor': 7.18.9 '@babel/helper-function-name': 7.19.0 @@ -460,7 +461,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.19.4 - '@babel/helper-validator-identifier': 7.19.1 + '@babel/helper-validator-identifier': 7.22.5 to-fast-properties: 2.0.0 dev: true @@ -960,7 +961,7 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true /@jridgewell/gen-mapping@0.3.2: @@ -968,7 +969,7 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 + '@jridgewell/sourcemap-codec': 1.4.15 '@jridgewell/trace-mapping': 0.3.17 dev: true @@ -986,6 +987,10 @@ packages: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} dev: true + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + dev: true + /@jridgewell/trace-mapping@0.3.17: resolution: {integrity: sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==} dependencies: @@ -1073,8 +1078,8 @@ packages: fastq: 1.13.0 dev: true - /@rollup/plugin-commonjs@23.0.2(rollup@3.3.0): - resolution: {integrity: sha512-e9ThuiRf93YlVxc4qNIurvv+Hp9dnD+4PjOqQs5vAYfcZ3+AXSrcdzXnVjWxcGQOa6KGJFcRZyUI3ktWLavFjg==} + /@rollup/plugin-commonjs@25.0.4(rollup@3.28.1): + resolution: {integrity: sha512-L92Vz9WUZXDnlQQl3EwbypJR4+DM2EbsO+/KOcEkP4Mc6Ct453EeDB2uH9lgRwj4w5yflgNpq9pHOiY8aoUXBQ==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^2.68.0||^3.0.0 @@ -1082,16 +1087,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.0.2(rollup@3.3.0) + '@rollup/pluginutils': 5.0.2(rollup@3.28.1) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.0.3 is-reference: 1.2.1 - magic-string: 0.26.7 - rollup: 3.3.0 + magic-string: 0.27.0 + rollup: 3.28.1 dev: true - /@rollup/pluginutils@5.0.2(rollup@3.3.0): + /@rollup/pluginutils@5.0.2(rollup@3.28.1): resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -1103,7 +1108,7 @@ packages: '@types/estree': 1.0.0 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 3.3.0 + rollup: 3.28.1 dev: true /@sinclair/typebox@0.24.51: @@ -3885,7 +3890,7 @@ packages: resolution: {integrity: sha512-lMJTbgNcDm5z+6KDxWtqOFWlGQxD6XaYwBqHR8kmpkP+WWWG90I35kdtQHY67Ay5CSuydkTBbJG+tH9JShFCyA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 '@jest/types': 29.3.1 '@types/stack-utils': 2.0.1 chalk: 4.1.2 @@ -4407,11 +4412,18 @@ packages: sourcemap-codec: 1.4.8 dev: true - /magic-string@0.26.7: - resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} + /magic-string@0.27.0: + resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} dependencies: - sourcemap-codec: 1.4.8 + '@jridgewell/sourcemap-codec': 1.4.14 + dev: true + + /magic-string@0.30.3: + resolution: {integrity: sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 dev: true /make-dir@3.1.0: @@ -4821,7 +4833,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -5185,7 +5197,7 @@ packages: glob: 7.2.3 dev: true - /rollup-plugin-auto-external@2.0.0(rollup@3.3.0): + /rollup-plugin-auto-external@2.0.0(rollup@3.28.1): resolution: {integrity: sha512-HQM3ZkZYfSam1uoZtAB9sK26EiAsfs1phrkf91c/YX+S07wugyRXSigBxrIwiLr5EPPilKYmoMxsrnlGBsXnuQ==} engines: {node: '>=6'} peerDependencies: @@ -5193,45 +5205,45 @@ packages: dependencies: builtins: 2.0.1 read-pkg: 3.0.0 - rollup: 3.3.0 + rollup: 3.28.1 safe-resolve: 1.0.0 semver: 5.7.1 dev: true - /rollup-plugin-dts@5.0.0(rollup@3.3.0)(typescript@4.9.3): - resolution: {integrity: sha512-OO8ayCvuJCKaQSShyVTARxGurVVk4ulzbuvz+0zFd1f93vlnWFU5pBMT7HFeS6uj7MvvZLx4kUAarGATSU1+Ng==} - engines: {node: '>=v14'} + /rollup-plugin-dts@6.0.1(rollup@3.28.1)(typescript@4.9.3): + resolution: {integrity: sha512-XJbCldVrp4TLc2Hg4DfrRiJgzJ73uhZB0sPSDizgdlrhSJ1bsIkkRMkwRKNQYgkbfMz4CHLdbnFKVivHE0vsPA==} + engines: {node: '>=16'} peerDependencies: - rollup: ^3.0.0 - typescript: ^4.1 + rollup: ^3.25 + typescript: ^4.5 || ^5.0 dependencies: - magic-string: 0.26.7 - rollup: 3.3.0 + magic-string: 0.30.3 + rollup: 3.28.1 typescript: 4.9.3 optionalDependencies: - '@babel/code-frame': 7.18.6 + '@babel/code-frame': 7.22.13 dev: true - /rollup-plugin-esbuild@5.0.0(esbuild@0.19.2)(rollup@3.3.0): + /rollup-plugin-esbuild@5.0.0(esbuild@0.19.2)(rollup@3.28.1): resolution: {integrity: sha512-1cRIOHAPh8WQgdQQyyvFdeOdxuiyk+zB5zJ5+YOwrZP4cJ0MT3Fs48pQxrZeyZHcn+klFherytILVfE4aYrneg==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} peerDependencies: esbuild: '>=0.10.1' rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 dependencies: - '@rollup/pluginutils': 5.0.2(rollup@3.3.0) + '@rollup/pluginutils': 5.0.2(rollup@3.28.1) debug: 4.3.4 es-module-lexer: 1.3.0 esbuild: 0.19.2 joycon: 3.1.1 jsonc-parser: 3.2.0 - rollup: 3.3.0 + rollup: 3.28.1 transitivePeerDependencies: - supports-color dev: true - /rollup@3.3.0: - resolution: {integrity: sha512-wqOV/vUJCYEbWsXvwCkgGWvgaEnsbn4jxBQWKpN816CqsmCimDmCNJI83c6if7QVD4v/zlyRzxN7U2yDT5rfoA==} + /rollup@3.28.1: + resolution: {integrity: sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: