Commit Graph

318 Commits

Author SHA1 Message Date
df809df9a5 Bump to 0.2.63 (#2163)
* Update `syn` version requirement

Require latest version to fix issues with nightly.

* Bump to 0.2.63
2020-05-27 10:07:18 -05:00
d896446edc Bump to 0.2.62 (#2119) 2020-05-01 10:34:36 -05:00
6d61cd8b76 Bump to 0.2.61 (#2113) 2020-04-29 11:22:35 -05:00
a93b778b5c Fixing bug with Firefox extension content scripts (#2099) 2020-04-22 09:12:14 -05:00
a19c8a3fe0 Bump to 0.2.60 (#2051)
* Bump to 0.2.60

* Try to fix CI

* Fix CI syntax
2020-03-25 16:33:36 -05:00
5a752e5b84 Adding in typescript_type to the js_sys types (#2028) 2020-03-03 22:52:40 -06:00
db8d3e4412 Bump to 0.2.59 (#2026)
Wow this is a big release!
2020-03-03 10:55:51 -06:00
1e75e415b3 Fix TypedArray::subarray docs (#2021)
Looks like these were mistakenly copy-pasted from the `TypedArray::set` method.
2020-03-02 08:57:02 -06:00
93cb6cb65d Symlink LICENSE files in crates (#2018) 2020-02-28 17:41:28 -06:00
7db01a7c7c Add get/set for TypedArrays. (#2001)
* Add get/set for `TypedArray`s.

* Change names.

* Change name to @pauan suggestion.
2020-02-18 13:01:13 -06:00
f507a2a5ff Delete failing locale_compare test
We don't necessarily need to be a list of spec tests ourselves that need
to get tweaked over time.
2020-01-27 07:12:34 -08:00
bb066e68a5 Add javascript Number consts. (#1965)
* Add javascript Number consts.

* Add tests
2020-01-21 10:14:50 -06:00
2902ceb26f Bump to 0.2.58 (#1946) 2020-01-07 13:48:25 -06:00
6c27376ac2 Run rustfmt 2020-01-07 08:16:25 -08:00
56e4d7de1d Bump to 0.2.57 (#1943) 2020-01-06 13:17:28 -06:00
624ff42eae Mark js_sys::Promise as #[must_use] (#1927)
* Mark js_sys::Promise as #[must_use]

* Fix js_sys::Promise #[must_use] warnings
2020-01-06 09:47:16 -06:00
580daab1d3 Release 0.2.56 (#1922) 2019-12-20 10:31:17 -06:00
221514acb9 Adding in Array::iter and Array::to_vec (#1909)
* Adding in Array::iter and Array::to_vec

* Changing ArrayIter to use std::ops::Range
2019-12-17 11:40:33 -06:00
cbfefb312c Consistent inline code formatting in js-sys docs (#1915)
* Consistent inline code formatting in docs

Also corrects the docstring of `Math.cbrt()` (the cubic root of x is not x^3).

* Add backticks to Array#includes()

* Fix links to functions in Reflect docs

As soon as intra-rustdoc links land in stable the round brackets can be removed.
2019-12-17 09:22:33 -06:00
a1d90398d0 Adding in support for async iterators (#1895)
* Adding in support for async iterators

* Adding in some unit tests for asyncIterator

* Fixing unit tests

* Fixing UI tests
2019-12-04 17:51:22 -06:00
db9d603c8f Bump to 0.2.55 (#1864) 2019-11-19 11:04:37 -06:00
ada615f3dd simplify macro for arrays (#1856) 2019-11-08 16:12:22 -06:00
3573164b52 Bump to 0.2.54 (#1854) 2019-11-07 12:59:01 -06:00
d51f539d1a Add an unsafe method view_mut_raw (#1850)
* adding .vscode folder to .gitignore

* Adding view_mut_raw to generated arrays

* test populating rust vector from JS  function

* Uint32Array test, need to make it generic

* Add doc + more test cases

* replacing macro-generated tests with generic test function

it is cleaner, safer and better that way

* improving rustdoc
2019-11-06 12:37:26 -06:00
1f51831c3d Adding in to_vec method for typed arrays (#1844)
* Adding in to_vec method for typed arrays

* Fixing type error
2019-10-29 18:10:18 -05:00
c7c169ae72 Bump to 0.2.53 (#1840) 2019-10-29 09:37:37 -05:00
513285f73d Run rustfmt 2019-10-28 20:15:05 -07:00
a20dd26dde Bump to 0.2.52 (#1833) 2019-10-24 16:08:45 -05:00
6d1dc813c4 Bump to 0.2.51 (#1797)
This notably brings in async/await support for current beta/nightly
users. Yay!
2019-09-26 14:07:28 -05:00
d1f104567b Fix file permissions (#1779) 2019-09-20 13:50:00 -05:00
f0a55f8930 Feat/date opt params (#1759)
* add date methods/ constructors with opt params

* Run fmt
2019-09-09 09:57:51 -05:00
3c887c40b7 Default all async support to std::future (#1741)
This commit defaults all crates in-tree to use `std::future` by default
and none of them support the crates.io `futures` 0.1 crate any more.
This is a breaking change for `wasm-bindgen-futures` and
`wasm-bindgen-test` so they've both received a major version bump to
reflect the new defaults. Historical versions of these crates should
continue to work if necessary, but they won't receive any more
maintenance after this is merged.

The movement here liberally uses `async`/`await` to remove the need for
using any combinators on the `Future` trait. As a result many of the
crates now rely on a much more recent version of the compiler,
especially to run tests.

The `wasm-bindgen-futures` crate was updated to remove all of its
futures-related dependencies and purely use `std::future`, hopefully
improving its compatibility by not having any version compat
considerations over time. The implementations of the executors here are
relatively simple and only delve slightly into the `RawWaker` business
since there are no other stable APIs in `std::task` for wrapping these.

This commit also adds support for:

    #[wasm_bindgen_test]
    async fn foo() {
        // ...
    }

where previously you needed to pass `(async)` now that's inferred
because it's an `async fn`.

Closes #1558
Closes #1695
2019-09-05 11:18:36 -05:00
ba85275d7d Adding in more methods for Array (#1749) 2019-09-04 11:46:33 -05:00
c2daa4f63c Bump to 0.2.50 2019-08-19 04:21:27 -07:00
c1d4fddeac Bump to 0.2.49 2019-08-14 08:32:02 -07:00
16c6bdc966 moved threadsafe futures implementation to a separate file, made updates after review 2019-07-17 00:48:00 +03:00
c01575c1bc typo fixed in Atomics docs 2019-07-17 00:48:00 +03:00
d1d3021271 added polyfill for Atomics.wait and used it to notify futures 2019-07-17 00:48:00 +03:00
e596ef596c Bump to 0.2.48 2019-07-11 15:02:39 -07:00
d02e115fd4 Merge pull request #1650 from alexcrichton/less-csp
Use static accessors if possible to get global object
2019-07-10 09:37:56 -07:00
0b08bba0c7 Use static accessors if possible to get global object
Previously we always used `Function('return this')` but this triggers
CSP errors since it's basically `eval`. Instead this adds a few
preflight checks to look for objects like `globalThis`, `self`, etc.
Currently we don't have a `#[wasm_bindgen]` function annotation to
import a bare global field like `self`, but we test accesses with
`self.self` and `globalThis.globalThis`, catching errors to handle any
issues.

Closes #1641
2019-07-08 13:28:06 -07:00
2541507789 Add in (unsafe and incorrect) impls of Send/Sync that are now required. 2019-07-06 16:30:29 +01:00
367a56eb25 Test are fully implemented 2019-06-28 14:14:27 -06:00
06d0704cf8 Added tests for bind1() 2019-06-28 12:03:45 -06:00
caa86a07a0 Attempted to tackle #1622 2019-06-27 15:48:18 -06:00
497c5ed423 Removing TODOs 2019-06-25 21:42:20 +02:00
b9fd30b49e Adding in TODO note 2019-06-25 21:42:20 +02:00
8cb9b88acb Adding in unit tests for From impl 2019-06-25 21:42:20 +02:00
86937b9dba Adding in From impl for TypedArrays 2019-06-25 21:42:20 +02:00
d71ab78fc6 Bump to 0.2.47 2019-06-19 11:14:37 -07:00