mirror of https://github.com/boa-dev/boa.git
Tree:
68c59ea70a
add-vhs-ci
benchmarks
control-flow-graph
expect-lints
feature/node_span
feature/snapshot
features
gh-readonly-queue/main/pr-2877-b0ddf5eed00a53281d67fc7d846233fc0d99ce9c
gh-readonly-queue/main/pr-3144-8e48cec73fae708420b9af88813d4870243c491a
main
nan-boxing
optimization/static-shapes
real_conformance
reduce-environment-allocations
refactor/interner
refactor/register-vm
releases/0.17
releases/0.19
semver_checks
tco
utility-crate
wasm-debugger
nightly
v0.10
v0.11
v0.12
v0.13
v0.14
v0.15
v0.16
v0.17
v0.17.1
v0.17.2
v0.17.3
v0.18
v0.19
v0.19.1
v0.2.0
v0.2.1
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.7.0
v0.8.0
v0.9.0
${ noResults }
920 Commits (68c59ea70a9ae81b3148a46594cc6da47bda7682)
Author | SHA1 | Message | Date |
---|---|---|---|
dependabot[bot] |
43d4324bcb
|
Bump clap from 4.2.7 to 4.3.0 (#2953)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.7 to 4.3.0. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.2.7...clap_complete-v4.3.0) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ... 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] |
4639a41751
|
Bump toml from 0.7.3 to 0.7.4 (#2949)
Bumps [toml](https://github.com/toml-rs/toml) from 0.7.3 to 0.7.4. - [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.3...toml-v0.7.4) --- updated-dependencies: - dependency-name: toml 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] |
a0b769d5b1
|
Bump bitflags from 2.2.1 to 2.3.1 (#2945)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.2.1 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/2.2.1...2.3.1) --- updated-dependencies: - dependency-name: bitflags dependency-type: direct:production update-type: version-update:semver-minor ... 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] |
fcc3e5ccba
|
Bump proc-macro2 from 1.0.57 to 1.0.58 (#2944)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.57 to 1.0.58. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.57...1.0.58) --- updated-dependencies: - dependency-name: proc-macro2 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 |
06161edcbd
|
Implement module execution (#2922)
* Implement draft of module execution * Fix recursion bug * Re-enable JsObject's debug printing * Modify API and document some methods * Add missing documentation * Add newline to module scripts * npx prettier * Apply reviews * Add reference to parent struct on source module * Document more steps on the example * cargo clippy * Revert `BoaGc` changes * Lower `GcRefCell` to `Inner` of `SourceTextModule` * Replace weak ref to module with strong ref * Apply review * Clarify reasoning of manual `Trace` impl * Apply review pt. 2 * Revert gc changes |
2 years ago |
dependabot[bot] |
eb37614d70
|
Bump proc-macro2 from 1.0.56 to 1.0.57 (#2935)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.56 to 1.0.57. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.56...1.0.57) --- updated-dependencies: - dependency-name: proc-macro2 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] |
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] |
d13979dea6
|
Bump syn from 2.0.15 to 2.0.16 (#2930)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.15 to 2.0.16. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/2.0.15...2.0.16) --- updated-dependencies: - dependency-name: syn 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] |
ba7d2163cc
|
Bump serde from 1.0.162 to 1.0.163 (#2927)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.162 to 1.0.163. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163) --- updated-dependencies: - dependency-name: serde 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 |
dependabot[bot] |
cb9e1ef810
|
Bump quote from 1.0.26 to 1.0.27 (#2920)
Bumps [quote](https://github.com/dtolnay/quote) from 1.0.26 to 1.0.27. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.26...1.0.27) --- updated-dependencies: - dependency-name: quote 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] |
f4ebb2bd2d
|
Bump serde from 1.0.160 to 1.0.162 (#2900)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.160 to 1.0.162. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162) --- updated-dependencies: - dependency-name: serde 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] |
c0daf11141
|
Bump clap from 4.2.5 to 4.2.7 (#2896)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.5 to 4.2.7. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.2.5...v4.2.7) --- updated-dependencies: - dependency-name: clap 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] | f6c1d6360e |
Bump regress from 0.5.0 to 0.6.0 (#2888)
Bumps [regress](https://github.com/ridiculousfish/regress) from 0.5.0 to 0.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ridiculousfish/regress/releases">regress's releases</a>.</em></p> <blockquote> <h2>v0.6.0</h2> <p>Version 0.6.0 of regress, REGex in Rust with EmcaScript Syntax.</p> <ul> <li>Unpaired surrogates are now properly handled in accordance with the EcmaScript spec (<a href="https://github.com/jedel1043"><code>@jedel1043</code></a> in <a href="https://redirect.github.com/ridiculousfish/regress/pull/60">ridiculousfish/regress#60</a>)</li> <li>Invalid ranges like <code>[a-\s]</code> are now permitted in non-Unicode mode, in accordance with Annex B of EcmaScript spec (<a href="https://github.com/HalidOdat"><code>@HalidOdat</code></a> in <a href="https://redirect.github.com/ridiculousfish/regress/pull/62">ridiculousfish/regress#62</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 04ddeeb3b3 |
Bump clap from 4.2.4 to 4.2.5 (#2879)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.4 to 4.2.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.5</h2> <h2>[4.2.5] - 2023-04-27</h2> <h3>Fixes</h3> <ul> <li>Improve panic when a group requires a non-existent ID</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.5] - 2023-04-27</h2> <h3>Fixes</h3> <ul> <li>Improve panic when a group requires a non-existent ID</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | d317b699a5 |
Bump icu_datagen from 1.2.4 to 1.2.5 (#2873)
Bumps [icu_datagen](https://github.com/unicode-org/icu4x) from 1.2.4 to 1.2.5. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md">icu_datagen's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>icu4x 1.2.x (Apr 17, 2023)</h2> <p>Note: A subset of crates received patch releases in the 1.2 stream.</p> <ul> <li><code>databake</code>: 0.1.5 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3356">#3356</a>, adding <code>allow</code> for clippy false-positives</li> </ul> </li> <li><code>icu_capi</code> 1.2.1 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3344">#3344</a>, <code>buffer_provider</code> feature accidentally pulling in extra crates</li> </ul> </li> <li><code>icu_datagen</code> 1.2.1 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3339">#3339</a>, incorrect Cargo features</li> </ul> </li> <li><code>icu_datagen</code> 1.2.3 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3355">#3355</a>, adding MSRV annotations to generated code</li> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3369">#3369</a>, making datagen call <code>rustfmt</code> directly instead of using the <code>rust-format</code> dependency</li> </ul> </li> <li><code>icu_datagen</code> 1.2.4 <ul> <li>Remove dependency on <code>clap</code>'s <code>"cargo"</code> feature to better support non-Cargo users (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3388">#3388</a>)</li> </ul> </li> <li><code>icu_datagen</code> 1.2.5 <ul> <li>Remove runtime dependency on segmenter data pulled from the cargo cache (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3391">#3391</a>)</li> </ul> </li> <li><code>icu_locid_transform</code> 1.2.1 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/issues/3332">#3332</a>, missing <code>+?Sized</code> bound</li> </ul> </li> <li><code>icu_segmenter</code> 1.2.1 <ul> <li>Fixed <a href="https://redirect.github.com/unicode-org/icu4x/pull/3341">#3341</a>, incorrect results on some strings with mixed scripts</li> </ul> </li> <li><code>icu_provider</code> 1.2.1 <ul> <li>Do not autoenable <code>postcard/use-std</code> (<a href="https://redirect.github.com/unicode-org/icu4x/pull/3376">#3376</a>)</li> </ul> </li> <li><code>icu_datetime</code> 1.2.1 <ul> <li>Remove superfluous <code>JapaneseEraV1</code> provider bounds on <code>TypedZonedDateTimeFormatter</code> <a href="https://redirect.github.com/unicode-org/icu4x/pull/3379">#3379</a></li> </ul> </li> </ul> <h2>icu4x 1.2 (Apr 13, 2023)</h2> <ul> <li>General <ul> <li>All updated crates: <ul> <li>Add missing <code>Debug</code> impls (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3206">#3206</a>)</li> <li>Update Rust edition to 2021 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3075">#3075</a>)</li> <li>Internal clippy fixes</li> <li>Unless otherwise specified, all crate updates are to version 1.2.</li> <li>Out-of-cycle releases do not get their own changelog entries, so some entries may span multiple patch or pre-1.0 minor versions.</li> </ul> </li> </ul> </li> <li>Data model and providers <ul> <li><code>icu_provider</code>: <ul> <li>Add support for silencing expected <code>DataError</code>s (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3262">#3262</a>)</li> <li>Removing <code>dhat</code> dependency (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3138">#3138</a>)</li> <li>Make trait <code>DataMarker: 'static</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3137">#3137</a>)</li> </ul> </li> <li><code>icu_datagen</code>: (includes patch updates 1.1.1 and 1.1.2) <ul> <li>(lib) Add <code>Out::Baked</code> and <code>BakedOptions</code>; deprecate <code>Out::Module</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3130">#3130</a>)</li> <li>(cli) Bump clap to 4.0, move to using derive (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3149">#3149</a>)</li> <li>Pare down datagen deps (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3160">#3160</a>)</li> <li>Support changes from CLDR 43 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3182">#3182</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3201">#3201</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3204">#3204</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3205">#3205</a>)</li> <li>Add support for complemented range iterators (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3198">#3198</a>)</li> <li>Using byte string literals in databake (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3040">#3040</a>)\</li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 33bab64804 |
Bump icu_datagen from 1.2.3 to 1.2.4 (#2871)
Bumps [icu_datagen](https://github.com/unicode-org/icu4x) from 1.2.3 to 1.2.4. <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | c330005912 |
Implement `is_identifier_(start/part)` using `icu_properties` (#2865)
As mentioned in https://github.com/boa-dev/boa/pull/2848#issuecomment-1518909512, this uses our new default ICU4X data to replace `char::is_start` and `char::is_continue` from the `boa_unicode` crate with the [`icu_properties`](https://crates.io/crates/icu_properties) crate. Note that this doesn't deprecate `boa_unicode` yet, since that'll require some discussion about how to proceed with a now unused sub-crate. |
2 years ago |
dependabot[bot] | cebec9da90 |
Bump bitflags from 2.1.0 to 2.2.1 (#2868)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.1.0 to 2.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases">bitflags's releases</a>.</em></p> <blockquote> <h2>2.2.1</h2> <h2>What's Changed</h2> <ul> <li>Refactor attribute filtering to apply per-flag by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/345">bitflags/bitflags#345</a></li> <li>Prepare for 2.2.1 release by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/346">bitflags/bitflags#346</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1">https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1</a></p> <h2>2.2.0 (yanked)</h2> <h2>What's Changed</h2> <ul> <li>Create SECURITY.md by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338">bitflags/bitflags#338</a></li> <li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> <li>Add support for bytemuck by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336">bitflags/bitflags#336</a></li> <li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341">bitflags/bitflags#341</a></li> <li>Prepare for 2.2.0 release by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/342">bitflags/bitflags#342</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md">bitflags's changelog</a>.</em></p> <blockquote> <h1>2.2.1</h1> <h2>What's Changed</h2> <ul> <li>Refactor attribute filtering to apply per-flag by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/345">bitflags/bitflags#345</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1">https://github.com/bitflags/bitflags/compare/2.2.0...2.2.1</a></p> <h1>2.2.0</h1> <h2>What's Changed</h2> <ul> <li>Create SECURITY.md by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338">bitflags/bitflags#338</a></li> <li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> <li>Add support for bytemuck by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336">bitflags/bitflags#336</a></li> <li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341">bitflags/bitflags#341</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
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 | 739bd5a9cb |
Optimize `String.prototype.normalize` (#2848)
We currently use `unicode_normalization` to handle the `String.prototype.normalize` method. However, the crate doesn't support UTF-16 as a first class string, so we had to do some hacks by converting the valid parts of a string to UTF-8, normalizing each one, encoding back to UTF-16 and concatenating everything with the unpaired surrogates within. All of this is obviously suboptimal for performance, which is why I leveraged the `icu_normalizer`, which does support UTF-16 input, to replace our current implementation. Additionally, this allows users to override the default normalization data if the `intl` feature is enabled by providing the required data in the `BoaProvider` data provider. |
2 years ago |
dependabot[bot] | 3db79f61a6 |
Bump regex from 1.7.3 to 1.8.0 (#2855)
Bumps [regex](https://github.com/rust-lang/regex) from 1.7.3 to 1.8.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/regex/blob/master/CHANGELOG.md">regex's changelog</a>.</em></p> <blockquote> <h1>1.8.0 (2023-04-20)</h1> <p>This is a sizeable release that will be soon followed by another sizeable release. Both of them will combined close over 40 existing issues and PRs.</p> <p>This first release, despite its size, essentially represent preparatory work for the second release, which will be even bigger. Namely, this release:</p> <ul> <li>Increases the MSRV to Rust 1.60.0, which was released about 1 year ago.</li> <li>Upgrades its dependency on <code>aho-corasick</code> to the recently release 1.0 version.</li> <li>Upgrades its dependency on <code>regex-syntax</code> to the simultaneously released <code>0.7</code> version. The changes to <code>regex-syntax</code> principally revolve around a rewrite of its literal extraction code and a number of simplifications and optimizations to its high-level intermediate representation (HIR).</li> </ul> <p>The second release, which will follow ~shortly after the release above, will contain a soup-to-nuts rewrite of every regex engine. This will be done by bringing <a href="https://github.com/BurntSushi/regex-automata"><code>regex-automata</code></a> into this repository, and then changing the <code>regex</code> crate to be nothing but an API shim layer on top of <code>regex-automata</code>'s API.</p> <p>These tandem releases are the culmination of about 3 years of on-and-off work that <a href="https://redirect.github.com/rust-lang/regex/issues/656">began in earnest in March 2020</a>.</p> <p>Because of the scale of changes involved in these releases, I would love to hear about your experience. Especially if you notice undocumented changes in behavior or performance changes (positive <em>or</em> negative).</p> <p>Most changes in the first release are listed below. For more details, please see the commit log, which reflects a linear and decently documented history of all changes.</p> <p>New features:</p> <ul> <li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/501">#501</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/501">rust-lang/regex#501</a>): Permit many more characters to be escaped, even if they have no significance. More specifically, any ASCII character except for <code>[0-9A-Za-z<>]</code> can now be escaped. Also, a new routine, <code>is_escapeable_character</code>, has been added to <code>regex-syntax</code> to query whether a character is escapeable or not.</li> <li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/547">#547</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/547">rust-lang/regex#547</a>): Add <code>Regex::captures_at</code>. This filles a hole in the API, but doesn't otherwise introduce any new expressive power.</li> <li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/595">#595</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/595">rust-lang/regex#595</a>): Capture group names are now Unicode-aware. They can now begin with either a <code>_</code> or any "alphabetic" codepoint. After the first codepoint, subsequent codepoints can be any sequence of alpha-numeric codepoints, along with <code>_</code>, <code>.</code>, <code>[</code> and <code>]</code>. Note that replacement syntax has not changed.</li> <li>[FEATURE <a href="https://redirect.github.com/rust-lang/regex/issues/810">#810</a>](<a href="https://redirect.github.com/rust-lang/regex/issues/810">rust-lang/regex#810</a>):</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/rust-lang/regex/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=regex&package-manager=cargo&previous-version=1.7.3&new-version=1.8.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) </details> |
2 years ago |
dependabot[bot] | f97ad0dde7 |
Bump clap from 4.2.3 to 4.2.4 (#2851)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.3 to 4.2.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.4</h2> <h2>[4.2.4] - 2023-04-19</h2> <h3>Documentation</h3> <ul> <li>Corrected docs for <code>Command::style</code></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.4] - 2023-04-19</h2> <h3>Documentation</h3> <ul> <li>Corrected docs for <code>Command::style</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | 1b67e5d607 |
Implement `Intl.Segmenter` (#2840)
The new ICU4X release stabilized the `icu_segmenter` component, so this PR implements `Intl.Segmenter` using that as a base. Also, I opted for importing `itertools` instead of copy-pasting the implementation of `TupleWindows` because its design is a lot more complex than `Intersperse`, which we copy-pasted previously. Though, I disabled all `std` features of `itertools` to make it a lot more lightweight, so it shouldn't make much difference in compilation times. |
2 years ago |
dependabot[bot] | 95a81984a0 |
Bump clap from 4.2.2 to 4.2.3 (#2844)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.2 to 4.2.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.3</h2> <h2>[4.2.3] - 2023-04-18</h2> <h3>Features</h3> <ul> <li><code>Command::styles</code> for theming help/errors (behind <code>unstable-styles</code>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.3] - 2023-04-18</h2> <h3>Features</h3> <ul> <li><code>Command::styles</code> for theming help/errors (behind <code>unstable-styles</code>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | c87cf7c7f4 |
Bump bitflags from 2.1.0 to 2.2.0 (#2845)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.1.0 to 2.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases">bitflags's releases</a>.</em></p> <blockquote> <h2>2.2.0</h2> <h2>What's Changed</h2> <ul> <li>Create SECURITY.md by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338">bitflags/bitflags#338</a></li> <li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> <li>Add support for bytemuck by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336">bitflags/bitflags#336</a></li> <li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341">bitflags/bitflags#341</a></li> <li>Prepare for 2.2.0 release by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/342">bitflags/bitflags#342</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md">bitflags's changelog</a>.</em></p> <blockquote> <h1>2.2.0</h1> <h2>What's Changed</h2> <ul> <li>Create SECURITY.md by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/338">bitflags/bitflags#338</a></li> <li>add docs to describe the behavior of multi-bit flags by <a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> <li>Add support for bytemuck by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/336">bitflags/bitflags#336</a></li> <li>Add a top-level macro for filtering attributes by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/341">bitflags/bitflags#341</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/nicholasbishop"><code>@nicholasbishop</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/340">bitflags/bitflags#340</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0">https://github.com/bitflags/bitflags/compare/2.1.0...2.2.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Iban Eguia Moraza | d288b63847 |
Upgraded to ICU 1.2 (#2826)
This PR upgrades ICU to 1.2. Unfortunately we still have some breaking changes, so this is being handled in https://github.com/unicode-org/icu4x/issues/3332 Co-authored-by: jedel1043 <jedel0124@gmail.com> |
2 years ago |
dependabot[bot] | 74ec5c1f96 |
Bump num_enum from 0.6.0 to 0.6.1 (#2836)
Bumps [num_enum](https://github.com/illicitonion/num_enum) from 0.6.0 to 0.6.1. <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
José Julián Espina | a12f10e335 |
Implement `String.prototype.toLocaleUpper/LowerCase` (#2822)
This fixes some more ES5 tests that were failing because the functions haven't been implemented. It changes the following: - Adds `String::to_locale_case`, which uses ICU4X to convert strings to uppercase or lowercase. - Refactors `String::to_uppercase` and `String::to_lowercase` into a single `String::to_case` which uses a const generic to distinguish each case. - Adds utility functions on `JsString` to avoid code repetition. |
2 years ago |
dependabot[bot] | 236012d853 |
Bump serde_json from 1.0.95 to 1.0.96 (#2815)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.95 to 1.0.96. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.96</h2> <ul> <li>Guarantee that <code>to_writer</code> only writes valid UTF-8 strings (<a href="https://redirect.github.com/serde-rs/json/issues/1011">#1011</a>, thanks <a href="https://github.com/stepancheg"><code>@stepancheg</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 841481803a |
Bump syn from 2.0.14 to 2.0.15 (#2820)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.14 to 2.0.15. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.15</h2> <ul> <li>Ensure <code>Type::Tuple</code> of length 1 prints as a tuple even if trailing comma is not provided in the Punctuated (<a href="https://redirect.github.com/dtolnay/syn/issues/1444">#1444</a>, thanks <a href="https://github.com/Fancyflame"><code>@Fancyflame</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 78bc105add |
Bump writeable from 0.5.1 to 0.5.2 (#2819)
Bumps [writeable](https://github.com/unicode-org/icu4x) from 0.5.1 to 0.5.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/unicode-org/icu4x/blob/main/CHANGELOG.md">writeable's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>icu4x 1.2 (Apr 13, 2023)</h2> <ul> <li>General <ul> <li>All updated crates: <ul> <li>Add missing <code>Debug</code> impls (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3206">#3206</a>)</li> <li>Update Rust edition to 2021 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3075">#3075</a>)</li> <li>Internal clippy fixes</li> <li>Unless otherwise specified, all crate updates are to version 1.2.</li> <li>Out-of-cycle releases do not get their own changelog entries, so some entries may span multiple patch or pre-1.0 minor versions.</li> </ul> </li> </ul> </li> <li>Data model and providers <ul> <li><code>icu_provider</code>: <ul> <li>Add support for silencing expected <code>DataError</code>s (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3262">#3262</a>)</li> <li>Removing <code>dhat</code> dependency (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3138">#3138</a>)</li> <li>Make trait <code>DataMarker: 'static</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3137">#3137</a>)</li> </ul> </li> <li><code>icu_datagen</code>: (includes patch updates 1.1.1 and 1.1.2) <ul> <li>(lib) Add <code>Out::Baked</code> and <code>BakedOptions</code>; deprecate <code>Out::Module</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3130">#3130</a>)</li> <li>(cli) Bump clap to 4.0, move to using derive (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3149">#3149</a>)</li> <li>Pare down datagen deps (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3160">#3160</a>)</li> <li>Support changes from CLDR 43 (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3182">#3182</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3201">#3201</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3204">#3204</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3205">#3205</a>)</li> <li>Add support for complemented range iterators (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3198">#3198</a>)</li> <li>Using byte string literals in databake (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3040">#3040</a>)\</li> <li>Datagen support for all new component features</li> <li>(performance) Less <code>ZeroMap</code> mutation in datagen (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3098">#3098</a>)</li> </ul> </li> <li><code>icu_provider_adapters</code>: No other changes</li> <li><code>icu_provider_blob</code>: No other changes</li> <li><code>icu_provider_fs</code>: <ul> <li>Remove sha2 dep (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3160">#3160</a>)</li> </ul> </li> <li><code>icu_provider_macros</code>: No other changes</li> </ul> </li> <li>Components: <ul> <li>Cross component: No additional cross-component changes</li> <li><code>icu_calendar</code> <ul> <li>Document the bounds of <code>IsoSecond</code>, <code>Minute</code> and <code>Hour</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3156">#3156</a>)</li> </ul> </li> <li><code>icu_collator</code>: No other changes</li> <li><code>icu_collections</code>: <ul> <li>Add <code>to_u32</code> for TrieValue (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3222">#3222</a>)</li> <li>Add <code>CPT::try_alloc_map_value</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3207">#3207</a>)</li> <li>Add support for coalescing range iterators (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3198">#3198</a>)</li> <li>Allow inversion lists to be built from ranges that include <code>char::MAX</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3203">#3203</a>)</li> </ul> </li> <li><code>icu_datetime</code>: No other changes</li> <li><code>icu_decimal</code> <ul> <li>Add <code>From<GroupingStrategy></code> for <code>FixedDecimalFormatterOptions</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3045">#3045</a>)</li> </ul> </li> <li><code>icu_list</code> <ul> <li><code>ListJoinerPattern::from_parts_unchecked()</code> is now <code>from_parts()</code> and panics when necessary (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3052">#3052</a>)</li> </ul> </li> <li><code>icu_locid</code> <ul> <li>Reduce size of internal <code>ShortVec</code> abstraction (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3200">#3200</a>)</li> <li>Use <code>Box</code> in place of <code>Vec</code> in <code>ShortVec</code> (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3220">#3220</a>)</li> </ul> </li> <li><code>icu_locid_transform</code> <ul> <li>The default set of likely subtags is now only the subset of languages that have a basic or greater CLDR coverage level; the full set is much larger in CLDR 43 and can be accessed via new constructors (<a href="https://redirect.github.com/unicode-org/icu4x/issues/3148">#3148</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3158">#3158</a>, <a href="https://redirect.github.com/unicode-org/icu4x/issues/3197">#3197</a>)</li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/unicode-org/icu4x/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=writeable&package-manager=cargo&previous-version=0.5.1&new-version=0.5.2)](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] | b6f929508d |
Bump clap from 4.2.1 to 4.2.2 (#2818)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.1 to 4.2.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.2</h2> <h2>[4.2.2] - 2023-04-13</h2> <h3>Internal</h3> <ul> <li>Update dependencies</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.2] - 2023-04-13</h2> <h3>Internal</h3> <ul> <li>Update dependencies</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | e012d2223a |
Bump h2 from 0.3.16 to 0.3.17 (#2816)
Bumps [h2](https://github.com/hyperium/h2) from 0.3.16 to 0.3.17. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hyperium/h2/releases">h2's releases</a>.</em></p> <blockquote> <h2>v0.3.17</h2> <h2>What's Changed</h2> <ul> <li>Add <code>Error::is_library()</code> method to check if the originated inside <code>h2</code>.</li> <li>Add <code>max_pending_accept_reset_streams(usize)</code> option to client and server builders.</li> <li>Fix theoretical memory growth when receiving too many HEADERS and then RST_STREAM frames faster than an application can accept them off the queue. (CVE-2023-26964)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hyperium/h2/blob/master/CHANGELOG.md">h2's changelog</a>.</em></p> <blockquote> <h1>0.3.17 (April 13, 2023)</h1> <ul> <li>Add <code>Error::is_library()</code> method to check if the originated inside <code>h2</code>.</li> <li>Add <code>max_pending_accept_reset_streams(usize)</code> option to client and server builders.</li> <li>Fix theoretical memory growth when receiving too many HEADERS and then RST_STREAM frames faster than an application can accept them off the queue. (CVE-2023-26964)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 82769820fb |
Bump syn from 2.0.13 to 2.0.14 (#2812)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.13 to 2.0.14. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.14</h2> <ul> <li>Add Punctuated::pop_punct() (<a href="https://redirect.github.com/dtolnay/syn/issues/1442">#1442</a>, thanks <a href="https://github.com/programmerjake"><code>@programmerjake</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
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] | 2f580bbac3 |
Bump serde from 1.0.159 to 1.0.160 (#2807)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.159 to 1.0.160. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/serde/releases">serde's releases</a>.</em></p> <blockquote> <h2>v1.0.160</h2> <ul> <li>Make derived serializer/deserializer internals <code>doc(hidden)</code> (<a href="https://redirect.github.com/serde-rs/serde/issues/2426">#2426</a>, thanks <a href="https://github.com/compiler-errors"><code>@compiler-errors</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
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=" |
2 years ago |
dependabot[bot] | 53e08205f5 |
Bump serde_yaml from 0.9.19 to 0.9.21 (#2789)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.19 to 0.9.21. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/serde-yaml/releases">serde_yaml's releases</a>.</em></p> <blockquote> <h2>0.9.21</h2> <ul> <li>Make <code>Tag::new</code> panic if given empty string, since YAML has no syntax for an empty tag</li> </ul> <h2>0.9.20</h2> <ul> <li>Allow an empty YAML document to deserialize to <code>None</code> or <code>Value::Null</code>, in addition to the previously supported empty vector, empty map, and struct with no required fields</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 303d8d4b69 |
Bump bitflags from 2.0.2 to 2.1.0 (#2788)
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.0.2 to 2.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases">bitflags's releases</a>.</em></p> <blockquote> <h2>2.1.0</h2> <h2>What's Changed</h2> <ul> <li>Add docs for the internal Field0 and examples of formatting/parsing by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/328">bitflags/bitflags#328</a></li> <li>Add support for arbitrary by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/324">bitflags/bitflags#324</a></li> <li>Fix up missing docs for consts within consts by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/330">bitflags/bitflags#330</a></li> <li>Ignore clippy lint in generated code by <a href="https://github.com/Jake-Shadle"><code>@Jake-Shadle</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/331">bitflags/bitflags#331</a></li> <li>Prepare for 2.1.0 release by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/334">bitflags/bitflags#334</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Jake-Shadle"><code>@Jake-Shadle</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/331">bitflags/bitflags#331</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0">https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md">bitflags's changelog</a>.</em></p> <blockquote> <h1>2.1.0</h1> <h2>What's Changed</h2> <ul> <li>Add docs for the internal Field0 and examples of formatting/parsing by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/328">bitflags/bitflags#328</a></li> <li>Add support for arbitrary by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/324">bitflags/bitflags#324</a></li> <li>Fix up missing docs for consts within consts by <a href="https://github.com/KodrAus"><code>@KodrAus</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/330">bitflags/bitflags#330</a></li> <li>Ignore clippy lint in generated code by <a href="https://github.com/Jake-Shadle"><code>@Jake-Shadle</code></a> in <a href="https://redirect.github.com/bitflags/bitflags/pull/331">bitflags/bitflags#331</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Jake-Shadle"><code>@Jake-Shadle</code></a> made their first contribution in <a href="https://redirect.github.com/bitflags/bitflags/pull/331">bitflags/bitflags#331</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0">https://github.com/bitflags/bitflags/compare/2.0.2...2.1.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Haled Odat | 570bc85ebe |
Implement debug object for CLI (#2772)
Currently some debugging stuff in JavaScript land is difficult to impossible, like triggering a GC collect, this is not impossible to do in JavaScript the way I triggered it was by creating a huge amount of object `for (let i = 0; i < 100000; ++i) { ({}) }` but this is cumbersome and not guaranteed to trigger a gc. This PR implements `--debug-object` flag that injects the `$boa` debug object in the context, the object is separated into modules currently `gc`, `function`, `object`. We can now do `$boa.gc.collect()`, which force triggers a GC collect. Or sometimes I wanted a trace (the current solution is great, you can trace stuff like `>>> 1 + 1` but that is also it's limitation), it traces everything, I sometimes have a scenario and just want to trace a single function in that scenario, that's why I added the `$boa.function.trace(func, this, ...args)` It only traces the function. ```js >> $boa.function.trace((a, b) => a + b, undefined, 1, 2) -------------------------Compiled Output: ''-------------------------- Location Count Opcode Operands 000000 0000 DefInitArg 0000: 'a' 000005 0001 DefInitArg 0001: 'b' 000010 0002 RestParameterPop 000011 0003 GetName 0000: 'a' 000016 0004 GetName 0001: 'b' 000021 0005 Add 000022 0006 Return 000023 0007 PushUndefined 000024 0008 Return ... (cut for brevity) ... ``` It also implements `$boa.function.flowgraph(func, options)`: ```js $boa.function.flowgraph(func, 'graphviz') $boa.function.flowgraph(func, { format: 'mermaid', direction: 'TopBottom' }) ``` Printing the object pointer: ```js $boa.object.id({}) // '0x566464F33' ``` It currently implements some functionality which we can grow it with our debugging needs since we are not restricted by a spec we can add whatever we want :) I was originally going to implement this in #2723 (but the PR is too big), for shapes having functions like: ```js $boa.shape.type({}) // Shared shape $boa.shape.id({}) // 0x8578FG355 (objects, shape pointer) $boa.shape.flowgraph({}) // printing the shape transition chain, like $boa.function.flowgraph ``` Shapes chains are very hard to debug once they are big... so having this type of debugging capability would make it much easier. |
2 years ago |
dependabot[bot] | 0eb4aecc10 |
Bump sys-locale from 0.2.4 to 0.3.0 (#2781)
Bumps [sys-locale](https://github.com/1Password/sys-locale) from 0.2.4 to 0.3.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/1Password/sys-locale/releases">sys-locale's releases</a>.</em></p> <blockquote> <h2>v0.3.0</h2> <p>See <a href="https://github.com/1Password/sys-locale/blob/main/CHANGELOG.md#030---2023-04-04">the changelog</a> for details.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/1Password/sys-locale/blob/main/CHANGELOG.md">sys-locale's changelog</a>.</em></p> <blockquote> <h2>[0.3.0] - 2023-04-04</h2> <h3>Changed</h3> <ul> <li>The crate now only uses <code>wasm-bindgen</code> when targeting WebAssembly on the web. Use the new <code>js</code> feature to target the web.</li> </ul> <h3>Fixed</h3> <ul> <li>The crate now compiles for unsupported platforms.</li> <li>Cleaned up typos and grammar in README.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 57bbacb502 |
Bump num_enum from 0.5.11 to 0.6.0 (#2782)
Bumps [num_enum](https://github.com/illicitonion/num_enum) from 0.5.11 to 0.6.0. <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 4add3be0ff |
Bump spin from 0.9.7 to 0.9.8 (#2780)
Bumps [spin](https://github.com/mvdnes/spin-rs) from 0.9.7 to 0.9.8. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/mvdnes/spin-rs/blob/master/CHANGELOG.md">spin's changelog</a>.</em></p> <blockquote> <h1>[0.9.8] - 2023-04-03</h1> <h3>Fixed</h3> <ul> <li>Unsoundness in <code>Once::try_call_once</code> caused by an <code>Err(_)</code> result</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/mvdnes/spin-rs/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=spin&package-manager=cargo&previous-version=0.9.7&new-version=0.9.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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/boa-dev/boa/network/alerts). </details> |
2 years ago |
dependabot[bot] | 077142710f |
Bump syn from 2.0.12 to 2.0.13 (#2776)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.12 to 2.0.13. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.13</h2> <ul> <li>Improve spans of Expr::Field parsed from a float Literal (<a href="https://redirect.github.com/dtolnay/syn/issues/1433">#1433</a>, <a href="https://redirect.github.com/dtolnay/syn/issues/1436">#1436</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 9fd79fa580 |
Bump proc-macro2 from 1.0.54 to 1.0.56 (#2775)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.54 to 1.0.56. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/proc-macro2/releases">proc-macro2's releases</a>.</em></p> <blockquote> <h2>1.0.56</h2> <ul> <li>Circumvent clippy::octal_escapes lint inside generated string and byte-string literals (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/363">#363</a>, <a href="https://redirect.github.com/dtolnay/proc-macro2/issues/380">#380</a>)</li> <li>Provide RefUnwindSafe impls for compilers older than 1.58 (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/382">#382</a>)</li> </ul> <h2>1.0.55</h2> <ul> <li>Set a meaningful <code>Span</code> for literals produced via the <code>FromStr</code> impl of <code>Literal</code> (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/378">#378</a>)</li> <li>Implement <code>Literal::subspan</code> in non-macro contexts when "span-locations" feature is enabled (<a href="https://redirect.github.com/dtolnay/proc-macro2/issues/379">#379</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 08ed2a4ae0 |
Bump syn from 2.0.11 to 2.0.12 (#2770)
Bumps [syn](https://github.com/dtolnay/syn) from 2.0.11 to 2.0.12. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/syn/releases">syn's releases</a>.</em></p> <blockquote> <h2>2.0.12</h2> <ul> <li>Refer to <code>compile_error!</code> by absolute path in token stream produced by syn::Error::to_compile_error (<a href="https://redirect.github.com/dtolnay/syn/issues/1431">#1431</a>, thanks <a href="https://github.com/smoelius"><code>@smoelius</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
dependabot[bot] | 59d1a43107 |
Bump futures-util from 0.3.27 to 0.3.28 (#2769)
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.27 to 0.3.28. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/futures-rs/releases">futures-util's releases</a>.</em></p> <blockquote> <h2>0.3.28</h2> <ul> <li>Update to syn 2. This raises MSRV of utility crates to 1.56. (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2730">#2730</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2733">#2733</a>)</li> <li>Fix bug in <code>FlattenUnordered</code> (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2726">#2726</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2728">#2728</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md">futures-util's changelog</a>.</em></p> <blockquote> <h1>0.3.28 - 2023-03-30</h1> <ul> <li>Update to syn 2. This raises MSRV of utility crates to 1.56. (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2730">#2730</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2733">#2733</a>)</li> <li>Fix bug in <code>FlattenUnordered</code> (<a href="https://redirect.github.com/rust-lang/futures-rs/issues/2726">#2726</a>, <a href="https://redirect.github.com/rust-lang/futures-rs/issues/2728">#2728</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |
Iban Eguia Moraza | 540aa2be4f |
Initial version of a JS -> Rust conversion trait. (#2276)
This Pull Request closes #1975. It's still a work in progress, but tries to go in that direction. It changes the following: - Adds a new `TryFromJs` trait, that can be derived using a new `boa_derive` crate. - Adds a new `try_js_into()` function that, similarly to the standard library `TryInto` trait Things to think about: - Should the `boa_derive` crate be re-exported in `boa_engine` using a `derive` feature, similar to how it's done in `serde`? - The current implementation only converts perfectly valid values. So, if we try to convert a big integer into an `i8`, or any floating point number to an `f32`. So, you cannot derive `TryFromJs` for structures that contain an `f32` for example (you can still manually implement the trait, though, and decide in favour of a loss of precision). Should we also provide some traits for transparent loss of precision? - Currently, you cannot convert between types, so if the JS struct has an integer, you cannot cast it to a boolean, for example. Should we provide a `TryConvertJs` trait, for example to force conversions? - Currently we only have basic types and object conversions. Should add `Array` to `Vec` conversion, for example, right? Should we also add `TypedArray` conversions? What about `Map` and `Set`? Does this step over the fine grained APIs that we were creating? Note that this still requires a bunch of documentation, tests, and validation from the dev team and from the users that requested this feature. I'm particularly interested in @lastmjs's thoughts on this API. I already added an usage example in `boa_examples/src/bin/derive.rs`. Co-authored-by: jedel1043 <jedel0124@gmail.com> |
2 years ago |
dependabot[bot] | d119934f98 |
Bump clap from 4.2.0 to 4.2.1 (#2766)
Bumps [clap](https://github.com/clap-rs/clap) from 4.2.0 to 4.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p> <blockquote> <h2>v4.2.1</h2> <h2>[4.2.1] - 2023-03-28</h2> <h3>Fixes</h3> <ul> <li>Don't highlight uninteresting parts of the error message</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p> <blockquote> <h2>[4.2.1] - 2023-03-28</h2> <h3>Fixes</h3> <ul> <li>Don't highlight uninteresting parts of the error message</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
2 years ago |