Skip to content

Commit dd4448a

Browse files
dependabot[bot]jannik brack
andauthored
Bump webpack from 5.90.2 to 5.98.0 in the npm_and_yarn group across 1 directory (#212) (Jannik verified)
Bumps the npm_and_yarn group with 1 update in the / directory: [webpack](https://github.com/webpack/webpack). Updates `webpack` from 5.90.2 to 5.98.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/webpack/webpack/releases">webpack's releases</a>.</em></p> <blockquote> <h2>v5.98.0</h2> <h3>Fixes</h3> <ul> <li>Avoid the deprecation message <a href="https://redirect.github.com/webpack/webpack/issues/19062">#19062</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> <li>Should not escape CSS local ident in JS <a href="https://redirect.github.com/webpack/webpack/issues/19060">#19060</a> by <a href="https://github.com/JSerFeng"><code>@​JSerFeng</code></a></li> <li>MF parse range not compatible with Safari <a href="https://redirect.github.com/webpack/webpack/issues/19083">#19083</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> <li>Preserve <code>filenameTemplate</code> in new split chunk <a href="https://redirect.github.com/webpack/webpack/issues/19104">#19104</a> by <a href="https://github.com/henryqdineen"><code>@​henryqdineen</code></a></li> <li>Use module IDs for final render order <a href="https://redirect.github.com/webpack/webpack/issues/19184">#19184</a> by <a href="https://github.com/dmichon-msft"><code>@​dmichon-msft</code></a></li> <li>Strip <code>blob:</code> protocol when public path is <code>auto</code> <a href="https://redirect.github.com/webpack/webpack/issues/19199">#19199</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> <li>Respect <code>output.charset</code> everywhere <a href="https://redirect.github.com/webpack/webpack/issues/19202">#19202</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> <li>Node async WASM loader generation <a href="https://redirect.github.com/webpack/webpack/issues/19210">#19210</a> by <a href="https://github.com/ashi009"><code>@​ashi009</code></a></li> <li>Correct <code>BuildInfo</code> and <code>BuildMeta</code> type definitions <a href="https://redirect.github.com/webpack/webpack/issues/19200">#19200</a> by <a href="https://github.com/inottn"><code>@​inottn</code></a></li> </ul> <h3>Performance Improvements</h3> <ul> <li>Improve <code>FlagDependencyExportsPlugin</code> for large JSON by depth <a href="https://redirect.github.com/webpack/webpack/issues/19058">#19058</a> by <a href="https://github.com/hai-x"><code>@​hai-x</code></a></li> <li>Optimize assign-depths <a href="https://redirect.github.com/webpack/webpack/issues/19193">#19193</a> by <a href="https://github.com/dmichon-msft"><code>@​dmichon-msft</code></a></li> <li>Use <code>startsWith</code> for matching instead of converting the string to a regex <a href="https://redirect.github.com/webpack/webpack/issues/19207">#19207</a> by <a href="https://github.com/inottn"><code>@​inottn</code></a></li> </ul> <h3>Chores</h3> <ul> <li>Bump <code>nanoid</code> from 3.3.7 to 3.3.8 <a href="https://redirect.github.com/webpack/webpack/issues/19063">#19063</a> by <a href="https://github.com/dependabot"><code>@​dependabot</code></a></li> <li>Fixed incorrect typecast in <code>DefaultStatsFactoryPlugin</code> <a href="https://redirect.github.com/webpack/webpack/issues/19156">#19156</a> by <a href="https://github.com/Andarist"><code>@​Andarist</code></a></li> <li>Improved <code>readme.md</code> by adding video links for understanding webpack <a href="https://redirect.github.com/webpack/webpack/issues/19101">#19101</a> by <a href="https://github.com/Vansh5632"><code>@​Vansh5632</code></a></li> <li>Typo fix <a href="https://redirect.github.com/webpack/webpack/issues/19205">#19205</a> by <a href="https://github.com/hai-x"><code>@​hai-x</code></a></li> <li>Adopt the new webpack governance model <a href="https://redirect.github.com/webpack/webpack/issues/18804">#18804</a> by <a href="https://github.com/ovflowd"><code>@​ovflowd</code></a></li> </ul> <h3>Features</h3> <ul> <li>Implement <code>/* webpackIgnore: true */</code> for <code>require.resolve</code> <a href="https://redirect.github.com/webpack/webpack/issues/19201">#19201</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> </ul> <h3>Continuous Integration</h3> <ul> <li>CI fix <a href="https://redirect.github.com/webpack/webpack/issues/19196">#19196</a> by <a href="https://github.com/alexander-akait"><code>@​alexander-akait</code></a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Andarist"><code>@​Andarist</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/19156">webpack/webpack#19156</a></li> <li><a href="https://github.com/Vansh5632"><code>@​Vansh5632</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/19101">webpack/webpack#19101</a></li> <li><a href="https://github.com/ashi009"><code>@​ashi009</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/19210">webpack/webpack#19210</a></li> <li><a href="https://github.com/ovflowd"><code>@​ovflowd</code></a> made their first contribution in <a href="https://redirect.github.com/webpack/webpack/pull/18804">webpack/webpack#18804</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/webpack/webpack/compare/v5.97.1...v5.98.0">https://github.com/webpack/webpack/compare/v5.97.1...v5.98.0</a></p> <h2>v5.97.1</h2> <h2>Bug Fixes</h2> <ul> <li>Performance regression</li> <li>Sub define key should't be renamed when it's a defined variable</li> </ul> <h2>v5.97.0</h2> <h2>Bug Fixes</h2> <ul> <li>Don't crash with filesystem cache and unknown scheme</li> <li>Generate a valid code when <code>output.iife</code> is <code>true</code> and output.library.type is <code>umd</code></li> <li>Fixed conflict variable name with concatenate modules and runtime code</li> <li>Merge duplicate chunks before</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/webpack/webpack/commit/f1bdec5cc70236083e45b665831d5d79d6485db7"><code>f1bdec5</code></a> 5.98.0</li> <li><a href="https://github.com/webpack/webpack/commit/9579f223fc67304d7630a7ae0f66a7eac9ebbd5d"><code>9579f22</code></a> chore: adopt the new webpack governance model (<a href="https://redirect.github.com/webpack/webpack/issues/18804">#18804</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/a1edb20b101857936c92291b15af5c166f453b01"><code>a1edb20</code></a> fix: node async wasm loader now use <code>output.module</code> to determinate code gener...</li> <li><a href="https://github.com/webpack/webpack/commit/e55b08b9eb3c398e4755dd9042f40ba8d0e657ee"><code>e55b08b</code></a> perf: use startsWith for matching instead of converting the string to a regex</li> <li><a href="https://github.com/webpack/webpack/commit/6e14dbabd70aae2ee5b87cb6830aadd5b7484304"><code>6e14dba</code></a> chore: fix typo (<a href="https://redirect.github.com/webpack/webpack/issues/19205">#19205</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/f123ce5090e56ce1216debce487e8be25275b896"><code>f123ce5</code></a> fix: respect <code>output.charset</code> everywhere (<a href="https://redirect.github.com/webpack/webpack/issues/19202">#19202</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/af20c7be245aced8ce794bac6b14582d38a4b04f"><code>af20c7b</code></a> fix: strip <code>blob:</code> protocol when public path is <code>auto</code> (<a href="https://redirect.github.com/webpack/webpack/issues/19199">#19199</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/80826c5cf235d8a14407c609d7e6eabb63e57ef8"><code>80826c5</code></a> feat: implement <code>/* webpackIgnore: true */</code> for <code>require.resolve</code> (<a href="https://redirect.github.com/webpack/webpack/issues/19201">#19201</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/ac6ffca02d323e4a576229d9441d72376eaeda56"><code>ac6ffca</code></a> fix(types): correct BuildInfo and BuildMeta type definitions (<a href="https://redirect.github.com/webpack/webpack/issues/19200">#19200</a>)</li> <li><a href="https://github.com/webpack/webpack/commit/8ac130a2c8a5431aea568cb2d1ab6b607c2c1383"><code>8ac130a</code></a> ci: fix</li> <li>Additional commits viewable in <a href="https://github.com/webpack/webpack/compare/v5.90.2...v5.98.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=webpack&package-manager=npm_and_yarn&previous-version=5.90.2&new-version=5.98.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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/mapcomponents/react-map-components-maplibre/network/alerts). </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jannik brack <[email protected]>
1 parent f71dbcb commit dd4448a

File tree

2 files changed

+203
-152
lines changed

2 files changed

+203
-152
lines changed

src/components/MlNavigationTools/MlNavigationTools.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,13 @@ const MlNavigationTools = (props: MlNavigationToolsProps) => {
8383
const zoomIn = useCallback(() => {
8484
if (!mapHook.map) return;
8585

86-
if (mapHook.map.transform.zoom + 0.5 <= mapHook.map.transform.maxZoom) {
87-
mapHook.map.easeTo({ zoom: mapHook.map.transform.zoom + 0.5 });
88-
}
86+
mapHook.map.easeTo({ zoom: mapHook.map.getZoom() + 0.5 });
8987
}, [mapHook.map]);
9088

9189
const zoomOut = useCallback(() => {
9290
if (!mapHook.map) return;
9391

94-
if (mapHook.map.transform.zoom - 0.5 >= mapHook.map.transform.minZoom) {
95-
mapHook.map.easeTo({ zoom: mapHook.map.transform.zoom - 0.5 });
96-
}
92+
mapHook.map.easeTo({ zoom: mapHook.map.getZoom() - 0.5 });
9793
}, [mapHook.map]);
9894

9995
const adjustPitch = useCallback(() => {

0 commit comments

Comments
 (0)