Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.82.4 to 1.85.1. <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.85.1</h2> <ul> <li>fix(extractor): names imported through a barrel's <code>index</code> file (1.85.0, <a href="https://redirect.github.com/i18next/i18next-cli/issues/327">#327</a>) also resolve on Windows, where the import path kept its backslashes and never matched the <code>index</code> file.</li> </ul> <h2>1.85.0</h2> <ul> <li>fix(extractor): a type, enum or constant imported through a barrel file (<code>export * from './abc'</code>, <code>export { ABC } from './abc'</code>, <code>import { ABC } from './abc'; export { ABC }</code>, also through a namespace import <code>import * as Types from './types'</code>) resolves to the declaration the barrel re-exports, instead of to whichever scanned file declared that name last.</li> <li>fix(extractor): a name a file declares itself (a type, interface, enum or function, like variables since <a href="https://redirect.github.com/i18next/i18next-cli/issues/307">#307</a>), or imports from a scanned file that declares it, no longer resolves to another file's same-named declaration, also when the extractor cannot read its values (<code>interface Props { size: string }</code>).</li> <li>fix(extractor): <code>useTranslation(NS)</code> and <code>{ ns: NS }</code> read <code>NS</code> from the file it is imported from. A file whose own <code>NS</code> the extractor cannot read (<code>const NS = getNs()</code>) no longer takes another file's <code>NS</code>, so its keys go to the default namespace.</li> <li>feat(extractor): new <code>extract.warnOnAmbiguousTypes</code> (<code>true</code> / <code>'warn'</code> / <code>'error'</code>, default <code>false</code>): warns, or aborts extraction, when the extractor has to guess which of several differently declared same-named types, enums or constants a file means. Fixes <a href="https://redirect.github.com/i18next/i18next-cli/issues/327">#327</a></li> </ul> <h2>1.84.0</h2> <ul> <li>feat: plugins' <code>afterSync</code> gets a third argument <code>{ isDryRun }</code>, true for <code>extract --dry-run</code> and <code>runExtractor(config, { isDryRun: true })</code>, so a plugin that writes files can skip that on a dry run. Fixes <a href="https://redirect.github.com/i18next/i18next-cli/issues/326">#326</a></li> </ul> <h2>1.83.0</h2> <ul> <li>feat: <code>extract.ignoreNamespaces</code> accepts glob patterns like <code>status.ignoreKeys</code> does, so <code>['dev.*', 'test.*']</code> ignores every <code>dev.</code> and <code>test.</code> namespace in <code>extract</code>, <code>status</code>, <code>sync</code> and <code>lint</code>. <code>*</code> matches any characters. Fixes <a href="https://redirect.github.com/i18next/i18next-cli/issues/325">#325</a></li> </ul> <h2>1.82.5</h2> <ul> <li>fix: with an <code>extract.output</code> that puts the namespace in a folder, like <code>locales/{{namespace}}/{{language}}.json</code>, <code>lint</code>, <code>sync</code>, <code>extract</code> and <code>rename-key</code> now read the namespace from where the template has it instead of from the file name, which there is the language. <code>lint</code> checked no ICU/MF2 message at all, <code>sync</code> wrote the secondary languages to <code>locales/en/de.json</code> instead of <code>locales/common/de.json</code>, and <code>rename-key</code> missed calls like <code>t('hello', { ns: 'common' })</code>. <code>sync</code> and <code>lint</code> also read a namespace with a dot, like <code>app.settings.json</code>, whole. Fixes <a href="https://redirect.github.com/i18next/i18next-cli/issues/324">#324</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next-cli/commit/a6d0cc9a2248d960a4bd94e1077d0dfafa658bb3"><code>a6d0cc9</code></a> 1.85.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/50269e78cd9b4386b1819f245fdf8b890a05cbcf"><code>50269e7</code></a> docs: changelog for 1.85.1</li> <li><a href="https://github.com/i18next/i18next-cli/commit/98340c7701f5446487390308801e54c96dbc1e24"><code>98340c7</code></a> fix: resolve barrel index imports on Windows</li> <li><a href="https://github.com/i18next/i18next-cli/commit/9c9be9bd73bf7d1be92c148e353a3e3987f22c35"><code>9c9be9b</code></a> 1.85.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/f7b98283eae067185ae5935ce92f040d21bf5c96"><code>f7b9828</code></a> docs: changelog for 1.85.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/51f33c2efa335367b029cfa0b8a42641849b0fe4"><code>51f33c2</code></a> fix: resolve names imported through barrel files, add warnOnAmbiguousTypes</li> <li><a href="https://github.com/i18next/i18next-cli/commit/f76590f0361b2855850b628b167682065c4a4f3d"><code>f76590f</code></a> 1.84.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/eb03151fd23645d2640c7c532bc8a3203492ead2"><code>eb03151</code></a> docs: changelog for 1.84.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/6ea4c95b108ae5909b74c8cce29bdd03dce7289e"><code>6ea4c95</code></a> feat: afterSync tells plugins whether it is a dry run</li> <li><a href="https://github.com/i18next/i18next-cli/commit/b3bfeaf1d34b08fc1d0cdf0484a874de480938ca"><code>b3bfeaf</code></a> 1.83.0</li> <li>Additional commits viewable in <a href="https://github.com/i18next/i18next-cli/compare/v1.82.4...v1.85.1">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>
Maputnik
A free and open visual editor for the MapLibre GL styles targeted at developers and map designers.
Usage
- 🔗 Design your maps online at https://www.maplibre.org/maputnik/ (all in local storage)
- 🔗 Use the Maputnik CLI for local style development
- In a Docker, run this command and browse to http://localhost:8888, Ctrl+C to stop the server.
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main
To see the CLI options (for example file watching or style serving) run:
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main --help
You might need to mount a volume (-v) to be able to use these options.
Documentation
The documentation can be found in the Wiki. You are welcome to collaborate!
- 🔗 Study the Maputnik Wiki
- 📹 Design a map from Scratch https://youtu.be/XoDh0gEnBQo
Develop
Maputnik is written in typescript and is using React and MapLibre GL JS.
We ensure building and developing Maputnik works with the current active LTS Node.js version and above.
Check out our Internationalization guide for UI text related changes.
Getting Involved
Join the #maplibre or #maputnik slack channel at OSMUS: get an invite at https://slack.openstreetmap.us/ Read the the below guide in order to get familiar with how we do things around here.
Install the deps, start the dev server and open the web browser on http://localhost:8888/.
# install dependencies
npm install
# start dev server
npm run start
If you want Maputnik to be accessible externally use the --host option:
# start externally accessible dev server
npm run start -- --host 0.0.0.0
The build process will watch for changes to the filesystem, rebuild and autoreload the editor.
npm run build
Lint the JavaScript code.
# run linter
npm run lint
npm run lint-css
npm run sort-styles
Tests
End-to-end tests
For E2E testing we use Playwright. The tests live in the e2e directory and drive the app through the MaputnikDriver page object.
The first time you run the tests, install the browser:
npx playwright install chromium
Playwright automatically starts the dev server (npm run start) for you, so you can just run:
npm run test
Some useful options:
# see the tests run in a headed browser
npm run test -- --headed
# run a single spec / filter by title
npm run test -- e2e/map.spec.ts
npm run test -- -g "zoom level"
# open the interactive UI mode
npx playwright test --ui
Running the E2E tests also produces a code-coverage report in coverage/ (collected via istanbul instrumentation of the dev server).
Unit & component tests
Unit tests and component tests run with Vitest; component tests (*.browser.test.tsx) use Vitest's browser mode with the Playwright provider.
npm run test-unit
Release process
- Review
CHANGELOG.md- Double-check that all changes included in the release are appropriately documented.
- To-be-released changes should be under the "main" header.
- Commit any final changes to the changelog.
- Run Create bump version PR by manual workflow dispatch and set the version number in the input. This will create a PR that changes the changelog and
package.jsonfile to review and merge. - Once merged, an automatic process will kick in and creates a GitHub release and uploads release assets.
Sponsors
Thanks to the supporters of the Kickstarter campaign. This project would not be possible without these commercial and individual sponsors. You can see this file's history for previous sponsors of the original Maputnik repo. Read more about the MapLibre Sponsorship Program at https://maplibre.org/sponsors/.
License
Maputnik is licensed under MIT and is Copyright (c) Lukas Martinelli and Maplibre contributors. As contributor please take extra care of not violating any Mapbox trademarks. Do not get inspired by other map studios and make your own decisions for a good style editor.
