Optimized bundle size of @tryghost/limit-service

refs https://ghost.slack.com/archives/C0568LN2CGJ/p1695149803260239
refs 290bc71d6a

- previous versions of `@tryghost/limit-service` did a full import of
  lodash, which would bloat the bundle size, especially when we only use
  a few of its functions
- I've since fixed that and this commit bumps Ghost to the smaller
  version
This commit is contained in:
Daniel Lockyer 2023-09-20 08:58:14 +02:00 committed by Daniel Lockyer
parent c055179765
commit d46aab5b43
4 changed files with 8 additions and 17 deletions

View File

@ -45,7 +45,7 @@
"@ebay/nice-modal-react": "1.2.10",
"@tanstack/react-query": "4.35.3",
"@tryghost/color-utils": "0.1.24",
"@tryghost/limit-service": "^1.2.8",
"@tryghost/limit-service": "^1.2.10",
"@tryghost/timezone-data": "0.3.0",
"@uiw/react-codemirror": "^4.21.9",
"clsx": "2.0.0",

View File

@ -48,7 +48,7 @@
"@tryghost/kg-converters": "0.0.14",
"@tryghost/kg-parser-plugins": "3.0.33",
"@tryghost/kg-simplemde": "1.11.2",
"@tryghost/limit-service": "1.2.6",
"@tryghost/limit-service": "1.2.10",
"@tryghost/members-csv": "0.0.0",
"@tryghost/mobiledoc-kit": "0.12.5-ghost.2",
"@tryghost/nql": "0.11.0",

View File

@ -108,7 +108,7 @@
"@tryghost/kg-html-to-lexical": "0.0.8",
"@tryghost/kg-lexical-html-renderer": "0.3.29",
"@tryghost/kg-mobiledoc-html-renderer": "6.0.11",
"@tryghost/limit-service": "1.2.6",
"@tryghost/limit-service": "1.2.10",
"@tryghost/link-redirects": "0.0.0",
"@tryghost/link-replacer": "0.0.0",
"@tryghost/link-tracking": "0.0.0",

View File

@ -7927,21 +7927,12 @@
dependencies:
semver "^7.3.5"
"@tryghost/limit-service@1.2.6":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@tryghost/limit-service/-/limit-service-1.2.6.tgz#43f80bcf26d434a3d5373673fb9008506e6b89a2"
integrity sha512-+GSycNzxOpjD9KsP6C9HpxpF81mPmiCZReMKKhXWe6BUyrsV8gEAtxwXRjOXG2NBaobi3J/zijZnXFx0XAu+dw==
"@tryghost/limit-service@1.2.10", "@tryghost/limit-service@^1.2.10":
version "1.2.10"
resolved "https://registry.yarnpkg.com/@tryghost/limit-service/-/limit-service-1.2.10.tgz#9e1c8b21eddc3de8c5b8a9b029ba4915ec1ac625"
integrity sha512-Spnlkf7uQqwmfy5npkrwWJCcNN3II5oQiyQPy8QhhVk/UlLvzpTpYneHBJmIn4mFRxKrWC7xzSXIRMlb13ClBA==
dependencies:
"@tryghost/errors" "^1.2.1"
lodash "^4.17.21"
luxon "^1.26.0"
"@tryghost/limit-service@^1.2.8":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@tryghost/limit-service/-/limit-service-1.2.8.tgz#ac936dc40db45f3f41e410316a247f6edd041d51"
integrity sha512-NyQj4LtfoBBisLMizDBo/UN65xJFp132uCOL3TsQjoAR/rqywtzLms4AW/A66sbnQTFJmoHx4xN+oS0pyDvlQw==
dependencies:
"@tryghost/errors" "^1.2.1"
"@tryghost/errors" "^1.2.26"
lodash "^4.17.21"
luxon "^1.26.0"