From 62bb58dc09edb01fbe50ef894c070723647fbcb6 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 27 Sep 2023 13:10:21 -0400 Subject: [PATCH] backport localize fix --- docs/pages/resources/changelog.md | 5 +++++ package-lock.json | 14 +++++++------- package.json | 18 ++++++++++++++---- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index f7d72a553..7b97f4196 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -19,6 +19,11 @@ New versions of Web Awesome are released as-needed and generally occur when a cr - Removed `default` from `` and made `neutral` the new default - Removed the `circle` modifier from `` because button's no longer have a set height +## Next + +- Fixed a bug [in the localize dependency](https://github.com/shoelace-style/localize/issues/20) that caused underscores in language codes to throw a `RangeError` +- Updated `@shoelace-style/localize` to 3.1.0 + ## 2.9.0 - Added the `modal` property to `` and `` to support third-party modals [#1571] diff --git a/package-lock.json b/package-lock.json index e55a82eea..ba433fa57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@floating-ui/dom": "^1.2.1", "@lit-labs/react": "^2.0.3", "@shoelace-style/animations": "^1.1.0", - "@shoelace-style/localize": "^3.1.1", + "@shoelace-style/localize": "^3.1.2", "composed-offset-position": "^0.0.4", "lit": "^2.7.5", "qr-creator": "^1.0.0" @@ -1825,9 +1825,9 @@ } }, "node_modules/@shoelace-style/localize": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.1.tgz", - "integrity": "sha512-NkM/hj3Js6yXCU9WxhsyxRUdyqUUUl/BSvIluUMptQteUWGOJaoyP1iMbOMqO544DYMzBfnoCw66ZHkGuTdKgA==" + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.2.tgz", + "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" }, "node_modules/@sindresorhus/is": { "version": "0.7.0", @@ -18570,9 +18570,9 @@ "integrity": "sha512-Be+cahtZyI2dPKRm8EZSx3YJQ+jLvEcn3xzRP7tM4tqBnvd/eW/64Xh0iOf0t2w5P8iJKfdBbpVNE9naCaOf2g==" }, "@shoelace-style/localize": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.1.tgz", - "integrity": "sha512-NkM/hj3Js6yXCU9WxhsyxRUdyqUUUl/BSvIluUMptQteUWGOJaoyP1iMbOMqO544DYMzBfnoCw66ZHkGuTdKgA==" + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@shoelace-style/localize/-/localize-3.1.2.tgz", + "integrity": "sha512-Hf45HeO+vdQblabpyZOTxJ4ZeZsmIUYXXPmoYrrR4OJ5OKxL+bhMz5mK8JXgl7HsoEowfz7+e248UGi861de9Q==" }, "@sindresorhus/is": { "version": "0.7.0", diff --git a/package.json b/package.json index e3f80170b..3c45dd21f 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,15 @@ "./dist/react/*": "./dist/react/*", "./dist/translations/*": "./dist/translations/*" }, - "files": ["dist", "cdn"], - "keywords": ["web components", "custom elements", "components"], + "files": [ + "dist", + "cdn" + ], + "keywords": [ + "web components", + "custom elements", + "components" + ], "repository": { "type": "git", "url": "git+https://github.com/shoelace-style/shoelace.git" @@ -60,7 +67,7 @@ "@floating-ui/dom": "^1.2.1", "@lit-labs/react": "^2.0.3", "@shoelace-style/animations": "^1.1.0", - "@shoelace-style/localize": "^3.1.1", + "@shoelace-style/localize": "^3.1.2", "composed-offset-position": "^0.0.4", "lit": "^2.7.5", "qr-creator": "^1.0.0" @@ -129,6 +136,9 @@ "user-agent-data-types": "^0.3.0" }, "lint-staged": { - "*.{ts,js}": ["eslint --max-warnings 0 --cache --fix", "prettier --write"] + "*.{ts,js}": [ + "eslint --max-warnings 0 --cache --fix", + "prettier --write" + ] } }