Bumps [sass](https://github.com/sass/dart-sass) from 1.105.2 to 1.106.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sass/dart-sass/releases">sass's releases</a>.</em></p> <blockquote> <h2>Dart Sass 1.106.1</h2> <p>To install Sass 1.106.1, download one of the packages below and <a href="https://katiek2.github.io/path-doc/">add it to your PATH</a>, or see <a href="https://sass-lang.com/install">the Sass website</a> for full installation instructions.</p> <h1>Changes</h1> <ul> <li> <p>Fix a bug where an attribute selector with an empty value (such as <code>[class=""]</code>) would crash when serializing.</p> </li> <li> <p>Don't crash when serializing a number with an empty unit. This is only possible through the JavaScript and Dart APIs or the embedded protocol.</p> </li> </ul> <h3>Embedded Dart Sass</h3> <ul> <li>More robustly convert invalid value errors into <code>PARAMS</code> errors.</li> </ul> <p>See the <a href="https://github.com/sass/dart-sass/blob/master/CHANGELOG.md#11061">full changelog</a> for changes in earlier releases.</p> <h2>Dart Sass 1.106.0</h2> <p>To install Sass 1.106.0, download one of the packages below and <a href="https://katiek2.github.io/path-doc/">add it to your PATH</a>, or see <a href="https://sass-lang.com/install">the Sass website</a> for full installation instructions.</p> <h1>Changes</h1> <ul> <li> <p>Don't normalize CSS escapes in statement contexts that can contain interpolation. For example, <code>@f\6Fo</code> is now emitted as written rather than normalized to <code>@foo</code>.</p> </li> <li> <p>Fix a bug where quotes would be removed from attribute selector values that contained backslashes.</p> </li> <li> <p>Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences.</p> </li> <li> <p>Fix a bug where the indented syntax parser would crash when parsing a file where the first statement was indented <em>and</em> appeared after the first line.</p> </li> <li> <p>Fix a bug that could cause crashes when encountering errors or warnings in interpolations that contain patterns like <code>// */</code>.</p> </li> <li> <p><strong>Potentially breaking compatibility fix:</strong> CSS escape codes whose values are 0, for Unicode surrogates, or greater than the maximum allowed code point are now consistently normalized to U+FFFD REPLACEMENT CHARACTER in expression contexts. Previously, in some cases these were instead normalized to the normalized form of the original escape sequence, which violates the principle that all escape sequences for identical values should be normalized the same way. In other cases, these would simply throw errors.</p> <p>As a special case, <code>\0</code> on its own will continue to be normalized to <code>\0 </code> to support historical CSS hacks.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Throw an error for mixins and functions that have rest parameters which are the same as normal parameters. Previously, the positional parameters wouldn't be accessible and calling such a mixin or function with a named argument would crash the compiler.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Fix various cases where using a CSS escape code at the beginning of an identifier would change parsing behavior versus using the character directly.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> When a number's unit is ambiguous with a numeric exponent, the unit is now serialized as an escape code rather than a literal <code>e</code> to avoid being interpreted as an exponent by CSS.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Don't parse a CSS escape code for U+45 LATIN CAPITAL LETTER E or U+65 LATIN LOWERCASE LETTER E as an exponent in <code>@keyframes</code> percentage selectors.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Properly normalize underscores written as CSS escape codes in variable, mixin, and function names.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/sass/dart-sass/blob/main/CHANGELOG.md">sass's changelog</a>.</em></p> <blockquote> <h2>1.106.1</h2> <ul> <li> <p>Fix a bug where an attribute selector with an empty value (such as <code>[class=""]</code>) would crash when serializing.</p> </li> <li> <p>Don't crash when serializing a number with an empty unit. This is only possible through the JavaScript and Dart APIs or the embedded protocol.</p> </li> </ul> <h3>Embedded Dart Sass</h3> <ul> <li>More robustly convert invalid value errors into <code>PARAMS</code> errors.</li> </ul> <h2>1.106.0</h2> <ul> <li> <p>Don't normalize CSS escapes in statement contexts that can contain interpolation. For example, <code>@f\6Fo</code> is now emitted as written rather than normalized to <code>@foo</code>.</p> </li> <li> <p>Fix a bug where quotes would be removed from attribute selector values that contained backslashes.</p> </li> <li> <p>Fix invalid source spans that could cause crashes when encountering a syntax error in selectors or media queries that also contain escape sequences.</p> </li> <li> <p>Fix a bug where the indented syntax parser would crash when parsing a file where the first statement was indented <em>and</em> appeared after the first line.</p> </li> <li> <p>Fix a bug that could cause crashes when encountering errors or warnings in interpolations that contain patterns like <code>// */</code>.</p> </li> <li> <p><strong>Potentially breaking compatibility fix:</strong> CSS escape codes whose values are 0, for Unicode surrogates, or greater than the maximum allowed code point are now consistently normalized to U+FFFD REPLACEMENT CHARACTER in expression contexts. Previously, in some cases these were instead normalized to the normalized form of the original escape sequence, which violates the principle that all escape sequences for identical values should be normalized the same way. In other cases, these would simply throw errors.</p> <p>As a special case, <code>\0</code> on its own will continue to be normalized to <code>\0 </code> to support historical CSS hacks.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Throw an error for mixins and functions that have rest parameters which are the same as normal parameters. Previously, the positional parameters wouldn't be accessible and calling such a mixin or function with a named argument would crash the compiler.</p> </li> <li> <p><strong>Potentially breaking bug fix:</strong> Fix various cases where using a CSS escape code at the beginning of an identifier would change parsing behavior versus using the character directly.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/sass/dart-sass/commit/811ecc67bc5ed16d410d76e8bde343d9770f08c0"><code>811ecc6</code></a> Pull the version back to 1.106.1 (<a href="https://redirect.github.com/sass/dart-sass/issues/2893">#2893</a>)</li> <li><a href="https://github.com/sass/dart-sass/commit/b10205ed8391f11cb9ce8b7c3d6464f842491ce8"><code>b10205e</code></a> Fix serializing a number with an empty-string unit (<a href="https://redirect.github.com/sass/dart-sass/issues/2892">#2892</a>)</li> <li><a href="https://github.com/sass/dart-sass/commit/e79f8a7d869efe54e3723c1e5060bb6cb95d63a4"><code>e79f8a7</code></a> Fix serializing an attribute selector with an empty value (<a href="https://redirect.github.com/sass/dart-sass/issues/2891">#2891</a>)</li> <li><a href="https://github.com/sass/dart-sass/commit/2ea4fc07b8560ba57e1657d9759b6ce8e89a64dd"><code>2ea4fc0</code></a> Merge pull request <a href="https://redirect.github.com/sass/dart-sass/issues/2883">#2883</a> from sass/fuzz</li> <li><a href="https://github.com/sass/dart-sass/commit/a113995474eb2a58035f2ebb5f5d85590e4d11b9"><code>a113995</code></a> Bump postcss from 8.5.28 to 8.5.30 in /pkg/sass-parser (<a href="https://redirect.github.com/sass/dart-sass/issues/2886">#2886</a>)</li> <li><a href="https://github.com/sass/dart-sass/commit/2d2e76cf29ec022d5c3a8539e79d8d490accf21f"><code>2d2e76c</code></a> Try using the SassBot GitHub token when auto-merging dependabot PRs (<a href="https://redirect.github.com/sass/dart-sass/issues/2885">#2885</a>)</li> <li><a href="https://github.com/sass/dart-sass/commit/56608242a996f869fc1903c68fd4c68c8d97daa3"><code>5660824</code></a> Improve the accuracy of <code>FileSpan.trimLeft()</code> and <code>.trimRight()</code></li> <li><a href="https://github.com/sass/dart-sass/commit/09e4024c4c907f7bbc2754fa5c9a10a882ad9056"><code>09e4024</code></a> Throw an error for duplicate rest and non-rest parameter names</li> <li><a href="https://github.com/sass/dart-sass/commit/34c8e6b1fc854b4aabc907a0c427b854ee9ec35b"><code>34c8e6b</code></a> Fix check for an indented first statement</li> <li><a href="https://github.com/sass/dart-sass/commit/a05866caeb42db34c3df1181eb5bcf41534549c8"><code>a05866c</code></a> Make <code>_expandInterpolationLeft</code> resilient to commented-out comments</li> <li>Additional commits viewable in <a href="https://github.com/sass/dart-sass/compare/1.105.2...1.106.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.
