dependabot[bot]
2a26c29174
Bump getrandom from 0.2.10 to 0.2.11 ( #3459 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.10 to 0.2.11.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
acb014e3eb
Bump wasm-bindgen from 0.2.87 to 0.2.88 ( #3448 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.87 to 0.2.88.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.87...0.2.88 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
José Julián Espina
04ed7bee70
Implement `Atomics` builtin ( #3394 )
...
* Implement `Atomics` builtin
* Apply review
1 year ago
José Julián Espina
a56ce510d3
Fix new lints for Rust 1.73 ( #3361 )
1 year ago
José Julián Espina
615ae4e096
Introduce experimental features ( #3318 )
...
* Introduce experimental features
* Fix tests
1 year ago
José Julián Espina
ae414797af
Format code snippets in docs ( #3317 )
1 year ago
José Julián Espina
940e603d3b
Migrate to workspace deps ( #3313 )
...
* Migrate to workspace deps
* cargo fmt
1 year ago
José Julián Espina
0bb51b189e
Replace #[deny] with #[warn] ( #3309 )
...
* Change deny lints to warn lints
* Deny warnings on CI
1 year ago
dependabot[bot]
733c9ca75a
Bump chrono from 0.4.30 to 0.4.31 ( #3287 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.30 to 0.4.31.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.30...v0.4.31 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
306709177b
Bump chrono from 0.4.26 to 0.4.30 ( #3263 )
...
* Bump chrono from 0.4.26 to 0.4.30
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.26 to 0.4.30.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.26...v0.4.30 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Replace deprecated methods
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: jedel1043 <jedel0124@gmail.com>
1 year ago
Iban Eguia Moraza
49f00590a4
Removed time 0.1 dependency, updated dependencies ( #3122 )
1 year ago
José Julián Espina
551a287718
Copy `ABOUT.md` file to all published crates ( #3074 )
2 years ago
José Julián Espina
1e3fe4b4c2
Cache `cargo-tarpaulin` binary ( #3071 )
...
* Cache `cargo-tarpaulin` binary
* Action test
2 years ago
dependabot[bot]
2f35bdf262
Bump wasm-bindgen from 0.2.86 to 0.2.87 ( #3038 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.86 to 0.2.87.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.86...0.2.87 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
45e0b880a4
Bump getrandom from 0.2.9 to 0.2.10 ( #3010 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.9 to 0.2.10.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10 )
---
updated-dependencies:
- dependency-name: getrandom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
scc
64b6d84330
test: add wasm32 target e2e test ( #2989 )
2 years ago
José Julián Espina
65bf54d7e0
Fix WASM playground ( #2992 )
2 years ago
dependabot[bot]
14176a2cee
Bump chrono from 0.4.25 to 0.4.26 ( #2982 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.25 to 0.4.26.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.25...v0.4.26 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
44ef49efa7
Bump chrono from 0.4.24 to 0.4.25 ( #2977 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.24 to 0.4.25.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.24...v0.4.25 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
José Julián Espina
09658b02bc
Implement dynamic imports ( #2932 )
...
* WIP: 76d7eceed6 Implement dynamic imports
* Expand `ActiveRunnable` to missing places
* Fix memory leak
* Fix docs
* Parse `import` as call expression
* Fix regressions
* Fix copypasted doc
* clippy fix
* Adjust ignored features
* Migrate away from `top_level_*` operations
* Fix more module tests
* Fix doc link
2 years ago
José Julián Espina
ab87b2fd5b
Extract "About Boa" section into a separate file ( #2938 )
...
* Extract "About Boa" section into a separate file
* Add newline
* cargo fmt
2 years ago
dependabot[bot]
cafde4dc8b
Bump wasm-bindgen from 0.2.85 to 0.2.86 ( #2934 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.85 to 0.2.86.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.85...0.2.86 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
c827313c93
Bump wasm-bindgen from 0.2.84 to 0.2.85 ( #2923 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.84 to 0.2.85.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.84...0.2.85 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Iban Eguia Moraza
63d9d67ecb
Added a Boa runtime ( #2743 )
...
This Pull Request fixes/closes #718 .
It changes the following:
- Adds a new `boa_runtime` crate, that will only include `console` for now
- Changes the `boa_cli` crate to use the new `boa_runtime` crate for the console, instead of the `console` feature of `boa_engine`
- Removes the `console` feature in `boa_engine`
- Adds a new `boa_testing` helper crate with some useful functions for testing `boa`. This part duplicates the code from `boa_engine`, but I could not make `boa_engine` work with this crate as a dependency due to circular dependencies. Maybe doing it a bit generic could work, but didn't have enough time to check it.
To be checked: wether the WASM example works as expected with the console.
2 years ago
José Julián Espina
53e4825a19
Implement var initializers in for-in loops ( #2842 )
...
This Pull Request implements [Initializers in ForIn Statement Heads](https://tc39.es/ecma262/#sec-initializers-in-forin-statement-heads ) from the Annex B. This also cleans up the "annex-b" feature to be able to disable it with `--no-default-features`, since I couldn't test the error messages when the feature is disabled.
2 years ago
Iban Eguia Moraza
6412b30d5d
Make the `wasmbind` feature of the `chrono` crate optional ( #2810 )
...
This Pull Request fixes/closes #2475 .
It changes the following:
- Do not use the `wasmbind` feature by default in the `chrono` crate. This can be enabled selectively if needed.
- Updated the `boa_wasm` crate to use this new approach.
I'm interested on knowing if this fixes @lastmjs's issue, and on checking with the team if this is the best approach to solve it.
2 years ago
dependabot[bot]
12974ec800
Bump getrandom from 0.2.8 to 0.2.9 ( #2792 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.8 to 0.2.9.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md ">getrandom's changelog</a>.</em></p>
<blockquote>
<h2>[0.2.9] - 2023-04-03</h2>
<h3>Added</h3>
<ul>
<li>AIX support <a href="https://redirect.github.com/rust-random/getrandom/issues/282 ">#282</a></li>
<li><code>getrandom_uninit</code> function <a href="https://redirect.github.com/rust-random/getrandom/issues/291 ">#291</a></li>
<li><code>wasm64-unknown-unknown</code> support <a href="https://redirect.github.com/rust-random/getrandom/issues/303 ">#303</a></li>
<li>tvOS and watchOS support <a href="https://redirect.github.com/rust-random/getrandom/issues/317 ">#317</a></li>
<li>QNX/nto support <a href="https://redirect.github.com/rust-random/getrandom/issues/325 ">#325</a></li>
<li>Support for <code>getrandom</code> syscall on NetBSD ≥ 10.0 <a href="https://redirect.github.com/rust-random/getrandom/issues/331 ">#331</a></li>
<li><code>RtlGenRandom</code> fallback for non-UWP Windows <a href="https://redirect.github.com/rust-random/getrandom/issues/337 ">#337</a></li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li>Update MSRV to 1.36 <a href="https://redirect.github.com/rust-random/getrandom/issues/291 ">#291</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Solaris/OpenBSD/Dragonfly build <a href="https://redirect.github.com/rust-random/getrandom/issues/301 ">#301</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>Update MSRV to 1.36 <a href="https://redirect.github.com/rust-random/getrandom/issues/291 ">#291</a></li>
<li>Use getentropy on Emscripten <a href="https://redirect.github.com/rust-random/getrandom/issues/307 ">#307</a></li>
<li>Solaris: consistantly use <code>/dev/random</code> source <a href="https://redirect.github.com/rust-random/getrandom/issues/310 ">#310</a></li>
<li>Move 3ds selection above rdrand/js/custom fallback <a href="https://redirect.github.com/rust-random/getrandom/issues/312 ">#312</a></li>
<li>Remove buffer zeroing from Node.js implementation <a href="https://redirect.github.com/rust-random/getrandom/issues/315 ">#315</a></li>
<li>Use <code>open</code> instead of <code>open64</code> <a href="https://redirect.github.com/rust-random/getrandom/issues/326 ">#326</a></li>
<li>Remove #cfg from bsd_arandom.rs <a href="https://redirect.github.com/rust-random/getrandom/issues/332 ">#332</a></li>
<li>Hermit: use <code>sys_read_entropy</code> syscall <a href="https://redirect.github.com/rust-random/getrandom/issues/333 ">#333</a></li>
<li>Eliminate potential panic in sys_fill_exact <a href="https://redirect.github.com/rust-random/getrandom/issues/334 ">#334</a></li>
<li>rdrand: Remove checking for 0 and !0 and instead check CPU family and do a self-test <a href="https://redirect.github.com/rust-random/getrandom/issues/335 ">#335</a></li>
<li>Move <code>__getrandom_custom</code> definition into a const block <a href="https://redirect.github.com/rust-random/getrandom/issues/344 ">#344</a></li>
<li>Switch the custom backend to Rust ABI <a href="https://redirect.github.com/rust-random/getrandom/issues/347 ">#347</a></li>
</ul>
<p><a href="https://redirect.github.com/rust-random/getrandom/issues/282 ">#282</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/282 ">rust-random/getrandom#282</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/291 ">#291</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/291 ">rust-random/getrandom#291</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/301 ">#301</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/301 ">rust-random/getrandom#301</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/303 ">#303</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/303 ">rust-random/getrandom#303</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/307 ">#307</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/307 ">rust-random/getrandom#307</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/310 ">#310</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/310 ">rust-random/getrandom#310</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/312 ">#312</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/312 ">rust-random/getrandom#312</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/315 ">#315</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/315 ">rust-random/getrandom#315</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/317 ">#317</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/317 ">rust-random/getrandom#317</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/325 ">#325</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/325 ">rust-random/getrandom#325</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/326 ">#326</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/326 ">rust-random/getrandom#326</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/331 ">#331</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/331 ">rust-random/getrandom#331</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/332 ">#332</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/332 ">rust-random/getrandom#332</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/333 ">#333</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/333 ">rust-random/getrandom#333</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/334 ">#334</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/334 ">rust-random/getrandom#334</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/335 ">#335</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/335 ">rust-random/getrandom#335</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/337 ">#337</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/337 ">rust-random/getrandom#337</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/344 ">#344</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/344 ">rust-random/getrandom#344</a>
<a href="https://redirect.github.com/rust-random/getrandom/issues/347 ">#347</a>: <a href="https://redirect.github.com/rust-random/getrandom/pull/347 ">rust-random/getrandom#347</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="abe7ef3107
"><code>abe7ef3</code></a> Release v0.2.9 (<a href="https://redirect.github.com/rust-random/getrandom/issues/354 ">#354</a>)</li>
<li><a href="03defac1e5
"><code>03defac</code></a> ci: use minimal permissions for Github Actions (<a href="https://redirect.github.com/rust-random/getrandom/issues/351 ">#351</a>)</li>
<li><a href="8eb9c2d5a6
"><code>8eb9c2d</code></a> Merge pull request <a href="https://redirect.github.com/rust-random/getrandom/issues/350 ">#350</a> from rust-random/android</li>
<li><a href="5042b09742
"><code>5042b09</code></a> Update wasm-pack</li>
<li><a href="6cd1a12ef2
"><code>6cd1a12</code></a> Disable cross build/tests on Android</li>
<li><a href="41cc07a099
"><code>41cc07a</code></a> Switch the custom backend to Rust ABI (<a href="https://redirect.github.com/rust-random/getrandom/issues/347 ">#347</a>)</li>
<li><a href="2f9989fba1
"><code>2f9989f</code></a> Move __getrandom_custom definition into a const block (<a href="https://redirect.github.com/rust-random/getrandom/issues/344 ">#344</a>)</li>
<li><a href="75252bca49
"><code>75252bc</code></a> ci: Fix the fuchsia tests (<a href="https://redirect.github.com/rust-random/getrandom/issues/343 ">#343</a>)</li>
<li><a href="41b89814e3
"><code>41b8981</code></a> Allow Edge tests to fail (<a href="https://redirect.github.com/rust-random/getrandom/issues/339 ">#339</a>)</li>
<li><a href="74a2021ee1
"><code>74a2021</code></a> ci: Don't use rust-cache for Cross Build/Link (<a href="https://redirect.github.com/rust-random/getrandom/issues/338 ">#338</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rust-random/getrandom/compare/v0.2.8...v0.2.9 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=getrandom&package-manager=cargo&previous-version=0.2.8&new-version=0.2.9 )](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)
</details>
2 years ago
José Julián Espina
0babe195fb
Implement `escape` and `unescape` ( #2768 )
...
<!---
Thank you for contributing to Boa! Please fill out the template below, and remove or add any
information as you feel necessary.
--->
This Pull Request implements the [`escape`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape ) and [`unescape`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape ) functions.
Both are technically deprecated, but they're also part of the [Additional ECMAScript Features for Web Browsers](https://tc39.es/ecma262/#sec-additional-ecmascript-features-for-web-browsers ) section, so it is preferable to have them in place.
2 years ago
Iban Eguia Moraza
3f9f6f0fce
Module parsing ( #2411 )
...
I'm creating this draft PR, since I wanted to have some early feedback, and because I though I would have time to finish it last week, but I got caught up with other stuff. Feel free to contribute :)
The main thing here is that I have divided `eval()`, `parse()` and similar functions so that they can decide if they are parsing scripts or modules. Let me know your thoughts.
Then, I was checking the import & export parsing, and I noticed we are using `TokenKind::Identifier` for `IdentifierName`, so I changed that name. An `Identifier` is an `IdentifierName` that isn't a `ReservedWord`. This means we should probably also adapt all `IdentifierReference`, `BindingIdentifier` and so on parsing. I already created an `Identifier` parser.
Something interesting there is that `await` is not a valid `Identifier` if the goal symbol is `Module`, as you can see in the [spec](https://tc39.es/ecma262/#prod-LabelIdentifier ), but currently we don't have that information in the `InputElement` enumeration, we only have `Div`, `RegExp` and `TemplateTail`. How could we approach this?
Co-authored-by: jedel1043 <jedel0124@gmail.com>
2 years ago
dependabot[bot]
845a7f468d
Bump wasm-bindgen from 0.2.83 to 0.2.84 ( #2585 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.83 to 0.2.84.
<details>
<summary>Commits</summary>
<ul>
<li><a href="cea8cc3d29
"><code>cea8cc3</code></a> Bump to 0.2.84 (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3274 ">#3274</a>)</li>
<li><a href="995adac992
"><code>995adac</code></a> Remove explicit allocator (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3273 ">#3273</a>)</li>
<li><a href="1f3c76bca6
"><code>1f3c76b</code></a> fix: Make maplike <code>set</code> and setlike <code>add</code> return <code>this</code>, not <code>undefined</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3270 ">#3270</a>)</li>
<li><a href="e1b44b7570
"><code>e1b44b7</code></a> Add support for linked modules (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3069 ">#3069</a>)</li>
<li><a href="d6964278b5
"><code>d696427</code></a> Implement <code>ImageBitmapOptions</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3269 ">#3269</a>)</li>
<li><a href="8fc0e2b085
"><code>8fc0e2b</code></a> Add support for setlike interfaces (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3268 ">#3268</a>)</li>
<li><a href="5fff0a9846
"><code>5fff0a9</code></a> Add WebGL extension type for 16-bit normalized formats (EXT_texture_norm16) (...</li>
<li><a href="79cbace568
"><code>79cbace</code></a> Fix typos in futures/src/stream.rs documentation (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3264 ">#3264</a>)</li>
<li><a href="a4788cac0f
"><code>a4788ca</code></a> Lazily initialize memory views (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3253 ">#3253</a>)</li>
<li><a href="979b335e4e
"><code>979b335</code></a> Add <code>js_sys::Array::set_length</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3246 ">#3246</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.83...0.2.84 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasm-bindgen&package-manager=cargo&previous-version=0.2.83&new-version=0.2.84 )](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)
</details>
2 years ago
José Julián Espina
515d28f0a2
Create `Source` to abstract JS code sources ( #2579 )
...
Slightly related to #2411 since we need an API to pass module files, but more useful for #1760 , #1313 and other error reporting issues.
It changes the following:
- Introduces a new `Source` API to store the path of a provided file or `None` if the source is a plain string.
- Improves the display of `boa_tester` to show the path of the tests being run. This also enables hyperlinks to directly jump to the tested file from the VS terminal.
- Adjusts the repo to this change.
Hopefully, this will improve our error display in the future.
2 years ago
raskad
a5e8111fa2
Restructure lints in multiple crates ( #2447 )
...
This Pull Request restructures the lint deny/warn/allow lists in almost all crates. `boa_engine` will be done in a follow up PR as the changes there are pretty extensive.
2 years ago
José Julián Espina
91235c77fe
Rewrite some patterns with let-else and ok_or_else ( #2404 )
...
This Pull Request updates the codebase to the newest version of rustc (1.65.0).
It changes the following:
- Bumps `rust-version` to 1.65.0.
- Rewrites some snippets to use the new let else, ok_or_else and some other utils.
- Removes the `rustdoc::missing_doc_code_examples` allow lint from our codebase. (Context: https://github.com/rust-lang/rust/pull/101732 )
2 years ago
dependabot[bot]
f6e189e628
Bump getrandom from 0.2.7 to 0.2.8 ( #2359 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.7 to 0.2.8.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md ">getrandom's changelog</a>.</em></p>
<blockquote>
<h2>[0.2.8] - 2022-10-20</h2>
<h3>Changed</h3>
<ul>
<li>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API ">Web Cryptography API</a> will now be preferred on <code>wasm32-unknown-unknown</code>
when using the <code>"js"</code> feature, even on Node.js <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284 ">#284</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295 ">#295</a></li>
</ul>
<h3>Added</h3>
<ul>
<li>Added benchmarks to track buffer initialization cost <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/272 ">#272</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Use <code>$crate</code> in <code>register_custom_getrandom!</code> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/270 ">#270</a></li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Add information about enabling <code>"js"</code> feature <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280 ">#280</a></li>
<li>Fix link to <code>wasm-bindgen</code> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278 ">#278</a></li>
<li>Document the varied implementations for underlying randomness sources <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/276 ">#276</a></li>
</ul>
<p><a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284 ">#284</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/284 ">rust-random/getrandom#284</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295 ">#295</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/295 ">rust-random/getrandom#295</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/272 ">#272</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/272 ">rust-random/getrandom#272</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/270 ">#270</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/270 ">rust-random/getrandom#270</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280 ">#280</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/280 ">rust-random/getrandom#280</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278 ">#278</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/278 ">rust-random/getrandom#278</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/276 ">#276</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/276 ">rust-random/getrandom#276</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5c1bb00b74
"><code>5c1bb00</code></a> Release v0.2.8 (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/294 ">#294</a>)</li>
<li><a href="353d0ca157
"><code>353d0ca</code></a> Update docs for wasm32-unknown-unknown implementation (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/295 ">#295</a>)</li>
<li><a href="cfdad53dce
"><code>cfdad53</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/284 ">#284</a> from rust-random/webcrypto</li>
<li><a href="9962c706c9
"><code>9962c70</code></a> Update Module::require internal comments</li>
<li><a href="e0c93b10d5
"><code>e0c93b1</code></a> Catch call to module.require</li>
<li><a href="0503000381
"><code>0503000</code></a> Fix link typo</li>
<li><a href="0579fe3014
"><code>0579fe3</code></a> Update documentation and error messages</li>
<li><a href="d69e8e003b
"><code>d69e8e0</code></a> Rework JS feature detection</li>
<li><a href="d3aa089bbd
"><code>d3aa089</code></a> Add description about Cargo js feature for WebAssembly section (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/280 ">#280</a>)</li>
<li><a href="0b71d50b49
"><code>0b71d50</code></a> Fix link to wasm-bindgen (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/278 ">#278</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rust-random/getrandom/compare/v0.2.7...v0.2.8 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=getrandom&package-manager=cargo&previous-version=0.2.7&new-version=0.2.8 )](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)
</details>
2 years ago
José Julián Espina
dc9c1cb275
Create new lazy Error type ( #2283 )
...
This is an experiment that tries to migrate the codebase from eager `Error` objects to lazy ones.
In short words, this redefines `JsResult = Result<JsValue, JsError>`, where `JsError` is a brand new type that stores only the essential part of an error type, and only transforms those errors to `JsObject`s on demand (when having to pass them as arguments to functions or store them inside async/generators).
This change is pretty big, because it unblocks a LOT of code from having to take a `&mut Context` on each call. It also paves the road for possibly making `JsError` a proper variant of `JsValue`, which can be a pretty big optimization for try/catch.
A downside of this is that it exposes some brand new error types to our public API. However, we can now implement `Error` on `JsError`, making our `JsResult` type a bit more inline with Rust's best practices.
~Will mark this as draft, since it's missing some documentation and a lot of examples, but~ it's pretty much feature complete. As always, any comments about the design are very much appreciated!
Note: Since there are a lot of changes which are essentially just rewriting `context.throw` to `JsNativeError::%type%`, I'll leave an "index" of the most important changes here:
- [boa_engine/src/error.rs](https://github.com/boa-dev/boa/pull/2283/files#diff-f15f2715655440626eefda5c46193d29856f4949ad37380c129a8debc6b82f26 )
- [boa_engine/src/builtins/error/mod.rs](https://github.com/boa-dev/boa/pull/2283/files#diff-3eb1e4b4b5c7210eb98192a5277f5a239148423c6b970c4ae05d1b267f8f1084 )
- [boa_tester/src/exec/mod.rs](https://github.com/boa-dev/boa/pull/2283/files#diff-fc3d7ad7b5e64574258c9febbe56171f3309b74e0c8da35238a76002f3ee34d9 )
2 years ago
José Julián Espina
e9e85f5a49
Switch to workspace inherited properties ( #2297 )
...
This Pull Request switches our codebase to the brand new [workspace inherited keys](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-package-table ), which allows us to define common package options that are usable within each crate's Cargo.toml file.
It also allows to share dependency versions between crates, but I defined only shared versions for our workspace members. It would be a good follow-up to lift all the shared dependencies between crates into the global Cargo.toml.
2 years ago
Iban Eguia
f5be60975b
Updated dependencies for 0.16 release ( #2300 )
...
This Pull Request updates the dependencies for the 0.16 release.
Co-authored-by: José Julián Espina <jedel0124@gmail.com>
2 years ago
dependabot[bot]
1d5ec2555e
Bump wasm-bindgen from 0.2.82 to 0.2.83 ( #2280 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.82 to 0.2.83.
<details>
<summary>Commits</summary>
<ul>
<li><a href="eba691f38c
"><code>eba691f</code></a> Bumped crate versions (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3079 ">#3079</a>)</li>
<li><a href="893812fa05
"><code>893812f</code></a> web-sys: include VideoFrame in texImage* functions (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3077 ">#3077</a>)</li>
<li><a href="eac9722f99
"><code>eac9722</code></a> Export <code>initSync</code> for no-module builds (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3075 ">#3075</a>)</li>
<li><a href="595b04b24a
"><code>595b04b</code></a> Trigger warnings for unused wasm-bindgen attributes (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3073 ">#3073</a>)</li>
<li><a href="f82f5c5852
"><code>f82f5c5</code></a> Refactor: normalized encoding of ImportModule (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3068 ">#3068</a>)</li>
<li><a href="edc5adf436
"><code>edc5adf</code></a> Put FontFace constructor to Immutable slice whitelist (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3072 ">#3072</a>)</li>
<li><a href="5c28993bec
"><code>5c28993</code></a> Update WebGPU's webidl (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3067 ">#3067</a>)</li>
<li><a href="e47dda5c86
"><code>e47dda5</code></a> web-sys: Added Streams API (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3065 ">#3065</a>)</li>
<li><a href="699e78811e
"><code>699e788</code></a> Revert "web-sys: Added full Streams WebIDL (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3046 ">#3046</a>)" (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3064 ">#3064</a>)</li>
<li><a href="cb94b43596
"><code>cb94b43</code></a> Add <code>TryFrom\<JsValue></code> for <code>[iu](64|128)</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3058 ">#3058</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.82...0.2.83 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasm-bindgen&package-manager=cargo&previous-version=0.2.82&new-version=0.2.83 )](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)
</details>
2 years ago
dependabot[bot]
4235c15e8e
Bump wasm-bindgen from 0.2.81 to 0.2.82 ( #2204 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.81 to 0.2.82.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md ">wasm-bindgen's changelog</a>.</em></p>
<blockquote>
<h1><code>wasm-bindgen</code> Change Log</h1>
<hr />
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="59883eaca6
"><code>59883ea</code></a> Bump to 0.2.82 (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3002 ">#3002</a>)</li>
<li><a href="a8e934df82
"><code>a8e934d</code></a> Added inspectable generation to .d.ts file (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3000 ">#3000</a>) (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/3001 ">#3001</a>)</li>
<li><a href="1790a28f77
"><code>1790a28</code></a> Add a bit more detail about how non-primitive types are represented in FFI (#...</li>
<li><a href="0aa23f0897
"><code>0aa23f0</code></a> Don't attempt to update rustup in CI (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2998 ">#2998</a>)</li>
<li><a href="1bb1ab1ea1
"><code>1bb1ab1</code></a> Remove obsolete documentation about Stack. (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2997 ">#2997</a>)</li>
<li><a href="e322e6fb8b
"><code>e322e6f</code></a> Use <code>Closure::new</code> in examples (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2991 ">#2991</a>)</li>
<li><a href="9a7732f7a7
"><code>9a7732f</code></a> Add support for exporting static getters and setters (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2986 ">#2986</a>)</li>
<li><a href="9fafcf3cfa
"><code>9fafcf3</code></a> Don't copy doc comments on imported functions to generated <code>extern</code> blocks (#...</li>
<li><a href="bc95e13485
"><code>bc95e13</code></a> chore(guide): fix entry to raytracing example (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2988 ">#2988</a>)</li>
<li><a href="4e72af28a0
"><code>4e72af2</code></a> Respect <code>#[wasm_bindgen(skip_typescript)]</code> on structs (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2985 ">#2985</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.81...0.2.82 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasm-bindgen&package-manager=cargo&previous-version=0.2.81&new-version=0.2.82 )](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)
</details>
2 years ago
dependabot[bot]
7f6d44ea01
Bump wasm-bindgen from 0.2.80 to 0.2.81 ( #2123 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.80 to 0.2.81.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md ">wasm-bindgen's changelog</a>.</em></p>
<blockquote>
<h2>0.2.81</h2>
<p>Released 2022-06-14.</p>
<p><a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.80...0.2.81 ">changes</a></p>
<hr />
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="062aa5f70a
"><code>062aa5f</code></a> Bump to 0.2.81 (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2935 ">#2935</a>)</li>
<li><a href="ed58b791e7
"><code>ed58b79</code></a> fix(guide): missing ] (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2933 ">#2933</a>)</li>
<li><a href="3822e67149
"><code>3822e67</code></a> Expose helpers to allow synchronous initialization (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2924 ">#2924</a>)</li>
<li><a href="b7b4ef3fd4
"><code>b7b4ef3</code></a> Add mediasession api (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2926 ">#2926</a>)</li>
<li><a href="0c7126c9c3
"><code>0c7126c</code></a> Use <code>bigint</code> instead of <code>BigInt</code> in generated TypeScript (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2925 ">#2925</a>)</li>
<li><a href="a81983b884
"><code>a81983b</code></a> add SubmitEvent to web_sys Event types (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2922 ">#2922</a>)</li>
<li><a href="cbcf3e78ac
"><code>cbcf3e7</code></a> feat(cli-support): <code>Bindgen</code> - support providing bytes input (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2916 ">#2916</a>)</li>
<li><a href="96eca588e6
"><code>96eca58</code></a> fix(typescript) Getters correctly define the inner results. (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2909 ">#2909</a>)</li>
<li><a href="6ec0ce1b3f
"><code>6ec0ce1</code></a> test(ci) Remove duplicate actions. (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2918 ">#2918</a>)</li>
<li><a href="be961acaca
"><code>be961ac</code></a> feat(cli-support): expose more properties on <code>Output</code> (<a href="https://github-redirect.dependabot.com/rustwasm/wasm-bindgen/issues/2913 ">#2913</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rustwasm/wasm-bindgen/compare/0.2.80...0.2.81 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=wasm-bindgen&package-manager=cargo&previous-version=0.2.80&new-version=0.2.81 )](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)
</details>
3 years ago
dependabot[bot]
31edb264d0
Bump getrandom from 0.2.6 to 0.2.7 ( #2121 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.6 to 0.2.7.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md ">getrandom's changelog</a>.</em></p>
<blockquote>
<h2>[0.2.7] - 2022-06-14</h2>
<h3>Changed</h3>
<ul>
<li>Update <code>wasi</code> dependency to <code>0.11</code> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/253 ">#253</a></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Use <code>AtomicPtr</code> instead of <code>AtomicUsize</code> for Strict Provenance compatibility. <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/263 ">#263</a></li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Add comments explaining use of fallback mechanisms <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/257 ">#257</a> <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/260 ">#260</a></li>
</ul>
<p><a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/263 ">#263</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/263 ">rust-random/getrandom#263</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/260 ">#260</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/260 ">rust-random/getrandom#260</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/253 ">#253</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/253 ">rust-random/getrandom#253</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/257 ">#257</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/257 ">rust-random/getrandom#257</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="63f861c684
"><code>63f861c</code></a> Release v0.2.7 (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/264 ">#264</a>)</li>
<li><a href="c82a522713
"><code>c82a522</code></a> Use AtomicPtr instead of AtomicUsize for Weak (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/263 ">#263</a>)</li>
<li><a href="9e2c896e65
"><code>9e2c896</code></a> bsd_arandom: fix typo in comment (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/260 ">#260</a>)</li>
<li><a href="2d65a40cc5
"><code>2d65a40</code></a> Update to wasi 0.11 (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/253 ">#253</a>)</li>
<li><a href="4882ac8a4c
"><code>4882ac8</code></a> Add notes when various functions were added (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/257 ">#257</a>)</li>
<li>See full diff in <a href="https://github.com/rust-random/getrandom/compare/v0.2.6...v0.2.7 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=getrandom&package-manager=cargo&previous-version=0.2.6&new-version=0.2.7 )](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)
</details>
3 years ago
Iban Eguia
1dbd31e2b7
Added changelog, updated dependencies, bumped version number for 0.15 ( #2102 )
...
This Pull Request bumps the version number to 0.15, adds the changelog for this new versions and updates all dependencies to the latest versions.
3 years ago
jedel1043
518bad8109
Integrate ICU4X into `Intl` module ( #2083 )
...
<!---
Thank you for contributing to Boa! Please fill out the template below, and remove or add any
information as you feel neccesary.
--->
This Pull Request integrates an `ICU4X` data provider API in our codebase, to make use of the internationalization APIs that this crate provides.
It changes the following:
- Creates an API for pluggable icu data providers at `Context` creation, adding an `Icu` struct to store the provider (and some other internationalization tools) at runtime.
- Slightly changes locale related functions to preserve the `Locale` type and ensure correctness. (Will make some other changes related to this).
- Integrates the `sys_locale` crate to fetch the current default locale of an user instead of always returning `en-US`.
3 years ago
Jason Williams
01bd50fa72
cargo workspaces fixes #2001 ( #2026 )
...
This adds cargo-workspaces to our repo for easier publishing.
(I think we may need to do a dry run of this first to test)
fixes https://github.com/boa-dev/boa/issues/2001
3 years ago
Iban Eguia
8d746ecc0b
Upgraded wasm-bindgen ( #2020 )
...
This Pull Request supersedes #2018 and #2017 .
It changes the following:
- Updates the wasm-bindgen dependency now that a new version without the clippy bug has been released
- Updates all dependencies to their latest versions
3 years ago
dependabot[bot]
c23d32b977
Bump getrandom from 0.2.5 to 0.2.6 ( #1986 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.5 to 0.2.6.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md ">getrandom's changelog</a>.</em></p>
<blockquote>
<h2>[0.2.6] - 2022-03-28</h2>
<h3>Added</h3>
<ul>
<li>Nintendo 3DS (<code>armv6k-nintendo-3ds</code>) support <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/248 ">#248</a></li>
</ul>
<h3>Changed</h3>
<ul>
<li>Retry <code>open</code> when interrupted <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/252 ">#252</a></li>
</ul>
<p><a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/248 ">#248</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/248 ">rust-random/getrandom#248</a>
<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/252 ">#252</a>: <a href="https://github-redirect.dependabot.com/rust-random/getrandom/pull/252 ">rust-random/getrandom#252</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="fcece06dd5
"><code>fcece06</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/255 ">#255</a> from rust-random/release/v0.2.6</li>
<li><a href="0830ba66be
"><code>0830ba6</code></a> Disable Solaris CI job</li>
<li><a href="2630158149
"><code>2630158</code></a> Release v0.2.6</li>
<li><a href="fcae1d2626
"><code>fcae1d2</code></a> libc: retry open when interrupted (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/252 ">#252</a>)</li>
<li><a href="d40ec2c7e4
"><code>d40ec2c</code></a> Add support for the Nintendo 3DS (armv6k-nintendo-3ds) (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/248 ">#248</a>)</li>
<li><a href="157d6f23dc
"><code>157d6f2</code></a> Fix v0.2.5 release date (<a href="https://github-redirect.dependabot.com/rust-random/getrandom/issues/250 ">#250</a>)</li>
<li>See full diff in <a href="https://github.com/rust-random/getrandom/compare/v0.2.5...v0.2.6 ">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=getrandom&package-manager=cargo&previous-version=0.2.5&new-version=0.2.6 )](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)
</details>
3 years ago
jedel1043
f25ce46a1e
Migrate to NPM and cleanup Playground ( #1951 )
...
This Pull Request closes #1912 by migrating to a NPM based build, hopefully making it easier to contribute to the Playground.
Also, reduces the number of features of the editor, since most of them were support for other languages or features that don't make sense in a playground environment. This considerably reduces the number of fetched files per page load and the total size of the playground.
3 years ago
Aaron Ross
520b81ea66
add README for crates.io publish ( #1952 )
...
This Pull Request closes #1948 .
It changes the following:
- set `readme` in `boa_engine` so `README.md` will be published to crates.io
- remove unnecessary `exclude` field from `Cargo.toml` in all apps
I was unsure whether using a path outside of the workspace root was allowed for `readme` since it [doesn't get included in the release tarball](https://github.com/rust-lang/cargo/issues/5911 ), but this exact path is used by [juniper](https://github.com/graphql-rust/juniper/blob/master/juniper/Cargo.toml#L13 ) and [seems to work there](https://crates.io/crates/juniper ). I believe `cargo publish` does a bit more than just uploading the tarball, including pulling the `readme` from any arbitrary path.
The default behaviour of `cargo package`/`cargo publish` if neither `exclude` or `include` is specified is to include all files from the package root, excluding
- dotfiles
- .gitignore'd files
- subpackages (any subdirectory with a `Cargo.toml` file)
- the `/target` directory
There's no need to explicitly exclude files from the parent directory since they're already excluded by default. This can be verified by running `cargo package --list` inside any workspace app:
```plain
$ cd boa_wasm
$ cargo package --list
.gitignore
Cargo.toml
Cargo.toml.orig
src/lib.rs
```
You can read more [here](https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields ).
3 years ago
jasonwilliams
16f3a0bd29
give everything a version
3 years ago
Jason Williams
be901735e5
generated changelog for 0.14 ( #1882 )
...
Co-authored-by: João Borges <rageknify@gmail.com>
3 years ago