mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-13 02:44:39 +08:00
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 15.10.2 to 20.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/capricorn86/happy-dom/releases">happy-dom's releases</a>.</em></p> <blockquote> <h2>v20.0.0</h2> <p>I avoid making breaking changes as much as possible in Happy DOM. When I have to make a breaking change, I try to keep it as minimal as possible. This could be a breaking change that impacts many projects, and I am truly sorry if you are negatively affected by this.</p> <h3>💣 Breaking Changes</h3> <ul> <li>Due to security risks, JavaScript evaluation is now disabled by default - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1930">#1930</a> <ul> <li>A security advisory (GHSA-37j7-fg3j-429f) has been reported that shows a security vulnerability where it's possible to escape the VM context and get access to process level functionality. Big thanks to <a href="https://github.com/Mas0nShi"><code>@Mas0nShi</code></a> for reporting this!</li> <li>Due to this security risk, JavaScript evaluation is now disabled by default to prevent that consumers accidentally executes untrusted code without taking precautions</li> <li>JavaScript evaluation can be enabled by setting <a href="https://github.com/capricorn86/happy-dom/wiki/IOptionalBrowserSettings">enableJavaScriptEvaluation</a> to "true". Read more about how to enable this in a safer way in the <a href="https://github.com/capricorn86/happy-dom/wiki/Code-Generation-From-Strings-Warning">Wiki</a></li> </ul> </li> </ul> <h2>v19.0.2</h2> <h3>👷♂️ Patch fixes</h3> <ul> <li>Fixes issue related to CSS pseudo selector <code>:scope</code> that didn't work correctly for direct descendants to root - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1620">#1620</a></li> </ul> <h2>v19.0.1</h2> <h3>👷♂️ Patch fixes</h3> <ul> <li>Fixes issue with sending in URLs as string in <code>@happy-dom/server-renderer</code> config using CLI - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1908">#1908</a></li> </ul> <h2>v19.0.0</h2> <h3>💣 Breaking Changes</h3> <ul> <li>Removes support for CommonJS - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a> <ul> <li>Support for CommonJS is no longer needed as Node.js v18 is deprecated and v20 and above supports loading ES modules from CommonJS using <code>require()</code></li> </ul> </li> <li>Updates Jest to v30 in the <code>@happy-dom/jest-environment</code> package - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Makes Jest packages peer dependencies to make it easier to align versions with the project using <code>@happy-dom/jest-environment</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> </ul> <h3>🎨 Features</h3> <ul> <li>Adds a new package called <code>@happy-dom/server-renderer</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a> <ul> <li>This package provides a simple way to statically render (SSG) or server-side render (SSR) your client-side application</li> <li>Read more in the Wiki under <a href="https://github.com/capricorn86/happy-dom/wiki/Server-Renderer">Server-Renderer</a></li> </ul> </li> <li>Adds support for <code>import.meta</code> to the ESM compiler - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for the CSS pseudo selector <code>:scope</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1620">#1620</a></li> <li>Improves support for <code>MediaList</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for <code>CSSKeywordValue</code>, <code>CSSStyleValue</code>, <code>StylePropertyMap</code>, <code>StylePropertyMap</code>, <code>StylePropertyMapReadOnly</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Improves debug information in the ESM compiler - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds validation of browser settings when creating a new <code>Browser</code> instance - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for the browser setting <a href="https://github.com/capricorn86/happy-dom/wiki/IBrowserSettings">navigation.beforeContentCallback</a> which makes it possible to inject event listeners or logic before content is loaded to the document when navigating a browser frame - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for the browser setting <a href="https://github.com/capricorn86/happy-dom/wiki/IBrowserSettings">fetch.requestHeaders</a> which provides with a declarative and simple way to add request headers - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for setting an object to <a href="https://github.com/capricorn86/happy-dom/wiki/IBrowserSettings">timer.preventTimerLoops</a> which makes it possible to define different settings for <code>setTimeout()</code> and <code>requestAnimationFrame()</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for the browser setting <a href="https://github.com/capricorn86/happy-dom/wiki/IBrowserSettings">viewport</a> which makes it possible to define a default viewport size - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for the parameters <code>beforeContentCallback</code> and <code>headers</code> to <code>BrowserFrame.goto()</code>, <code>BrowserFrame.goBack()</code>, <code>BrowserFrame.goForward()</code>, <code>BrowserFrame.goSteps()</code> and <code>BrowserFrame.reload()</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for <code>PopStateEvent</code> and trigger the event when navigating the page history using <code>History.pushState()</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Use local file paths for virtual server files in stack traces - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Adds support for <code>ResponseCache.fileSystem.load()</code> and <code>ResponseCache.fileSystem.save()</code> for storing and loading cache from the file system - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> </ul> <h3>👷♂️ Patch fixes</h3> <ul> <li>Fixes a bug in the ESM compiler that caused it to fail to parse certain code - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Disables the same origin policy when navigating a browser frame using <code>BrowserFrame.goto()</code> - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> <li>Fixes bug where CSS selectors with the pseudos "+" and ">" failed for selectors without arguments - By <strong><a href="https://github.com/capricorn86"><code>@capricorn86</code></a></strong> in task <a href="https://redirect.github.com/capricorn86/happy-dom/issues/1730">#1730</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| docker | ||
| scripts | ||
| src | ||
| static | ||
| .eslintrc.cjs | ||
| .firebaserc_example | ||
| .oxlintrc.json | ||
| firebase.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.dev.js | ||
| vite.config.js | ||
| vite.config.prod.js | ||
| vitest.config.ts | ||