mirror of
https://github.com/maputnik/editor.git
synced 2026-12-01 14:24:20 +00:00
Bumps [i18next](https://github.com/i18next/i18next) from 27.2.7 to 27.2.10. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/releases">i18next's releases</a>.</em></p> <blockquote> <h2>v27.2.10</h2> <ul> <li>fix: a formatter option that is empty or only whitespace in quotes stays a string instead of becoming <code>NaN</code>: <code>{{name, join(separator: ' ')}}</code> passes <code>' '</code> to the formatter, so a custom <code>join</code> writes "Anna Smith" instead of "AnnaNaNSmith". Thanks <a href="https://github.com/arba-octo"><code>@arba-octo</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2485">#2485</a>)</li> <li>perf: <code>t()</code> runs the natural-language key check only for a key that contains the namespace separator, instead of twice on every call. With the default separators <code>t()</code> is about 30% faster; the results do not change. Thanks <a href="https://github.com/ximex"><code>@ximex</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a>)</li> <li>perf: without <code>debug</code>, <code>t()</code> looks a missing key up once instead of twice. The second lookup only fed the debug warning about flat JSON, so output and logs do not change. Thanks <a href="https://github.com/ximex"><code>@ximex</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li> </ul> <h2>v27.2.9</h2> <ul> <li>fix: <code>t('item', { count: 2n })</code> picks the plural form instead of throwing <code>TypeError: Cannot convert a BigInt value to a number</code>: a BigInt <code>count</code> (as some database drivers return for <code>COUNT(*)</code>) is converted to a number for <code>Intl.PluralRules</code>, <code>{{count}}</code> still gets the BigInt, and <code>0n</code> looks up <code>_zero</code> like <code>0</code>. Above <code>Number.MAX_SAFE_INTEGER</code> the form follows the rounded number. Thanks <a href="https://github.com/Asimmimx"><code>@Asimmimx</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2484">#2484</a>)</li> </ul> <h2>v27.2.8</h2> <ul> <li>fix(types): a <code>t()</code> call with <code>context</code> looks the key up along its own path in the namespace it names, instead of matching it against every key of every namespace. With several large namespaces each such call cost up to millions of type instantiations and could fail with TS2589, a literal <code>context: 'x'</code> soonest. A context value without a key is still an error, as since 25.9.0 (<a href="https://redirect.github.com/i18next/i18next/issues/2482">#2482</a>)</li> <li>fix: a language code without subtags gets its language part in the same casing as a code with subtags: with <code>supportedLngs: ['en-US']</code>, <code>'EN'</code> (from <code>?lng=EN</code> or a capitalised cookie) matches <code>'en-US'</code> like <code>'en'</code> and <code>'EN-GB'</code> already did, instead of falling back to <code>fallbackLng</code>, and <code>dir('AR')</code> returns <code>'rtl'</code> where <code>Intl.Locale</code> has no <code>getTextInfo()</code>. Thanks <a href="https://github.com/anishkun"><code>@anishkun</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2483">#2483</a>)</li> <li>fix: <code>dir()</code> also returns <code>'rtl'</code> for <code>'AR'</code> or <code>'AR-EG'</code> with <code>cleanCode: false</code> where <code>Intl.Locale</code> has no <code>getTextInfo()</code> (Node.js 22, some browsers)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next/blob/master/CHANGELOG.md">i18next's changelog</a>.</em></p> <blockquote> <h2>27.2.10</h2> <ul> <li>fix: a formatter option that is empty or only whitespace in quotes stays a string instead of becoming <code>NaN</code>: <code>{{name, join(separator: ' ')}}</code> passes <code>' '</code> to the formatter, so a custom <code>join</code> writes "Anna Smith" instead of "AnnaNaNSmith". Thanks <a href="https://github.com/arba-octo"><code>@arba-octo</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2485">#2485</a>)</li> <li>perf: <code>t()</code> runs the natural-language key check only for a key that contains the namespace separator, instead of twice on every call. With the default separators <code>t()</code> is about 30% faster; the results do not change. Thanks <a href="https://github.com/ximex"><code>@ximex</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a>)</li> <li>perf: without <code>debug</code>, <code>t()</code> looks a missing key up once instead of twice. The second lookup only fed the debug warning about flat JSON, so output and logs do not change. Thanks <a href="https://github.com/ximex"><code>@ximex</code></a> (<a href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li> </ul> <h2>27.2.9</h2> <ul> <li>fix: <code>t('item', { count: 2n })</code> picks the plural form instead of throwing <code>TypeError: Cannot convert a BigInt value to a number</code>: a BigInt <code>count</code> (as some database drivers return for <code>COUNT(*)</code>) is converted to a number for <code>Intl.PluralRules</code>, <code>{{count}}</code> still gets the BigInt, and <code>0n</code> looks up <code>_zero</code> like <code>0</code>. Above <code>Number.MAX_SAFE_INTEGER</code> the form follows the rounded number. Thanks <a href="https://github.com/Asimmimx"><code>@Asimmimx</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2484">#2484</a>)</li> </ul> <h2>27.2.8</h2> <ul> <li>fix(types): a <code>t()</code> call with <code>context</code> looks the key up along its own path in the namespace it names, instead of matching it against every key of every namespace. With several large namespaces each such call cost up to millions of type instantiations and could fail with TS2589, a literal <code>context: 'x'</code> soonest. A context value without a key is still an error, as since 25.9.0 (<a href="https://redirect.github.com/i18next/i18next/issues/2482">#2482</a>)</li> <li>fix: a language code without subtags gets its language part in the same casing as a code with subtags: with <code>supportedLngs: ['en-US']</code>, <code>'EN'</code> (from <code>?lng=EN</code> or a capitalised cookie) matches <code>'en-US'</code> like <code>'en'</code> and <code>'EN-GB'</code> already did, instead of falling back to <code>fallbackLng</code>, and <code>dir('AR')</code> returns <code>'rtl'</code> where <code>Intl.Locale</code> has no <code>getTextInfo()</code>. Thanks <a href="https://github.com/anishkun"><code>@anishkun</code></a> (<a href="https://redirect.github.com/i18next/i18next/pull/2483">#2483</a>)</li> <li>fix: <code>dir()</code> also returns <code>'rtl'</code> for <code>'AR'</code> or <code>'AR-EG'</code> with <code>cleanCode: false</code> where <code>Intl.Locale</code> has no <code>getTextInfo()</code> (Node.js 22, some browsers)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next/commit/7839a3b0006255e98c3cdd1bf28c1fbac7f278bb"><code>7839a3b</code></a> 27.2.10</li> <li><a href="https://github.com/i18next/i18next/commit/a3d827265a5af209d685f88070c6e543b50ba055"><code>a3d8272</code></a> changelog for 27.2.10</li> <li><a href="https://github.com/i18next/i18next/commit/b36d5e7170b0605c32dbb15d4f9d7a7d570f7594"><code>b36d5e7</code></a> changelog: <a href="https://redirect.github.com/i18next/i18next/issues/2485">#2485</a>, <a href="https://redirect.github.com/i18next/i18next/issues/2486">#2486</a> and <a href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a> under Unreleased</li> <li><a href="https://github.com/i18next/i18next/commit/574342994733054225c6da748a5b04a318d62155"><code>5743429</code></a> perf: look a missing key up only once when debug is off (<a href="https://redirect.github.com/i18next/i18next/issues/2487">#2487</a>)</li> <li><a href="https://github.com/i18next/i18next/commit/78fe071619189b30f12c08aab5a842d41ef497f1"><code>78fe071</code></a> perf: run the natural-language key check only for a key with the namespace se...</li> <li><a href="https://github.com/i18next/i18next/commit/4c02a177fefd8263229207498361d420709af0e6"><code>4c02a17</code></a> fix: keep blank formatter options as strings (<a href="https://redirect.github.com/i18next/i18next/issues/2485">#2485</a>)</li> <li><a href="https://github.com/i18next/i18next/commit/83e6f680ab2bfda438888f251990fb6f7a639869"><code>83e6f68</code></a> contributing: point to the organisation's page for what we merge and how we r...</li> <li><a href="https://github.com/i18next/i18next/commit/add2f77109d1daa0a59a9b78133296ac5bb4e35c"><code>add2f77</code></a> 27.2.9</li> <li><a href="https://github.com/i18next/i18next/commit/dcc1487abb3a302d93411ba06a40afba3efafdb7"><code>dcc1487</code></a> changelog for 27.2.9</li> <li><a href="https://github.com/i18next/i18next/commit/09335895f13448542932ee96990e721dcde2118f"><code>0933589</code></a> changelog: <a href="https://redirect.github.com/i18next/i18next/issues/2484">#2484</a> under Unreleased</li> <li>Additional commits viewable in <a href="https://github.com/i18next/i18next/compare/v27.2.7...v27.2.10">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
151 lines
4.7 KiB
JSON
151 lines
4.7 KiB
JSON
{
|
|
"name": "maputnik",
|
|
"version": "3.1.0",
|
|
"description": "A MapLibre GL visual style editor",
|
|
"type": "module",
|
|
"main": "''",
|
|
"scripts": {
|
|
"start": "vite",
|
|
"build": "tsc && vite build --mode=production",
|
|
"build-desktop": "tsc && vite build --mode=desktop && cd desktop && make",
|
|
"build-linux": "tsc && vite build --mode=desktop && cd desktop && make bin/linux/maputnik",
|
|
"i18n:extract": "npx i18next-cli extract",
|
|
"lint": "eslint",
|
|
"test": "playwright test",
|
|
"test-e2e": "playwright test",
|
|
"test-unit": "vitest",
|
|
"test-unit-ci": "vitest run --coverage --reporter=json",
|
|
"lint-css": "stylelint \"src/styles/*.scss\"",
|
|
"sort-styles": "jq 'sort_by(.id)' src/config/styles.json > tmp.json && mv tmp.json src/config/styles.json"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/maplibre/maputnik"
|
|
},
|
|
"author": "Lukas Martinelli",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/maplibre/maputnik#readme",
|
|
"dependencies": {
|
|
"@codemirror/lang-json": "^6.0.2",
|
|
"@codemirror/lint": "^6.9.8",
|
|
"@codemirror/state": "^6.7.6",
|
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
"@codemirror/view": "^6.44.2",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@maplibre/maplibre-gl-geocoder": "^1.9.5",
|
|
"@maplibre/maplibre-gl-inspect": "^1.9.0",
|
|
"@maplibre/maplibre-gl-style-spec": "^27.0.0",
|
|
"array-move": "^4.0.0",
|
|
"buffer": "^6.0.3",
|
|
"classnames": "^2.5.1",
|
|
"codemirror": "^6.0.2",
|
|
"color": "^5.0.3",
|
|
"detect-browser": "^5.3.0",
|
|
"downshift": "^9.5.0",
|
|
"events": "^3.3.0",
|
|
"file-saver": "^2.0.5",
|
|
"i18next": "^27.2.10",
|
|
"i18next-browser-languagedetector": "^8.3.1",
|
|
"i18next-resources-to-backend": "^1.3.0",
|
|
"json-stringify-pretty-compact": "^4.0.0",
|
|
"json-to-ast": "^2.1.0",
|
|
"lodash": "^4.18.1",
|
|
"lodash.capitalize": "^4.2.1",
|
|
"lodash.clamp": "^4.0.3",
|
|
"lodash.clonedeep": "^4.5.0",
|
|
"lodash.get": "^4.4.2",
|
|
"lodash.isequal": "^4.5.0",
|
|
"lodash.throttle": "^4.1.1",
|
|
"maplibre-gl": "^6.19.0",
|
|
"maputnik-design": "github:maputnik/design#172b06c",
|
|
"ol": "^10.11.0",
|
|
"ol-mapbox-style": "^13.9.0",
|
|
"pmtiles": "^4.5.0",
|
|
"prop-types": "^15.8.1",
|
|
"react": "^19.3.1",
|
|
"react-accessible-accordion": "^5.0.1",
|
|
"react-aria-menubutton": "^8.0.0",
|
|
"react-aria-modal": "^5.0.2",
|
|
"react-collapse": "^5.1.1",
|
|
"react-color": "^2.19.3",
|
|
"react-dom": "^19.3.1",
|
|
"react-i18next": "^18.0.3",
|
|
"react-icons": "^5.7.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-resizable-panels": "^4.25.0",
|
|
"reconnecting-websocket": "^4.4.0",
|
|
"slugify": "^1.6.9",
|
|
"string-hash": "^1.1.3",
|
|
"url": "^0.11.4"
|
|
},
|
|
"jshintConfig": {
|
|
"esversion": 6
|
|
},
|
|
"stylelint": {
|
|
"extends": "stylelint-config-recommended-scss",
|
|
"rules": {
|
|
"no-descending-specificity": null,
|
|
"media-feature-name-no-unknown": [
|
|
true,
|
|
{
|
|
"ignoreMediaFeatureNames": [
|
|
"prefers-reduced-motion"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
"@playwright/test": "^1.65.1",
|
|
"@stylistic/eslint-plugin": "^6.0.1",
|
|
"@types/codemirror": "^5.60.18",
|
|
"@types/color": "^4.2.1",
|
|
"@types/cors": "^2.8.19",
|
|
"@types/file-saver": "^2.0.7",
|
|
"@types/geojson": "^7946.0.16",
|
|
"@types/json-to-ast": "^2.1.4",
|
|
"@types/lodash.capitalize": "^4.2.9",
|
|
"@types/lodash.clamp": "^4.0.9",
|
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
"@types/lodash.get": "^4.4.9",
|
|
"@types/lodash.isequal": "^4.5.8",
|
|
"@types/lodash.throttle": "^4.1.9",
|
|
"@types/randomcolor": "^0.5.9",
|
|
"@types/react": "^19.3.3",
|
|
"@types/react-aria-menubutton": "^6.2.14",
|
|
"@types/react-aria-modal": "^5.0.0",
|
|
"@types/react-collapse": "^5.0.4",
|
|
"@types/react-color": "^3.0.13",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@types/string-hash": "^1.1.3",
|
|
"@types/wicg-file-system-access": "^2023.10.7",
|
|
"@vitejs/plugin-react": "^6.3.0",
|
|
"@vitest/coverage-v8": "^5.1.2",
|
|
"cors": "^2.8.6",
|
|
"eslint": "^10.15.0",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.8",
|
|
"i18next-cli": "^1.95.4",
|
|
"istanbul": "^0.4.5",
|
|
"istanbul-lib-coverage": "^3.2.2",
|
|
"nyc": "^18.0.0",
|
|
"postcss": "^8.5.34",
|
|
"react-hot-loader": "^4.13.1",
|
|
"sass": "^1.108.2",
|
|
"stylelint": "^18.1.0",
|
|
"stylelint-config-recommended-scss": "^18.0.0",
|
|
"stylelint-scss": "^7.5.0",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.74.0",
|
|
"uuid": "^14.0.3",
|
|
"vite": "^8.4.0",
|
|
"vite-plugin-istanbul": "^9.0.1",
|
|
"vitest": "^5.1.2"
|
|
}
|
|
}
|