Skip to content

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

License

facebookexperimental/Recoil

main
Switch branches/tags
Code

Latest commit

Summary:
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.2.2 to 16.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/jsdom/jsdom/releases">jsdom's releases</a>.</em></p>
<blockquote>
<h2>Version 16.7.0</h2>
<ul>
<li>Added <code>AbortSignal.abort()</code>. (ninevra)</li>
<li>Added dummy <code>x</code> and <code>y</code> properties to the return value of <code>getBoundingClientRect()</code>. (eiko)</li>
<li>Implemented wrapping for <code>textareaEl.value</code> if the <code>wrap=&quot;&quot;</code> attribute is specified. (ninevra)</li>
<li>Changed newline normalization in <code>&lt;textarea&gt;</code>s according to <a href="https://blog.whatwg.org/newline-normalizations-in-form-submission">recent HTML Standard updates</a>. (ninevra)</li>
<li>Fixed some bad cascade computation in <code>getComputedStyle()</code>. (romain-trotard)</li>
</ul>
<h2>Version 16.6.0</h2>
<ul>
<li>Added <code>parentNode.replaceChildren()</code>. (<a href="https://github.com/ninevra"><code>@​ninevra</code></a>)</li>
<li>Fixed jsdom's handling of when code running inside the jsdom throws <code>null</code> or <code>undefined</code> as an exception. (<a href="https://github.com/mbest"><code>@​mbest</code></a>)</li>
<li>Removed the dependency on the deprecated <a href="https://www.npmjs.com/package/request"><code>request</code></a> package, in the process fixing several issues with the <code>XMLHttpRequest</code> implementation around header processing. Thanks go to <a href="https://github.com/tobyhinloopen"><code>@​tobyhinloopen</code></a>, <a href="https://github.com/andrewaylett"><code>@​andrewaylett</code></a>, and especially <a href="https://github.com/vegardbb"><code>@​vegardbb</code></a>, for completing this months-long effort!</li>
</ul>
<h2>Version 16.5.3</h2>
<ul>
<li>Fixed infinite recursion when using <code>MutationObserver</code>s to observe elements inside a <code>MutationObserver</code> callback.</li>
</ul>
<h2>Version 16.5.2</h2>
<ul>
<li>Fixed <code>Access-Control-Allow-Headers: *</code> to work with <code>XMLHttpRequest</code>. (silviot)</li>
<li>Fixed <code>xhr.response</code> to strip any leading BOM when <code>xhr.responseType</code> is <code>&quot;json&quot;</code>.</li>
<li>Fixed <code>new Text()</code> and <code>new Comment()</code> constructors to properly set the resulting node's <code>ownerDocument</code>.</li>
<li>Fixed <code>customElements.whenDefined()</code> to resolve its returned promise with the custom element constructor, per recent spec updates. (ExE-Boss)</li>
<li>Fixed parsing to ensure that <code>&lt;svg&gt;\&lt;template&gt;&lt;/template&gt;&lt;/svg&gt;</code> does not throw an exception, but instead correctly produces a SVG-namespace <code>\&lt;template&gt;</code> element.</li>
<li>Fixed <code>domParser.parseFromString()</code> to treat <code>&lt;noscript&gt;</code> elements appropriately.</li>
<li>Fixed form control validity checking when the control was outside the <code>&lt;form&gt;</code> element and instead associated using the <code>form=&quot;&quot;</code> attribute.</li>
<li>Fixed <code>legendEl.form</code> to return the correct result based on its parent <code>&lt;fieldset&gt;</code>.</li>
<li>Fixed <code>optionEl.text</code> to exclude <code>&lt;script&gt;</code> descendants.</li>
<li>Fixed radio buttons and checkboxes to not fire <code>input</code> and <code>change</code> events when disconnected.</li>
<li>Fixed <code>inputEl.indeterminate</code> to reset to its previous value when canceling a <code>click</code> event on a checkbox or radio button.</li>
<li>Fixed the behavior of event handler attributes (e.g. <code>onclick=&quot;...code...&quot;</code>) when there were global variables named <code>element</code> or <code>formOwner</code>. (ExE-Boss)</li>
<li>On Node.js v14.6.0+ where <code>WeakRef</code>s are available, fixed <code>NodeIterator</code> to no longer stop working when more than ten <code>NodeIterator</code> instances are created, and to use less memory due to inactive <code>NodeIterator</code>s sticking around. (ExE-Boss)</li>
</ul>
<h2>Version 16.5.1</h2>
<ul>
<li>Fixed a regression that broke <code>customElements.get()</code> in v16.5.0. (fdesforges)</li>
<li>Fixed <code>window.event</code> to have a setter which overwrites the <code>window.event</code> property with the given value, per the specification. This fixes an issue where after upgrading to jsdom v16.5.0 you would no longer be able to set a global variable named <code>event</code> in the jsdom context.</li>
</ul>
<h2>Version 16.5.0</h2>
<ul>
<li>Added <code>window.queueMicrotask()</code>.</li>
<li>Added <code>window.event</code>.</li>
<li>Added <code>inputEvent.inputType</code>. (diegohaz)</li>
<li>Removed <code>ondragexit</code> from <code>Window</code> and friends, per a spec update.</li>
<li>Fixed the URL of <code>about:blank</code> iframes. Previously it was getting set to the parent's URL. (SimonMueller)</li>
<li>Fixed the loading of subresources from the filesystem when they had non-ASCII filenames.</li>
<li>Fixed the <code>hidden=&quot;&quot;</code> attribute to cause <code>display: none</code> per the user-agent stylesheet. (ph-fritsche)</li>
<li>Fixed the <code>new File()</code> constructor to no longer convert <code>/</code> to <code>:</code>, per <a href="https://github-redirect.dependabot.com/w3c/FileAPI/issues/41">a pending spec update</a>.</li>
<li>Fixed mutation observer callbacks to be called with the <code>MutationObserver</code> instance as their <code>this</code> value.</li>
<li>Fixed <code>&lt;input type=checkbox&gt;</code> and <code>&lt;input type=radio&gt;</code> to be mutable even when disabled, per <a href="https://github-redirect.dependabot.com/whatwg/html/pull/5805">a spec update</a>.</li>
<li>Fixed <code>XMLHttpRequest</code> to not fire a redundant final <code>progress</code> event if a <code>progress</code> event was previously fired with the same <code>loaded</code> value. This would usually occur with small files.</li>
<li>Fixed <code>XMLHttpRequest</code> to expose the <code>Content-Length</code> header on cross-origin responses.</li>
<li>Fixed <code>xhr.response</code> to return <code>null</code> for failures that occur during the middle of the download.</li>
<li>Fixed edge cases around passing callback functions or event handlers. (ExE-Boss)</li>
<li>Fixed edge cases around the properties of proxy-like objects such as <code>localStorage</code> or <code>dataset</code>. (ExE-Boss)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/jsdom/jsdom/blob/master/Changelog.md">jsdom's changelog</a>.</em></p>
<blockquote>
<h2>16.7.0</h2>
<ul>
<li>Added <code>AbortSignal.abort()</code>. (ninevra)</li>
<li>Added dummy <code>x</code> and <code>y</code> properties to the return value of <code>getBoundingClientRect()</code>. (eiko)</li>
<li>Implemented wrapping for <code>textareaEl.value</code> if the <code>wrap=&quot;&quot;</code> attribute is specified. (ninevra)</li>
<li>Changed newline normalization in <code>&lt;textarea&gt;</code>s according to <a href="https://blog.whatwg.org/newline-normalizations-in-form-submission">recent HTML Standard updates</a>. (ninevra)</li>
<li>Fixed some bad cascade computation in <code>getComputedStyle()</code>. (romain-trotard)</li>
</ul>
<h2>16.6.0</h2>
<ul>
<li>Added <code>parentNode.replaceChildren()</code>. (ninevra)</li>
<li>Fixed jsdom's handling of when code running inside the jsdom throws <code>null</code> or <code>undefined</code> as an exception. (mbest)</li>
<li>Removed the dependency on the deprecated <a href="https://www.npmjs.com/package/request"><code>request</code></a> package, in the process fixing several issues with the <code>XMLHttpRequest</code> implementation around header processing. Special thanks to vegardbb for completing this months-long effort!</li>
</ul>
<h2>16.5.3</h2>
<ul>
<li>Fixed infinite recursion when using <code>MutationObserver</code>s to observe elements inside a <code>MutationObserver</code> callback.</li>
</ul>
<h2>16.5.2</h2>
<ul>
<li>Fixed <code>Access-Control-Allow-Headers: *</code> to work with <code>XMLHttpRequest</code>. (silviot)</li>
<li>Fixed <code>xhr.response</code> to strip any leading BOM when <code>xhr.responseType</code> is <code>&quot;json&quot;</code>.</li>
<li>Fixed <code>new Text()</code> and <code>new Comment()</code> constructors to properly set the resulting node's <code>ownerDocument</code>.</li>
<li>Fixed <code>customElements.whenDefined()</code> to resolve its returned promise with the custom element constructor, per recent spec updates. (ExE-Boss)</li>
<li>Fixed parsing to ensure that <code>&lt;svg&gt;\&lt;template&gt;&lt;/template&gt;&lt;/svg&gt;</code> does not throw an exception, but instead correctly produces a SVG-namespace <code>\&lt;template&gt;</code> element.</li>
<li>Fixed <code>domParser.parseFromString()</code> to treat <code>&lt;noscript&gt;</code> elements appropriately.</li>
<li>Fixed form control validity checking when the control was outside the <code>&lt;form&gt;</code> element and instead associated using the <code>form=&quot;&quot;</code> attribute.</li>
<li>Fixed <code>legendEl.form</code> to return the correct result based on its parent <code>&lt;fieldset&gt;</code>.</li>
<li>Fixed <code>optionEl.text</code> to exclude <code>&lt;script&gt;</code> descendants.</li>
<li>Fixed radio buttons and checkboxes to not fire <code>input</code> and <code>change</code> events when disconnected.</li>
<li>Fixed <code>inputEl.indeterminate</code> to reset to its previous value when canceling a <code>click</code> event on a checkbox or radio button.</li>
<li>Fixed the behavior of event handler attributes (e.g. <code>onclick=&quot;...code...&quot;</code>) when there were global variables named <code>element</code> or <code>formOwner</code>. (ExE-Boss)</li>
<li>On Node.js v14.6.0+ where <code>WeakRef</code>s are available, fixed <code>NodeIterator</code> to no longer stop working when more than ten <code>NodeIterator</code> instances are created, and to use less memory due to inactive <code>NodeIterator</code>s sticking around. (ExE-Boss)</li>
</ul>
<h2>16.5.1</h2>
<ul>
<li>Fixed a regression that broke <code>customElements.get()</code> in v16.5.0. (fdesforges)</li>
<li>Fixed <code>window.event</code> to have a setter which overwrites the <code>window.event</code> property with the given value, per the specification. This fixes an issue where after upgrading to jsdom v16.5.0 you would no longer be able to set a global variable named <code>event</code> in the jsdom context.</li>
</ul>
<h2>16.5.0</h2>
<ul>
<li>Added <code>window.queueMicrotask()</code>.</li>
<li>Added <code>window.event</code>.</li>
<li>Added <code>inputEvent.inputType</code>. (diegohaz)</li>
<li>Removed <code>ondragexit</code> from <code>Window</code> and friends, per a spec update.</li>
<li>Fixed the URL of <code>about:blank</code> iframes. Previously it was getting set to the parent's URL. (SimonMueller)</li>
<li>Fixed the loading of subresources from the filesystem when they had non-ASCII filenames.</li>
<li>Fixed the <code>hidden=&quot;&quot;</code> attribute to cause <code>display: none</code> per the user-agent stylesheet. (ph-fritsche)</li>
<li>Fixed the <code>new File()</code> constructor to no longer convert <code>/</code> to <code>:</code>, per <a href="https://github-redirect.dependabot.com/w3c/FileAPI/issues/41">a pending spec update</a>.</li>
<li>Fixed mutation observer callbacks to be called with the <code>MutationObserver</code> instance as their <code>this</code> value.</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/jsdom/jsdom/commit/1aa3cbc2eea649b91995583725610c6b98e91251"><code>1aa3cbc</code></a> Version 16.7.0</li>
<li><a href="https://github.com/jsdom/jsdom/commit/df1f5516b05915c85d2fb9a2342a94c13292d9d9"><code>df1f551</code></a> Don't run WebSocketStream tests</li>
<li><a href="https://github.com/jsdom/jsdom/commit/eb105b234207eee72cafb146281ca90d46b40db3"><code>eb105b2</code></a> Fix browser tests by enabling SharedArrayBuffer</li>
<li><a href="https://github.com/jsdom/jsdom/commit/0dedfc0532572bbcc622681d002ce68f30464df0"><code>0dedfc0</code></a> Fix some bad cascade computation in getComputedStyle()</li>
<li><a href="https://github.com/jsdom/jsdom/commit/8021a568cede2a5b1af12ea1e988184cf51daade"><code>8021a56</code></a> Fix &quot;configuation&quot; typo (<a href="https://github-redirect.dependabot.com/jsdom/jsdom/issues/3213">#3213</a>)</li>
<li><a href="https://github.com/jsdom/jsdom/commit/a7febe31bb8d3279076a95e5835ce935064d4261"><code>a7febe3</code></a> Fix typo in level2/html.js (<a href="https://github-redirect.dependabot.com/jsdom/jsdom/issues/3222">#3222</a>)</li>
<li><a href="https://github.com/jsdom/jsdom/commit/c9896c0c79be303842a4a8a311c548563dd9476f"><code>c9896c0</code></a> Return x, y properties from Element.getBoundingClientRect (<a href="https://github-redirect.dependabot.com/jsdom/jsdom/issues/3187">#3187</a>)</li>
<li><a href="https://github.com/jsdom/jsdom/commit/346ea9810ab68616254b6a18a62beb518d0eb2ce"><code>346ea98</code></a> Update web-platform tests (<a href="https://github-redirect.dependabot.com/jsdom/jsdom/issues/3203">#3203</a>)</li>
<li><a href="https://github.com/jsdom/jsdom/commit/364c77d10d260ad6fdcb9411a125920700504c6b"><code>364c77d</code></a> Bump to ws 7.4.6</li>
<li><a href="https://github.com/jsdom/jsdom/commit/93ba6a01c11c759b81900db4a07d8f219a949bf8"><code>93ba6a0</code></a> We are now on Matrix (<a href="https://github-redirect.dependabot.com/jsdom/jsdom/issues/3207">#3207</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/jsdom/jsdom/compare/16.2.2...16.7.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jsdom&package-manager=npm_and_yarn&previous-version=16.2.2&new-version=16.7.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 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)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebookexperimental/Recoil/network/alerts).

</details>

Pull Request resolved: #1881

Reviewed By: drarmstr

Differential Revision: D37460555

Pulled By: noritheduck

fbshipit-source-id: 973eeb4727cd5a396fb2db7737541550cadb441f
96fe510

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
May 13, 2020

Recoil · NPM Version Node.js CI GitHub license Follow on Twitter

Recoil is an experimental state management framework for React.

Please see the website: https://recoiljs.org

Installation

The Recoil package lives in npm. Please see the installation guide

To install the latest stable version, run the following command:

npm install recoil

Or if you're using yarn:

yarn add recoil

Or if you're using bower:

bower install --save recoil

Contributing

Development of Recoil happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Recoil.

License

Recoil is MIT licensed.

About

Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published