File wasm-bindgen.changes of Package wasm-bindgen

-------------------------------------------------------------------
Thu Nov 06 08:12:21 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

- Update to version 0.2.100:
  * Added
    - Add attributes to overwrite return (``unchecked_return_type)
      and parameter types (unchecked_param_type`), descriptions
      (`return_description` and `param_description`) as well as
      parameter names (`js_name`) for exported functions and
      methods. See the guide for more details. #4394
    - Add a copy_to_uninit() method to all TypedArrays. It takes
      &mut [MaybeUninit<T>] and returns &mut [T]. #4340
    - Add test coverage support for Node.js. #4348
    - Support importing memory and using wasm_bindgen::module() in
      Node.js. #4349
    - Add --list, --ignored, --exact and --nocapture to
      wasm-bindgen-test-runner, analogous to cargo test. #4356
    - Add bindings to Date.to_locale_time_string_with_options.
      #4384
    - #[wasm_bindgen] now correctly applies #[cfg(...)]s in
      structs. #4351
  * Changed
    - Optional parameters are now typed as T | undefined | null to
      reflect the actual JS behavior. #4188
    - Adding getter, setter, and constructor methods to enums now
      results in a compiler error. This was previously erroneously
      allowed and resulted in invalid JS code gen. #4278
    - Handle stuck and failed WebDriver processes when re-trying to
      start them. #4340
    - Align test output closer to native cargo test. #4358
    - Error if URL in <WEBDRIVER>_REMOTE can't be parsed instead of
      just ignoring it. #4362
    - Remove WASM_BINDGEN_THREADS_MAX_MEMORY and
      WASM_BINDGEN_THREADS_STACK_SIZE. The maximum memory size can
      be set via -Clink-arg=--max-memory=<size>. The stack size of
      a thread can be set when initializing the thread via the
      default function. #4363
    - console.*() calls in tests are now always intercepted by
      default. To show them use --nocapture. When shown they are
      always printed in-place instead of after test results,
      analogous to cargo test. #4356
  * Fixed
    - Fixed using JavaScript keyword as identifiers not being
      handled correctly. #4329
      - Using JS keywords as struct and enum names will now error
        at compile time, instead of causing invalid JS code gen.
      - Using JS keywords that are not valid to call or access
        properties on will now error at compile time, instead of
        causing invalid JS code gen if used as:
        - The first part of a js_namespace on imports.
        - The name of an imported type or constant if the type or
          constant does not have a js_namespace or module
          attribute.
        - The name of an imported function if the function is not a
          method and does not have a js_namespace or module
          attribute.
      - Using JS keywords on imports in places other than the above
        will no longer cause the keywords to be escaped as
        _{keyword}.
    - Fixed passing large arrays into Rust failing because of
      internal memory allocations invalidating the memory buffer.
      #4353
    - Pass along an ignore attribute to unsupported tests. #4360
    - Use OS provided temporary directory for tests instead of
      Cargo's target directory. #4361
    - Error if URL in <WEBDRIVER>_REMOTE can't be parsed. #4362
    - Internal functions are now removed instead of invalidly
      imported if they are unused. #4366
    - Fixed no_std support for all APIs in web-sys. #4378
    - Prevent generating duplicate exports for closure conversions.
      #4380
- Update to version 0.2.99~0:
  * Fixed
    - Mark wasm-bindgen v0.2.98 only compatible with
      wasm-bindgen-cli of the same version. #4331
- Update to version 0.2.98~0:
  * Added
    - Add support for compiling with atomics for Node.js. #4318
    - Add WASM_BINDGEN_TEST_DRIVER_TIMEOUT environment variable to
      control the timeout to start and connect to the test driver.
      #4320
    - Add support for number slices of type MaybeUninit<T>. #4316
  * Changed
    - Remove once_cell/critical-section requirement for no_std with
      atomics. #4322
    - static FOO: Option<T> now returns None if undeclared in JS
      instead of throwing an error in JS. #4319
  * Fixed
    - Fix macro-hygiene for calls to std::thread_local!. #4315
    - Fix feature resolver version 1 compatibility. #4327

-------------------------------------------------------------------
Wed May  7 04:34:29 UTC 2025 - William Brown <william.brown@suse.com>

- bsc#1242600 - CVE-2025-3416 - openssl use-after-free

-------------------------------------------------------------------
Wed Jan 08 00:07:18 UTC 2025 - william.brown@suse.com

- Downgrade to version 0.2.97~0:
  * Required for wasm-pack to remain in locked step

-------------------------------------------------------------------
Tue Jan  7 01:54:07 UTC 2025 - William Brown <william.brown@suse.com>

- Update wasm-bindgen dependencies

-------------------------------------------------------------------
Sun Dec 08 09:04:35 UTC 2024 - opensuse_buildservice@ojkastl.de

- Update to version 0.2.99~0:
  * Prepare v0.2.99 release (#4331)

-------------------------------------------------------------------
Sun Dec 08 08:25:14 UTC 2024 - opensuse_buildservice@ojkastl.de

- Update to version 0.2.98~0:
  * Prepare v0.2.98 release (#4330)
  * Remove dead code (#4300)
  * Add support for number slices of type `MaybeUninit<T>` (#4316)
  * Re-establish feature resolver version 1 compatibility (#4327)
  * Add `WASM_BINDGEN_TEST_DRIVER_TIMEOUT` (#4320)
  * Move `walrus/parallel` to `wasm-bindgen-cli-support` (#4321)
  * Improved contributing docs in `web-sys` README (#4302)
  * Support `undefined` static imports with `Option` (#4319)
  * Remove `critical-section` requirement for `no_std` with atomics
    (#4322)
  * Remove leftover macro (#4326)
  * Add support for multi-threading in Node.js (#4318)
  * Fix macro-hygiene for calls to `std::thread_local!` (#4315)
  * Add clear error message to communicate new feature resolver
    version requirements (#4312)

-------------------------------------------------------------------
Sat Nov 30 08:43:01 UTC 2024 - opensuse_buildservice@ojkastl.de

- Update to version 0.2.97~0:
  * Regenerate reference tests (#4309)
  * Prepare v0.2.97 release (#4308)
  * Note that feature resolver version 2 is required (#4307)
  * Only use `wasm_bindgen::__rt` in proc-macros (#4305)
  * Removed a few `#[allow(dead_code)]` (#4299)

-------------------------------------------------------------------
Fri Nov 29 20:27:09 UTC 2024 - opensuse_buildservice@ojkastl.de

- Update to version 0.2.96~0:
  * Prepare v0.2.96 release (#4298)
  * Add environment variables to configure tests (#4295)
  * transition away from deprecated setters internally (#4297)
  * Use private constructors in type definitions of structs without
    an exported constructor (#4282)
  * Improved errors for invalid `self` arguments (#4276)
  * Add test for most data conversions (#4281)
  * Update WebGPU API to draft 2024-11-22 (#4290)
  * Move lints to workspace (#4294)
  * Test `no_std` MSRV in CI (#4292)
  * Update to Rust v1.83 (#4293)
  * Update walrus requirement from 0.22 to 0.23 (#4279)
  * All dependencies are now pinned to each other (#4291)
  * Revert bundler target specific default transformations (#4253)
  * Don't emit unexpected cfgs in proc-macros (#4284)
  * Added support for the `wasm32v1-none` target (#4277)
  * Update reference tests (#4275)
  * Add test for imported getters and setters (#4270)
  * Hash full signature for imported functions (#4269)
  * Improved TS type generation from WASM (#4229)
  * Restart WebDriver on failure (#4267)
  * Update test coverage documentation to LLVM 19 (#4265)
  * Test different CLI flags in reference tests (#4264)
  * Added note for which versions of wasm-bindgen support i128
    (#4262)
  * Add support for i128 and u128 (#4222)
  * Faster local testing with `reference.rs` (#4255)
  * Add bindings for `MediaStreamTrack.getCapabilities` (#4236)
  * Update testing docs for `wasm-bindgen-macro` (#4256)
  * Add support for enums with negative discriminants (#4204)
  * Fix Rust edition 2024 compatibility (#4259)
  * Make it clearer which versions are affected by the constructor
    bug (#4249)
  * Fix docs on `Option<char>` (#4226)
  * Added more documentation for `bool`, `char`, and numeric types
    (#4245)
  * Fixed imports with late binding and `this` (#4225)
  * webidl: fix structopt macro to be clap (#4244)
  * Improved how references test handles paths (#4242)
  * Fix `JsCast::instanceof()` not respecting JS namespaces (#4241)
  * wasm-bindgen-webidl: use `clap` instead of `structopt` (#4219)
  * More tests for result type (#4208)
  * Deprecate `Bindgen::reference_types()` (#4238)
  * Improved indentation and enum formatting (#4205)
  * Deprecate `--reference-types` (#4237)
  * Fix invalid TS return types for multivalue signatures (#4210)
  * Disable enabling reference types by default with the bundler
    target (#4235)
  * Fixed generated types for getters and setters (#4202)
  * Add JSDoc type annotations to C-style enums (#4157)
  * Optimized ABI performance for `Option<[all 32-bit primitives]>`
    (#4183)
  * Add `MathMLElement` and `HTMLOrSVGElement` bindings (#4143)
  * Added missing space in doc comments (#4200)
  * Fix link to Node.js module documentation (#4197)
  * Fix potential `null` error in `JsValue::as_debug_string()`
    (#4192)
  * Make CI deterministic try 2 (#4190)
  * Fix `#[should_panic]` with `unsupported` tests (#4196)
  * Fix triggering lints in testing facilities (#4195)
  * Only generate JS values for string enums if used (#4193)
  * Remove JSDoc type annotations in TS files (#4187)
  * Generate TS types for string enums (#4180)
  * Fixed methods with `self: &Self` consuming the object (#4178)
  * Use `isLikeNone` to detect null/undefined for string enums
    (#4186)
  * Use new `web_sys` `Uint8ClampedArray` bindings (#4184)
  * Add test for code gen with `web-sys` (#4179)

-------------------------------------------------------------------
Tue Oct 22 08:08:19 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

- switch to using tar_scm to make maintenance easier for William
  (large obscpio uploads)

-------------------------------------------------------------------
Thu Oct 17 11:53:48 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>

- new package wasm-bindgen: CLI for wasm-bindgen, facilitating
  high-level interactions between Wasm modules and JavaScript
openSUSE Build Service is sponsored by