Files
editor/package.json
T
dependabot[bot] e2ab50512f chore(deps): Bump i18next from 26.7.2 to 27.0.0 (#2321)
Bumps [i18next](https://github.com/i18next/i18next) from 26.7.2 to
27.0.0.
<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.0.0</h2>
<p><strong>This is a major breaking release.</strong> It changes
defaults that most setups had to override, gives every instance its own
logger and post-processors, refuses language codes that look like markup
or paths, and removes options that were broken or had no effect. 26.7
warned in debug mode about most of the runtime changes. The <a
href="https://www.i18next.com/misc/migration-guide#v26.x.x-to-v27.0.0">migration
guide</a> has the details; to keep the v26 behavior where an option
exists:</p>
<pre lang="js"><code>i18next.init({
fallbackLng: 'dev', // or better your source language: there is no
implicit 'dev' any more
returnEmptyString: true, // an empty translation is a translation again
cleanCode: false, // keep codes without a region as they are ('EN' stays
'EN')
});
</code></pre>
<pre lang="ts"><code>declare module 'i18next' {
  interface CustomTypeOptions {
    strictInterpolationChecks: false;
    returnEmptyString: true;
  }
}
</code></pre>
<h3>Changed defaults</h3>
<ul>
<li><code>fallbackLng</code> defaults to <code>false</code> instead of
<code>['dev']</code>. Without a <code>fallbackLng</code>, i18next no
longer requests <code>dev</code> from the backend
(<code>/locales/dev/translation.json</code> with i18next-http-backend),
and <code>saveMissing</code> sends missing keys for the current language
instead of <code>dev</code>. With <code>supportedLngs</code> and no
<code>fallbackLng</code>, an unsupported language leaves
<code>language</code> and <code>languages</code> unset, as
<code>fallbackLng: false</code> already did. Set
<code>fallbackLng</code> to your main language, or to <code>'dev'</code>
for the previous behavior.</li>
<li><code>returnEmptyString</code> defaults to <code>false</code>: an
empty translation falls back like a missing value (to the fallback
language, the default value or the key), as <code>null</code> already
does. i18next-cli writes <code>''</code> for untranslated keys in the
other languages, which now fall back instead of rendering blank. An
explicit <code>''</code> default from code still counts: <code>t('key',
'')</code> and <code>t('key', { defaultValue: '' })</code> return
<code>''</code>. Set <code>returnEmptyString: true</code> (in
<code>init()</code> and in <code>CustomTypeOptions</code>) if an empty
translation is meant to render nothing, for example for a Locize project
with &quot;preserve empty strings&quot; on.</li>
<li>Language codes without a region get their canonical casing, as codes
with one already did: <code>'EN'</code> becomes <code>'en'</code>. Only
the casing changes: aliases like <code>tl</code>, <code>iw</code> or
<code>eng</code> stay as they are (<code>'TL'</code> becomes
<code>'tl'</code>), and so do codes that are not BCP 47
(<code>en_US</code>, <code>my_custom</code>). i18next 26.7.0 and 26.7.1
warned that v27 turns <code>iw</code> into <code>he</code> or
<code>tl</code> into <code>fil</code>; that was wrong and 26.7.2
corrects it. <code>iw</code>, <code>tl</code> and the like stay as they
are. Set <code>cleanCode: false</code> to keep codes without a region
exactly as they are. <code>cleanCode</code> is deprecated.</li>
<li>types: <code>strictInterpolationChecks</code> defaults to
<code>true</code>: <code>t()</code> needs the options for a string with
variables, so a <code>{{name}}</code> cannot be left out of a call. Type
a wrapper around <code>t()</code> with
<code>ParseKeysWithoutVariables</code>, declare the variables
<code>interpolation.defaultVariables</code> fills in with
<code>defaultVariables</code> in <code>CustomTypeOptions</code>, or set
<code>strictInterpolationChecks: false</code> to keep the v26 types
(also for ICU and MF2 messages, whose arguments are required either
way). The fixes below close the gap plural keys left.</li>
<li>types: <code>returnEmptyString</code> defaults to <code>false</code>
in <code>TypeOptions</code> too, so a key whose value is <code>''</code>
is typed as the key.</li>
</ul>
<h3>Changed behavior</h3>
<ul>
<li>The logger and the post-processors belong to the instance.
<code>use()</code> of a logger or a post-processor on one instance no
longer changes the others, and the <code>init()</code> of one instance
no longer rewires the logging of all of them. An instance from
<code>createInstance()</code> does not see what the default
<code>i18next</code> instance (or any other) registered: call
<code>use()</code> on each instance. A clone
(<code>cloneInstance()</code>) keeps its parent's logger and
post-processors, also those its parent registers later, and what it
registers itself stays its own. A plugin that calls <code>use()</code>
from its own <code>init()</code> (the Locize InContext editor) registers
right away, as before. <code>services.logger</code> stays the instance's
logger, with <code>forward()</code>. In debug mode, a
<code>postProcess</code> name that is not registered on the instance
logs a warning.</li>
<li>An object or an array without <code>returnObjects</code> is handled
like a missing key: <code>t()</code> returns the default value if one is
passed, else the key (with <code>appendNamespaceToMissingKey</code>,
<code>parseMissingKeyHandler</code> and the post-processors applied),
instead of the sentence <code>key '... (en)' returned an object instead
of string.</code>, which ended up in the UI. It is not saved as missing,
since the key exists. The debug warning stays, and
<code>returnedObjectHandler</code> still decides what is returned when
it is set (<code>returnedObjectHandler: (key) =&gt; `key '${key}'
returned an object instead of string.`</code> brings a sentence
back).</li>
<li><code>addResources()</code> keeps every value: numbers, booleans and
objects were dropped silently, only strings and arrays were added.</li>
<li>The default escape no longer escapes <code>/</code>:
<code>'$10/month'</code> stays <code>'$10/month'</code> instead of
<code>'$10&amp;#x2F;month'</code>, and dates in react-i18next's
<code>Trans</code> no longer render as
<code>17&amp;#x2F;12&amp;#x2F;2025</code> (<a
href="https://github.com/i18next/i18next/discussions/2199">discussion
2199</a>). <code>&amp;</code>, <code>&lt;</code>, <code>&gt;</code>,
<code>&quot;</code> and <code>'</code> are still escaped, which covers
HTML text and quoted attributes; a <code>/</code> cannot end either.
Update snapshots that contain <code>&amp;#x2F;</code>, or pass your own
<code>interpolation.escape</code> to keep escaping it.</li>
<li>A language code from <code>lng</code>,
<code>changeLanguage()</code>, a language detector or
<code>loadLanguages()</code> that does not have the shape of
<code>isSafeLanguageCode()</code> (letters, digits, <code>-</code>,
<code>_</code>, <code>@</code> and <code>.</code>, no <code>..</code>,
at most 128 characters) is refused unless it is configured: listed in
<code>supportedLngs</code>, in a <code>fallbackLng</code> that is not a
function or in <code>preload</code>, or a language in
<code>resources</code>, as given to <code>init()</code>.
<code>changeLanguage()</code> continues as with an unsupported code:
with the detector's next code, else the fallback language, else none
(with <code>fallbackLng: false</code>, a code refused at
<code>init()</code> leaves <code>language</code> unset);
<code>loadLanguages()</code> skips it. With <code>supportedLngs</code>,
the input is matched as before (<code>'de-DE;q=0.9'</code> still gives
<code>'de'</code>), and only an unsafe match is refused, which only
<code>nonExplicitSupportedLngs</code> can return
(<code>'de-&lt;x&gt;'</code> for a supported <code>'de'</code>). Without
<code>supportedLngs</code>, a detector that returned
<code>&quot;&gt;&lt;img src=x onerror=alert(1)&gt;</code> made that
string <code>i18next.language</code>, which apps put into <code>&lt;html
lang&gt;</code>, and backends were asked to load it. BCP 47, POSIX
(<code>en_US.UTF-8@euro</code>, <code>sr@latin</code>) and private-use
codes (<code>en-x-pirate</code>) pass; to use a code with other
characters (<code>+</code>, spaces, <code>/</code>), list it in
<code>supportedLngs</code>. In debug mode a refused code logs a
warning.</li>
<li><code>createInstance(options)</code> merges the defaults right away,
without initializing: before <code>init()</code>,
<code>instance.options</code> has the defaults, <code>getFixedT()</code>
no longer throws (<code>t()</code> returns <code>''</code> until
<code>init()</code>), and <code>debug: true</code> already shows the
warnings before <code>init()</code>. <code>init()</code> still tells the
options you set from the defaults, so a <code>keySeparator</code> or
<code>nsSeparator</code> passed to <code>createInstance()</code> counts
as set by you (<a
href="https://redirect.github.com/i18next/i18next/issues/2426">#2426</a>).
<code>loadNamespaces()</code> before <code>init()</code> does nothing
and calls back, as it did for an instance without options.</li>
<li><code>keySeparator: false</code> means flat keys only: a lookup no
longer splits a key at the text <code>false</code>
(<code>t('nestedfalsec')</code> returned the value of
<code>nested.c</code>), and a selector path is joined with
<code>.</code> like a key prefix, so selectors work on the flat keys
(<code>$ =&gt; $['a.b']</code> and <code>$ =&gt; $.a.b</code> look up
the flat key <code>'a.b'</code>; <code>$ =&gt; $.nested.c</code> no
longer resolves <code>nested</code>, then <code>c</code>). types: with
<code>keySeparator: false</code> in <code>CustomTypeOptions</code>, the
keys are the flat keys (no <code>nestedfalsec</code> keys), a key
containing <code>false</code> is no longer split, and
<code>keyPrefix</code> takes the parts of the flat keys before a
<code>.</code>, which is how <code>getFixedT()</code> joins it
(<code>'nested'</code> for <code>'nested.c'</code>). A key prefix
combined with selectors is not typed for flat keys.</li>
</ul>
<h3>Removed</h3>
<ul>
<li>The dotted language in the resource store calls:
<code>getResource('en.translation.key')</code>,
<code>addResource('en.translation.key', value)</code> and
<code>addResourceBundle('en.translation', resources)</code>. Pass
language, namespace and key as separate arguments;
<code>addResource()</code>, <code>addResources()</code> and
<code>addResourceBundle()</code> throw a <code>TypeError</code> for the
dotted form. A language code with a <code>.</code>
(<code>de_DE.UTF-8</code>) is now a language like any other.</li>
<li><code>interpolation.prefixEscaped</code>,
<code>suffixEscaped</code>, <code>nestingPrefixEscaped</code> and
<code>nestingSuffixEscaped</code>, which were inserted into the RegExp
unescaped. Pass the literal delimiters as <code>prefix</code>,
<code>suffix</code>, <code>nestingPrefix</code> and
<code>nestingSuffix</code>.</li>
<li>types: <code>compatibilityJSON</code> (it had no effect since
v24).</li>
<li>types: the option types of plugins. <code>locizeLastUsed</code> is
declared by locize-lastused (5.1.0 and later). <code>ReactOptions</code>
stays importable from <code>'i18next'</code> but is empty: react-i18next
fills it in (17.1.13 and later, and 18), so the <code>react</code>
options are checked when react-i18next is in the program.</li>
<li>types: the <code>_</code> and <code>$</code> helpers in
<code>typescript/t.d.ts</code> and <code>typescript/options.d.ts</code>
(<code>$FirstNamespace</code>, <code>_ValueOf</code> and 84 more) are no
longer importable; every declaration of those files counted as exported.
The other types of those files (<code>TOptionsBase</code>,
<code>TFunctionSignature</code>, <code>ParseTReturn</code>, ...) are now
exported on purpose. If you imported one of the hidden helpers, please
open an issue: exporting it again does not break anything.</li>
<li>The root <code>index.js</code>, a CommonJS shim that the
<code>exports</code> map made unreachable.</li>
</ul>
<h3>Support</h3>
<ul>
<li>Node.js 22 or later (<code>engines</code>); CI tests 22, 24 and
26.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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.0.0</h2>
<p><strong>This is a major breaking release.</strong> It changes
defaults that most setups had to override, gives every instance its own
logger and post-processors, refuses language codes that look like markup
or paths, and removes options that were broken or had no effect. 26.7
warned in debug mode about most of the runtime changes. The <a
href="https://www.i18next.com/misc/migration-guide#v26.x.x-to-v27.0.0">migration
guide</a> has the details; to keep the v26 behavior where an option
exists:</p>
<pre lang="js"><code>i18next.init({
fallbackLng: 'dev', // or better your source language: there is no
implicit 'dev' any more
returnEmptyString: true, // an empty translation is a translation again
cleanCode: false, // keep codes without a region as they are ('EN' stays
'EN')
});
</code></pre>
<pre lang="ts"><code>declare module 'i18next' {
  interface CustomTypeOptions {
    strictInterpolationChecks: false;
    returnEmptyString: true;
  }
}
</code></pre>
<h3>Changed defaults</h3>
<ul>
<li><code>fallbackLng</code> defaults to <code>false</code> instead of
<code>['dev']</code>. Without a <code>fallbackLng</code>, i18next no
longer requests <code>dev</code> from the backend
(<code>/locales/dev/translation.json</code> with i18next-http-backend),
and <code>saveMissing</code> sends missing keys for the current language
instead of <code>dev</code>. With <code>supportedLngs</code> and no
<code>fallbackLng</code>, an unsupported language leaves
<code>language</code> and <code>languages</code> unset, as
<code>fallbackLng: false</code> already did. Set
<code>fallbackLng</code> to your main language, or to <code>'dev'</code>
for the previous behavior.</li>
<li><code>returnEmptyString</code> defaults to <code>false</code>: an
empty translation falls back like a missing value (to the fallback
language, the default value or the key), as <code>null</code> already
does. i18next-cli writes <code>''</code> for untranslated keys in the
other languages, which now fall back instead of rendering blank. An
explicit <code>''</code> default from code still counts: <code>t('key',
'')</code> and <code>t('key', { defaultValue: '' })</code> return
<code>''</code>. Set <code>returnEmptyString: true</code> (in
<code>init()</code> and in <code>CustomTypeOptions</code>) if an empty
translation is meant to render nothing, for example for a Locize project
with &quot;preserve empty strings&quot; on.</li>
<li>Language codes without a region get their canonical casing, as codes
with one already did: <code>'EN'</code> becomes <code>'en'</code>. Only
the casing changes: aliases like <code>tl</code>, <code>iw</code> or
<code>eng</code> stay as they are (<code>'TL'</code> becomes
<code>'tl'</code>), and so do codes that are not BCP 47
(<code>en_US</code>, <code>my_custom</code>). i18next 26.7.0 and 26.7.1
warned that v27 turns <code>iw</code> into <code>he</code> or
<code>tl</code> into <code>fil</code>; that was wrong and 26.7.2
corrects it. <code>iw</code>, <code>tl</code> and the like stay as they
are. Set <code>cleanCode: false</code> to keep codes without a region
exactly as they are. <code>cleanCode</code> is deprecated.</li>
<li>types: <code>strictInterpolationChecks</code> defaults to
<code>true</code>: <code>t()</code> needs the options for a string with
variables, so a <code>{{name}}</code> cannot be left out of a call. Type
a wrapper around <code>t()</code> with
<code>ParseKeysWithoutVariables</code>, declare the variables
<code>interpolation.defaultVariables</code> fills in with
<code>defaultVariables</code> in <code>CustomTypeOptions</code>, or set
<code>strictInterpolationChecks: false</code> to keep the v26 types
(also for ICU and MF2 messages, whose arguments are required either
way). The fixes below close the gap plural keys left.</li>
<li>types: <code>returnEmptyString</code> defaults to <code>false</code>
in <code>TypeOptions</code> too, so a key whose value is <code>''</code>
is typed as the key.</li>
</ul>
<h3>Changed behavior</h3>
<ul>
<li>The logger and the post-processors belong to the instance.
<code>use()</code> of a logger or a post-processor on one instance no
longer changes the others, and the <code>init()</code> of one instance
no longer rewires the logging of all of them. An instance from
<code>createInstance()</code> does not see what the default
<code>i18next</code> instance (or any other) registered: call
<code>use()</code> on each instance. A clone
(<code>cloneInstance()</code>) keeps its parent's logger and
post-processors, also those its parent registers later, and what it
registers itself stays its own. A plugin that calls <code>use()</code>
from its own <code>init()</code> (the Locize InContext editor) registers
right away, as before. <code>services.logger</code> stays the instance's
logger, with <code>forward()</code>. In debug mode, a
<code>postProcess</code> name that is not registered on the instance
logs a warning.</li>
<li>An object or an array without <code>returnObjects</code> is handled
like a missing key: <code>t()</code> returns the default value if one is
passed, else the key (with <code>appendNamespaceToMissingKey</code>,
<code>parseMissingKeyHandler</code> and the post-processors applied),
instead of the sentence <code>key '... (en)' returned an object instead
of string.</code>, which ended up in the UI. It is not saved as missing,
since the key exists. The debug warning stays, and
<code>returnedObjectHandler</code> still decides what is returned when
it is set (<code>returnedObjectHandler: (key) =&gt; `key '${key}'
returned an object instead of string.`</code> brings a sentence
back).</li>
<li><code>addResources()</code> keeps every value: numbers, booleans and
objects were dropped silently, only strings and arrays were added.</li>
<li>The default escape no longer escapes <code>/</code>:
<code>'$10/month'</code> stays <code>'$10/month'</code> instead of
<code>'$10&amp;#x2F;month'</code>, and dates in react-i18next's
<code>Trans</code> no longer render as
<code>17&amp;#x2F;12&amp;#x2F;2025</code> (<a
href="https://github.com/i18next/i18next/discussions/2199">discussion
2199</a>). <code>&amp;</code>, <code>&lt;</code>, <code>&gt;</code>,
<code>&quot;</code> and <code>'</code> are still escaped, which covers
HTML text and quoted attributes; a <code>/</code> cannot end either.
Update snapshots that contain <code>&amp;#x2F;</code>, or pass your own
<code>interpolation.escape</code> to keep escaping it.</li>
<li>A language code from <code>lng</code>,
<code>changeLanguage()</code>, a language detector or
<code>loadLanguages()</code> that does not have the shape of
<code>isSafeLanguageCode()</code> (letters, digits, <code>-</code>,
<code>_</code>, <code>@</code> and <code>.</code>, no <code>..</code>,
at most 128 characters) is refused unless it is configured: listed in
<code>supportedLngs</code>, in a <code>fallbackLng</code> that is not a
function or in <code>preload</code>, or a language in
<code>resources</code>, as given to <code>init()</code>.
<code>changeLanguage()</code> continues as with an unsupported code:
with the detector's next code, else the fallback language, else none
(with <code>fallbackLng: false</code>, a code refused at
<code>init()</code> leaves <code>language</code> unset);
<code>loadLanguages()</code> skips it. With <code>supportedLngs</code>,
the input is matched as before (<code>'de-DE;q=0.9'</code> still gives
<code>'de'</code>), and only an unsafe match is refused, which only
<code>nonExplicitSupportedLngs</code> can return
(<code>'de-&lt;x&gt;'</code> for a supported <code>'de'</code>). Without
<code>supportedLngs</code>, a detector that returned
<code>&quot;&gt;&lt;img src=x onerror=alert(1)&gt;</code> made that
string <code>i18next.language</code>, which apps put into <code>&lt;html
lang&gt;</code>, and backends were asked to load it. BCP 47, POSIX
(<code>en_US.UTF-8@euro</code>, <code>sr@latin</code>) and private-use
codes (<code>en-x-pirate</code>) pass; to use a code with other
characters (<code>+</code>, spaces, <code>/</code>), list it in
<code>supportedLngs</code>. In debug mode a refused code logs a
warning.</li>
<li><code>createInstance(options)</code> merges the defaults right away,
without initializing: before <code>init()</code>,
<code>instance.options</code> has the defaults, <code>getFixedT()</code>
no longer throws (<code>t()</code> returns <code>''</code> until
<code>init()</code>), and <code>debug: true</code> already shows the
warnings before <code>init()</code>. <code>init()</code> still tells the
options you set from the defaults, so a <code>keySeparator</code> or
<code>nsSeparator</code> passed to <code>createInstance()</code> counts
as set by you (<a
href="https://redirect.github.com/i18next/i18next/issues/2426">#2426</a>).
<code>loadNamespaces()</code> before <code>init()</code> does nothing
and calls back, as it did for an instance without options.</li>
<li><code>keySeparator: false</code> means flat keys only: a lookup no
longer splits a key at the text <code>false</code>
(<code>t('nestedfalsec')</code> returned the value of
<code>nested.c</code>), and a selector path is joined with
<code>.</code> like a key prefix, so selectors work on the flat keys
(<code>$ =&gt; $['a.b']</code> and <code>$ =&gt; $.a.b</code> look up
the flat key <code>'a.b'</code>; <code>$ =&gt; $.nested.c</code> no
longer resolves <code>nested</code>, then <code>c</code>). types: with
<code>keySeparator: false</code> in <code>CustomTypeOptions</code>, the
keys are the flat keys (no <code>nestedfalsec</code> keys), a key
containing <code>false</code> is no longer split, and
<code>keyPrefix</code> takes the parts of the flat keys before a
<code>.</code>, which is how <code>getFixedT()</code> joins it
(<code>'nested'</code> for <code>'nested.c'</code>). A key prefix
combined with selectors is not typed for flat keys.</li>
</ul>
<h3>Removed</h3>
<ul>
<li>The dotted language in the resource store calls:
<code>getResource('en.translation.key')</code>,
<code>addResource('en.translation.key', value)</code> and
<code>addResourceBundle('en.translation', resources)</code>. Pass
language, namespace and key as separate arguments;
<code>addResource()</code>, <code>addResources()</code> and
<code>addResourceBundle()</code> throw a <code>TypeError</code> for the
dotted form. A language code with a <code>.</code>
(<code>de_DE.UTF-8</code>) is now a language like any other.</li>
<li><code>interpolation.prefixEscaped</code>,
<code>suffixEscaped</code>, <code>nestingPrefixEscaped</code> and
<code>nestingSuffixEscaped</code>, which were inserted into the RegExp
unescaped. Pass the literal delimiters as <code>prefix</code>,
<code>suffix</code>, <code>nestingPrefix</code> and
<code>nestingSuffix</code>.</li>
<li>types: <code>compatibilityJSON</code> (it had no effect since
v24).</li>
<li>types: the option types of plugins. <code>locizeLastUsed</code> is
declared by locize-lastused (5.1.0 and later). <code>ReactOptions</code>
stays importable from <code>'i18next'</code> but is empty: react-i18next
fills it in (17.1.13 and later, and 18), so the <code>react</code>
options are checked when react-i18next is in the program.</li>
<li>types: the <code>_</code> and <code>$</code> helpers in
<code>typescript/t.d.ts</code> and <code>typescript/options.d.ts</code>
(<code>$FirstNamespace</code>, <code>_ValueOf</code> and 84 more) are no
longer importable; every declaration of those files counted as exported.
The other types of those files (<code>TOptionsBase</code>,
<code>TFunctionSignature</code>, <code>ParseTReturn</code>, ...) are now
exported on purpose. If you imported one of the hidden helpers, please
open an issue: exporting it again does not break anything.</li>
<li>The root <code>index.js</code>, a CommonJS shim that the
<code>exports</code> map made unreachable.</li>
</ul>
<h3>Support</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/i18next/i18next/commit/e22c212df08632b26fd2f29e1d364919f4d342f3"><code>e22c212</code></a>
27.0.0</li>
<li><a
href="https://github.com/i18next/i18next/commit/846c76d85a46d5f0f364c81470c155aa4a82b172"><code>846c76d</code></a>
changelog for 27.0.0</li>
<li><a
href="https://github.com/i18next/i18next/commit/94320bc32953b3b793e8edd9d390628b20f8ffec"><code>94320bc</code></a>
feat!: i18next 27, a major version with breaking changes</li>
<li>See full diff in <a
href="https://github.com/i18next/i18next/compare/v26.7.2...v27.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=i18next&package-manager=npm_and_yarn&previous-version=26.7.2&new-version=27.0.0)](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>
2026-11-12 13:53:04 +00:00

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.7",
"@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.6.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.4.0",
"events": "^3.3.0",
"file-saver": "^2.0.5",
"i18next": "^27.0.0",
"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.16.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": "^17.1.13",
"react-icons": "^5.7.0",
"react-markdown": "^10.1.0",
"react-resizable-panels": "^4.19.1",
"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.0",
"@stylistic/eslint-plugin": "^5.10.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.2.1",
"@vitest/coverage-v8": "^5.1.0",
"cors": "^2.8.6",
"eslint": "^10.14.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"i18next-cli": "^1.87.0",
"istanbul": "^0.4.5",
"istanbul-lib-coverage": "^3.2.2",
"nyc": "^18.0.0",
"postcss": "^8.5.32",
"react-hot-loader": "^4.13.1",
"sass": "^1.108.1",
"stylelint": "^18.0.0",
"stylelint-config-recommended-scss": "^17.0.1",
"stylelint-scss": "^7.4.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.72.1",
"uuid": "^14.0.3",
"vite": "^8.3.7",
"vite-plugin-istanbul": "^9.0.1",
"vitest": "^5.1.0"
}
}