mirror of
https://github.com/maputnik/editor.git
synced 2026-11-27 04:23:45 +00:00
Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.88.0 to 1.90.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next-cli/blob/main/CHANGELOG.md">i18next-cli's changelog</a>.</em></p> <blockquote> <h2>1.90.0</h2> <p>Found by running <code>init</code>, <code>instrument</code>, <code>extract</code>, <code>lint</code> and <code>status</code> on the next-i18next examples, on copies of them with their texts hardcoded again (to compare the rewrite with the hand-written original) and on hardcoded Next.js apps, and reading every rewrite.</p> <p>next-i18next:</p> <ul> <li>feat(instrument): a Next.js app with next-i18next (a dependency, or imported), or with no i18next at all, gets next-i18next's calls by where each file renders, from the import graph (<code>'use client'</code>, <code>app/</code>, <code>pages/</code>, imports relative, through the tsconfig or jsconfig <code>paths</code> and from the project root): <code>const { t } = await getT()</code> in Server Components, which become <code>async</code> (a return type becomes <code>Promise<…></code>), <code>useT()</code> from <code>next-i18next/client</code> in Client Components, <code>useTranslation</code> from <code>next-i18next/pages</code> in the Pages Router. Server Components got <code>useTranslation()</code> before, a client hook that fails there. A Next.js app with i18next or react-i18next and no next-i18next keeps <code>react-i18next</code>.</li> <li>feat(instrument): a <code><Trans></code> in a Server Component gets <code>t={t} i18n={i18n}</code> and comes from <code>react-i18next/TransWithoutContext</code>; <code>getT</code> comes from the module the app imports it from (its own <code>createServerI18next</code> file) when that is not <code>next-i18next/server</code>.</li> <li>feat(instrument): <code>generateMetadata()</code> and other async functions of a Server Component file get <code>getT()</code>, and <code>export const metadata = { title: '…' }</code> becomes <code>export async function generateMetadata ()</code> returning it. They got <code>i18next.t()</code> before, which next-i18next does not initialize.</li> <li>feat(instrument): left as they are, each named in a warning: components that Server and Client Components both render (no <code>t</code> works in both) unless they get <code>t</code> (and <code>i18n</code> for a <code><Trans></code>) as props, files no route imports, texts outside components, API routes, Server Actions and cached functions (<code>'use server'</code>, <code>'use cache'</code>), Server Components wrapped in <code>memo()</code>/<code>forwardRef()</code>, and language switches, which next-i18next makes through the route or <code>useChangeLanguage()</code> (a call of that switch got <code>i18n.changeLanguage()</code> added before).</li> <li>fix(instrument): no <code>i18n.ts</code> init file and no import of it in <code>_app</code> or the root layout for next-i18next, which sets i18next up itself; the setup steps are printed when it is not set up yet, and the pages that load no translations (no <code>serverSideTranslations()</code> in them or in a helper they import) are named.</li> <li>feat(init): the defaults the app's setup decides: the source glob covers the directories that exist (<code>{app,components}/**/*</code> rather than <code>src/**/*</code>, where a Next.js app without <code>src/</code> has no file), next-i18next's <code>defaultNS</code> (<code>common</code> unless its config says otherwise, so <code>extract</code> writes the keys of <code>useT()</code> to the namespace next-i18next loads), <code>messageFormat</code> for i18next-icu or i18next-mf2, and <code>keySeparator: false</code> for flat keys with dots, which <code>extract</code> nested before. <code>lint</code> and <code>status</code> without a config detect the same.</li> </ul> <p>Any React app:</p> <ul> <li>fix(instrument): an import went before a <code>'use client'</code> directive in a file without imports, which ends the directive.</li> <li>fix(instrument): a component that calls a translation hook without taking <code>t</code> (<code>const { i18n } = useT('ns')</code>) got a second hook call; <code>t</code> now comes from that call and its namespace (<code>const { t, i18n } = useT('ns')</code>), unless a text comes before the call.</li> <li>fix(instrument): a function that is no component but binds <code>t</code> from a translation hook (a custom hook, <code>generateMetadata</code> with <code>getT()</code>) got <code>i18next.t()</code>; a <code>t</code> from <code>getFixedT()</code> counted as a <code>t</code> of another kind.</li> <li>fix(instrument): the texts and <code>values</code> of <code>IcuTrans</code>, <code>IcuTransWithoutContext</code> and <code>TransWithoutContext</code> were translated (<code>values={{ name: t('ada', 'Ada') }}</code>).</li> <li>fix(instrument): an empty element at the edge of a sentence (<code><hr /></code>, <code><br /></code>) went into its <code><Trans></code>.</li> <li>fix(instrument): <code>next-i18next v{pkg.version}</code> was split into a <code>t()</code> of its first part: a word with digits in a later part (<code>i18next</code>) now counts as a word beside a placeholder.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next-cli/commit/cbc2e8a746ea9cff54f4d1b35c244217dcdde775"><code>cbc2e8a</code></a> 1.90.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/326b1128f015dd34a450cba4913e4eeb124e4e92"><code>326b112</code></a> feat(instrument): next-i18next calls by where a file renders: getT() in Serve...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/f3659b173d5c131da1389340f7430001c5a2f494"><code>f3659b1</code></a> 1.89.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/3ed20359430947d3712f644163e350139fe64048"><code>3ed2035</code></a> feat(instrument): handle a real app: no broken code, fewer false positives, m...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/429e5b6f480609057003a092cd3032f868cf775c"><code>429e5b6</code></a> 1.88.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/5b7656915efdd81e9bc5e63ece4390c46d6be407"><code>5b76569</code></a> changelog for 1.88.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/cd51160d92e1907a963744db2d9bb07fbae166aa"><code>cd51160</code></a> fix(extract): resolve the members of Omit, Pick, Partial, Required, Readonly ...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/a784cd2a80fccb5087e2218f439cbc7f45578726"><code>a784cd2</code></a> docs(skill): the conventions to drop in are CLAUDE.md or AGENTS.md</li> <li><a href="https://github.com/i18next/i18next-cli/commit/fcc7b4ca2f6d7746d8fb78241a1c015137c929d0"><code>fcc7b4c</code></a> docs: list the next-intl vs next-i18next post among the places that carry the...</li> <li>See full diff in <a href="https://github.com/i18next/i18next-cli/compare/v1.88.0...v1.90.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> 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.43.15",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@maplibre/maplibre-gl-geocoder": "^1.9.4",
|
|
"@maplibre/maplibre-gl-inspect": "^1.9.0",
|
|
"@maplibre/maplibre-gl-style-spec": "^26.8.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.1.3",
|
|
"i18next-browser-languagedetector": "^8.3.0",
|
|
"i18next-resources-to-backend": "^1.2.4",
|
|
"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.18.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.2",
|
|
"react-icons": "^5.7.0",
|
|
"react-markdown": "^10.1.0",
|
|
"react-resizable-panels": "^4.24.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.0",
|
|
"@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.0",
|
|
"@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.0",
|
|
"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.90.0",
|
|
"istanbul": "^0.4.5",
|
|
"istanbul-lib-coverage": "^3.2.2",
|
|
"nyc": "^18.0.0",
|
|
"postcss": "^8.5.33",
|
|
"react-hot-loader": "^4.13.1",
|
|
"sass": "^1.108.2",
|
|
"stylelint": "^18.0.0",
|
|
"stylelint-config-recommended-scss": "^18.0.0",
|
|
"stylelint-scss": "^7.5.0",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.72.2",
|
|
"uuid": "^14.0.3",
|
|
"vite": "^8.3.8",
|
|
"vite-plugin-istanbul": "^9.0.1",
|
|
"vitest": "^5.1.0"
|
|
}
|
|
}
|