3707 Commits

Author SHA1 Message Date
daxpedda
6788a8fb15 Prioritized Task Scheduling API (#3566) 2023-08-25 11:39:33 +02:00
daxpedda
f906f6dad6 Fix Clippy (#3567) 2023-08-25 00:04:26 +02:00
daxpedda
f5d2e5c39d Fix changelog (#3565) 2023-08-22 10:58:43 +02:00
Birk Tjelmeland
ed43f546bc Add HtmlElement inert property (#3557)
See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
2023-08-11 20:18:14 +05:00
Oliver
486238b524 Add missing CSS loaders for todomvc app (#3535)
* Add missing CSS loaders for todomvc app

Currently webpack does not bundle the index.css file located in the root
directory. This PR adds the corresponding plugins and loaders to ensure
the file is correctly bundled.

Fixes #3443

* Fixed failing CI build

Bumped version of `css-loader` as we're on webpack 5 already.

Signed-off-by: Oliver T <geronimooliver00@gmail.com>

---------

Signed-off-by: Oliver T <geronimooliver00@gmail.com>
2023-08-09 09:43:55 +10:00
Harry Barber
eb36f9d752 use fully qualified names in wasm_bindgen_test for items exported from std prelude (#3549)
* add `#![no_implicit_prelude]` to `test-macro/ui-tests`

* prefix `Some` and `None` with `::core::option::Option`

* fix `test-macro/ui-tests/should_panic.stderr` line numbers

---------

Co-authored-by: Harry Barber <harrybarber@protonmail.com>
2023-08-07 16:13:35 +05:00
Greg Johnston
cd04b27eaa Disable support for wasm32-wasi (#3233) 2023-08-07 13:00:23 +02:00
Doug A
a210654ac3 feat: add RTCDataChannel id (#3547) 2023-08-05 20:54:47 +02:00
Jiahao XU
bb2f424756 Add cargo-binstall support to wasm-bindgen (#3544)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-08-05 15:36:26 +02:00
Oliver
f0d1009f71 Handle raw identifiers in wasm_bindgen_test macro (#3541)
Signed-off-by: Oliver T <geronimooliver00@gmail.com>
2023-08-05 15:09:59 +02:00
kipcode66
903a256124 Changed write functions of FileSystemSyncAccessHandle to accept immutable buffers (#3537)
* Update gen_FileSystemSyncAccessHandle.rs

Removed unnecessary `mut` for the write functions.

* updated whitelist & tests

* fix: missing FileSystemReadWriteOptions

* fix: formatting

* fix: comment

* updated changelog
2023-08-05 17:52:40 +05:00
Duncan
b76af3b6d0 more specific docs for Indexing* methods (#3533) 2023-07-23 19:05:29 +02:00
Liam Murphy
ac480862a3 Fix pkg not being uploaded for non-Webpack examples (#3520)
I noticed that none of the examples that compile using `wasm-pack` were working properly in https://rustwasm.github.io/wasm-bindgen/exbuild. I think this is happening because `wasm-pack` generates a `.gitignore` for the `pkg` folder, which the GitHub Pages uploader is interpreting to mean 'don't upload this'.

This PR makes CI delete those `.gitignore`s to try and fix that. It's still a draft because I don't know if it's actually going to work.

This isn't _that_ severe, since the only broken example which is actually linked to from the guide is the WebSockets example. Once I've seen whether this has worked I might go ahead and add links for the rest of the `wasm-pack`-built examples as well.
2023-07-22 17:32:34 +10:00
Liam Murphy
4a19be6055 Add missing guide pages to SUMMARY.md (#3521)
There were several pages that had been added to the guide, but were inaccessible due to not being listed in `SUMMARY.md` (which is how you specify the layout for the left sidebar). This PR fixes that.

I also noticed that there were two pages for the same `typscript_type` attribute: one in the 'on JS imports' section (which was inaccessible) and one in the 'on Rust exports' section. These aren't for two different versions of the attribute; they're both for the same attribute which can only be applied to JS imports.

The one in the 'on JS imports' section was much less detailed, so I got rid of it and moved the other one into its place.

Closes #2426 (an issue that was opened ages ago about the `typescript_type` page being in the wrong section). There was a bit of discussion there about whether it does actually belong in the 'on Rust exports' section, since despite being directly applied to JS imports its usage is to change the TypeScript output for Rust exports, but I think that the site where it's applied is more important.
2023-07-22 17:16:27 +10:00
Andrea Frigido
74bfc1f85e Update license field following SPDX 2.1 license expression standard (#3529) 2023-07-19 10:57:34 +02:00
Ho Kim
0853bb7fa7 Replace curl package into ureq (#3511) 2023-07-10 16:56:25 +02:00
Stefan Hanke
e13d8985a2 chore: run npm audit fix --force on all examples 2023-07-05 22:49:51 +02:00
Michael Allwright
37bebc8e73 Fix bindings and comments for Atomics.wait (#3509) 2023-07-05 22:47:34 +02:00
dAxpeDDa
4aae6b38e6 Add WorkerGlobalScope.performance 2023-07-05 15:53:30 +02:00
dAxpeDDa
03ae2191a6 Fix changelog 2023-07-05 15:22:23 +02:00
Michael Allwright
e36b616050 Add async variants of Atomics.wait (#3504) 2023-07-05 15:04:03 +02:00
Stefan Hanke
29205c51b0 docs: add and hello_world switched to direct import 2023-07-05 13:51:36 +02:00
Stefan Hanke
7e576ec5fe docs: replace WASM with Wasm 2023-07-03 12:41:47 +02:00
kajacx
51587644c8 Re-export wasm-bindgen and js-sys (#3466) 2023-06-25 10:39:59 +02:00
Michael Allwright
165ad00ccf Add bindings for WebAssembly.Tag and WebAssembly.Exception (#3484) 2023-06-16 20:46:47 +02:00
Lukas Herzberger
e84fd83f31 Update WebGPU's webidl (#3480) 2023-06-14 13:17:21 +02:00
Tyler Barker
f569fddb62 Add WebIDLs for experimental AudioContext sinkId, setSinkId (#3433) 2023-06-13 10:22:25 +02:00
daxpedda
f0a8ae3b99 Bump to 0.2.87 (#3475) 2023-06-12 14:25:14 -05:00
dAxpeDDa
673e3eb305 Implement IntoIterator for Array 2023-06-12 20:20:59 +02:00
dAxpeDDa
5f10d6f0d5 Update changelog 2023-06-06 14:53:38 +02:00
dAxpeDDa
10777c53d3 Stabilize ResizeObserver 2023-06-06 14:26:06 +02:00
daxpedda
a2ab2d5169 Take alignment into consideration during malloc (#3463)
* Take alignment into consideration during `malloc`

* Use smallest possible alignment

Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>

* Rework `DeferCallCore` to `DeferFree`

Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>

* Address review

Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>

---------

Co-authored-by: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
2023-06-06 22:10:45 +10:00
dAxpeDDa
3d781631b1 Fix CI 2023-06-06 01:07:16 +02:00
Max Walley
5453e332dc Fixed the port number for the wasm-audio-worklet demo to be in line with the Readme 2023-05-25 22:17:34 +02:00
Lukas Lihotzki
a334ce4a4c Fix TODOs in web-sys tests (#3449) 2023-05-24 10:22:16 +02:00
Lukas Lihotzki
4e6dcbe233 Deprecate HtmlMenuItemElement and parts of HtmlMenuElement 2023-05-23 21:06:18 +02:00
Lukas Lihotzki
a9dea47be6 Fix TODO with get_index/set_index 2023-05-21 16:45:06 +02:00
Lukas Lihotzki
2b03f6e62b Enable test (TODO) 2023-05-21 16:08:15 +02:00
Lukas Lihotzki
d21495b528 Clippy: Fixes and CI for examples and tests (#3442) 2023-05-21 16:01:35 +02:00
Lukas Lihotzki
85f72c9125 Clippy: Fixes and CI (#3300) 2023-05-17 12:02:02 +02:00
Alex Crichton
2d882c97b0 Bump to 0.2.86 (#3429) 2023-05-15 17:25:39 -05:00
relrelb
e3a65dd936 Mark some JsValue functions as const (#3431) 2023-05-15 17:25:31 -05:00
Oliver
4130092077 Improved version mismatch error message (#3428)
Signed-off-by: Oliver T <geronimooliver00@gmail.com>
2023-05-15 20:49:14 +02:00
djozis
e6ec09c2ab Add WebIDLs for File System Access API (continuing PR #3327) (#3427)
Co-authored-by: Speak2Erase <matthew@nowaffles.com>
2023-05-15 18:49:54 +02:00
dAxpeDDa
15ca11bdf5 Fix wrong null check on document.currentScript 2023-05-13 14:41:30 +02:00
Billy Sheppard
feb75a2106 Added #[track_caller] and Improved Debug message for unwrap_throw() (#2995) 2023-05-11 18:09:43 +02:00
Sergio Medina
205828ce43 wasm-bindgen-test-runner fix run in parallel in same workspace (#3420) 2023-05-11 14:14:24 +02:00
즈눅
89219acc4f web-sys: exposing selection direction in setRangeText() (#3363)
Co-authored-by: dAxpeDDa <daxpedda@gmail.com>
2023-05-11 12:14:25 +02:00
Jack
28e3880624 Add WebIDLs for Local Font Access (#3374)
Co-authored-by: dAxpeDDa <daxpedda@gmail.com>
2023-05-10 18:35:22 +02:00
WhizSid
556e03e8f6 Adding IDL for Animatable mixin (#3142)
Co-authored-by: dAxpeDDa <daxpedda@gmail.com>
2023-05-10 14:34:41 +02:00