Kevin Ness
68c59ea70a
Compare GIFs in CI with ImageMagick
7 months ago
Kevin Ness
6fb4289363
Add vhs-action for boa_cli
7 months ago
Hans Larsen
d915c9bef7
Add functions to create modules from a JSON value ( #3804 )
...
* Add functions to create modules from a JSON value
* Move json_module to Module::from_value_as_default
* Flag the whole json module behind the json feature
* Rename and add doc
7 months ago
Hans Larsen
0d7018f16c
Add a new type Convert<> to convert values ( #3786 )
...
* Add TryFromJs for more types
* Add a new type Coerce<> to coerce values
This can be used to transform values in to coerced versions by
using the type system and TryFromJs.
* Fix build error
* Rename Coerce<> to Convert<>
* replace missed coerce to Convert
* cargo fmt and clippy
7 months ago
Linus Groh
c0a961f650
Implement Promise.try() ( #3800 )
...
See: https://github.com/tc39/proposal-promise-try
8 months ago
Hans Larsen
9702501f09
Add more utility traits and funtions to boa_interop ( #3773 )
...
* Add more utility traits and funtions to boa_interop
* cargo clippy
* Readd the safe version for Fn which also implements Copy
* Use a new trait for converting a Rust type to a JsResult<JsValue>
* cargo clippy
* Add a test for returning result and Fn()
* Seal both IntoJsFunction and IntoJsFunctionUnsafe
* Try Borrowing and return a nice error instead of panicking
* Address comments
* Rename into_js_function to into_js_function_copied
* Move TryIntoJsResult to boa_engine
* Move JsRest to be at the end only of arguments and add JsAll
* use from_copy_closure and remove unsafe
8 months ago
Hans Larsen
1825e8b3f2
Fix SimpleModuleLoader on Windows ( #3795 )
8 months ago
dependabot[bot]
848103ae3f
Bump getrandom from 0.2.12 to 0.2.13 ( #3796 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.12 to 0.2.13.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.12...v0.2.13 )
---
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>
8 months ago
dependabot[bot]
755c213bb6
Bump comfy-table from 7.1.0 to 7.1.1 ( #3797 )
...
Bumps [comfy-table](https://github.com/nukesor/comfy-table ) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/nukesor/comfy-table/releases )
- [Changelog](https://github.com/Nukesor/comfy-table/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nukesor/comfy-table/compare/v7.1.0...v7.1.1 )
---
updated-dependencies:
- dependency-name: comfy-table
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>
8 months ago
José Julián Espina
f2b9c83ceb
Build docs.rs docs with all features enabled ( #3794 )
8 months ago
Nick Tomlin
676dde7897
chore: Update README link to reflect new site paths ( #3793 )
8 months ago
José Julián Espina
c9d1401a58
Cleanup tester deps and patterns ( #3792 )
...
* Cleanup tester deps and patterns
* cargo fmt + clippy
8 months ago
Hans Larsen
958045c9ac
Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script ( #3791 )
...
* Properly resolve paths in SimpleModuleLoader and add path to Referrer::Script
* Add missing example
* Carry active runnable on frame push
* Duplicate the tests with proper paths for Windows/Unix
* Use the right root for absolute referrers
* ugh cargo fmt
* Limit doctest to unix
* Limit doctest to unix, for real
* cargo fmt
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
8 months ago
dependabot[bot]
0b3df5781e
Bump indexmap from 2.2.5 to 2.2.6 ( #3789 )
...
Bumps [indexmap](https://github.com/indexmap-rs/indexmap ) from 2.2.5 to 2.2.6.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md )
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.2.5...2.2.6 )
---
updated-dependencies:
- dependency-name: indexmap
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>
8 months ago
dependabot[bot]
c78e9f0871
Bump syn from 2.0.57 to 2.0.58 ( #3788 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.57 to 2.0.58.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.57...2.0.58 )
---
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>
8 months ago
José Julián Espina
ffbf794577
Remove references to dev docs and npm dependencies ( #3787 )
...
* Remove references to dev docs and npm dependencies
* Remove webpack config
8 months ago
Hans Larsen
cb5cea6d26
Add a path to Module (and expose it in Referrer) ( #3783 )
...
* Add an integration test for relative imports on SimpleModuleLoader
* Add a path to Module (and expose it in Referrer)
This allows SimpleModuleLoader to resolve relative to the current
file (which this commit also does).
Fixes #3782
* cargo clippy and fmt
* prettier
* Fix merge error
8 months ago
Hans Larsen
37db6a4911
Add a boa_interop crate ( #3772 )
...
* Add a boa_interop crate
This crate will contain types and functions to help integrating
boa in Rust projects, making it easier to interop between the
host and the JavaScript code.
See https://github.com/boa-dev/boa/discussions/3770
* Remove unnecessary into_iter()
* cargo fmt
* cargo clippy
* Make IntoJsFunction unsafe
* Remove unused code
8 months ago
Haled Odat
b1f07805c3
Optimize Regex match check ( #3779 )
...
* Initial optimization
* Fix sticky flag
* Apply review
* Update regress to 0.9.1
* Add spec deviation comments
---------
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com>
8 months ago
José Julián Espina
5c20010328
Check that `min <= max` in `clamp_finite` ( #3699 )
8 months ago
dependabot[bot]
2b7c7050fb
Bump serde_json from 1.0.114 to 1.0.115 ( #3775 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.114 to 1.0.115.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.114...v1.0.115 )
---
updated-dependencies:
- dependency-name: serde_json
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>
8 months ago
dependabot[bot]
7659977c82
Bump clap from 4.5.3 to 4.5.4 ( #3776 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.3 to 4.5.4.
- [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.5.3...v4.5.4 )
---
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>
8 months ago
dependabot[bot]
23775954fd
Bump syn from 2.0.55 to 2.0.57 ( #3777 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.55 to 2.0.57.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.55...2.0.57 )
---
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>
8 months ago
dependabot[bot]
3059408a62
Bump trybuild from 1.0.90 to 1.0.91 ( #3778 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: trybuild
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>
8 months ago
Jason Williams
e754df35f5
don't run test262 on push ( #3774 )
...
* don't run test262 on push anymore
* wrap in an expression
* remove writing to the gh-pages branch
* checkout data repo for comparison
* check dirs
* add back in PR checks
8 months ago
Hans Larsen
08b0debbfb
Allow deserialization of missing objects properties into Option<> ( #3767 )
...
* Allow deserialization of missing objects properties into Option<>
Currently the TryFromJs derive macro requires that all properties
be defined in the object, whether they are declared as Option<> or
not. This commit makes it so if the field is not found in the
JsObject, we try to deserialize undefined.
This is more in line with JavaScript behaviour.
* Fix cargo fmt
* Fix clippies
* Empty commit to trigger rerun of workflow
* Remove circular dependency between boa_engine and boa_macros
* Missing "::" in macro
---------
Co-authored-by: jedel1043 <jedel0124@gmail.com>
8 months ago
Haled Odat
fb8e16b2d9
Cached `this` value ( #3771 )
8 months ago
Haled Odat
a1e36fc788
Optimize number to PropertyKey conversion ( #3769 )
...
In previous implementation when converting a number to PropertyKey, we
always converted it to string and only when the conversion to
PropertyKey::Index was not possible we returned that string.
8 months ago
dependabot[bot]
7dee9e8c57
Bump express from 4.18.2 to 4.19.2 ( #3768 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2 )
---
updated-dependencies:
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
dependabot[bot]
f922e2efeb
Bump rayon from 1.9.0 to 1.10.0 ( #3763 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.9.0 to 1.10.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.9.0...rayon-core-v1.10.0 )
---
updated-dependencies:
- dependency-name: rayon
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>
8 months ago
dependabot[bot]
9d6ed65a95
Bump indoc from 2.0.4 to 2.0.5 ( #3764 )
...
Bumps [indoc](https://github.com/dtolnay/indoc ) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/2.0.4...2.0.5 )
---
updated-dependencies:
- dependency-name: indoc
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>
8 months ago
dependabot[bot]
1919bc9c54
Bump regex from 1.10.3 to 1.10.4 ( #3766 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.10.3...1.10.4 )
---
updated-dependencies:
- dependency-name: regex
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>
8 months ago
dependabot[bot]
122bc968a5
Bump syn from 2.0.53 to 2.0.55 ( #3762 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.53 to 2.0.55.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.53...2.0.55 )
---
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>
8 months ago
Matthew Stone
48750f361a
Swap to Duration::round from temporal_rs ( #3731 )
...
* Swap to Duration::round from temporal_rs
* Clean up round method and impl From for RoundingMode enum
* Fix build failure
* Fix clippy error
* Respond to comments
* Remove commented line
8 months ago
raskad
7987fd8c02
Add missing environment creation in initial iteration of for loop ( #3751 )
8 months ago
Haled Odat
d3e539593f
Dense array storage variants for `i32` and `f64` ( #3760 )
...
* Implement `i32` dense arrays
* Implement `f64` dense arrays
* Implement debug object indexed elements type function
* Apply review
* Simplify `IndexedProperties::remove()`
8 months ago
Hans Larsen
1c6a095196
Add a try_from_js implementation for Vec<T> (accept any Array-like) ( #3755 )
...
* Add a try_from_js implementation for Vec<T> (accept any Array-like)
* Use safe conversion to usize
* Fix typing compile error
* Fix clippies and fmt
* Remove println from test
* Add a negative test
8 months ago
dependabot[bot]
041a030481
Bump webpack from 5.90.3 to 5.91.0 ( #3757 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.90.3 to 5.91.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.90.3...v5.91.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
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>
8 months ago
José Julián Espina
e375090d26
Change dependabot interval to weekly ( #3758 )
8 months ago
José Julián Espina
03d972957d
Apply new clippy lints for rustc 1.77 ( #3759 )
...
* First bump fixes
* Apply automatic clippy lints
* cargo fmt
* Apply manual lints
8 months ago
raskad
abec7b2ec2
Fix parsing of binding identifier in try catch parameters ( #3752 )
8 months ago
dependabot[bot]
ddac762d0a
Bump toml from 0.8.11 to 0.8.12 ( #3754 )
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.8.11 to 0.8.12.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.11...toml-v0.8.12 )
---
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>
8 months ago
dependabot[bot]
5de177871f
Bump webpack-dev-server from 5.0.3 to 5.0.4 ( #3756 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v5.0.3...v5.0.4 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
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>
8 months ago
dependabot[bot]
05e2493218
Bump bitflags from 2.4.2 to 2.5.0 ( #3753 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.4.2 to 2.5.0.
- [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.4.2...2.5.0 )
---
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>
8 months ago
raskad
9e9d71ff91
Fix parsing of `async` in for-of loops ( #3745 )
8 months ago
dependabot[bot]
fcb67cb026
Bump clap from 4.5.2 to 4.5.3 ( #3747 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.2 to 4.5.3.
- [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.5.2...v4.5.3 )
---
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>
8 months ago
dependabot[bot]
9bc1195d39
Bump futures-lite from 2.2.0 to 2.3.0 ( #3748 )
...
Bumps [futures-lite](https://github.com/smol-rs/futures-lite ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/smol-rs/futures-lite/releases )
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/futures-lite/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: futures-lite
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>
8 months ago
dependabot[bot]
7a8e3b9adc
Bump syn from 2.0.52 to 2.0.53 ( #3750 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.52 to 2.0.53.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.52...2.0.53 )
---
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>
8 months ago
dependabot[bot]
902adc1738
Bump trybuild from 1.0.89 to 1.0.90 ( #3749 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.89...1.0.90 )
---
updated-dependencies:
- dependency-name: trybuild
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>
8 months ago
dependabot[bot]
5e9dd50873
Bump serde_yaml from 0.9.32 to 0.9.33 ( #3746 )
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.9.32 to 0.9.33.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.32...0.9.33 )
---
updated-dependencies:
- dependency-name: serde_yaml
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>
8 months ago