feat: add webpack export condition and init type declaration

bump to 0.6.5
This commit is contained in:
2026-06-14 05:30:25 +02:00
parent 2de1b09087
commit ac63099741
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- name: Setup Node - name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4 uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4
with: with:
node-version: '24.15.0' node-version: '24.16.0'
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: Install wasm-pack - name: Install wasm-pack
Generated
+1 -1
View File
@@ -57,7 +57,7 @@ dependencies = [
[[package]] [[package]]
name = "blake3-wasm-rs" name = "blake3-wasm-rs"
version = "0.6.3" version = "0.6.5"
dependencies = [ dependencies = [
"blake3", "blake3",
"hex", "hex",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "blake3-wasm-rs" name = "blake3-wasm-rs"
version = "0.6.3" version = "0.6.5"
edition = "2024" edition = "2024"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
authors = ["Thomas <[email protected]>"] authors = ["Thomas <[email protected]>"]
+2 -1
View File
@@ -52,7 +52,8 @@ build-all:
exports: { '.': {\ exports: { '.': {\
types: './index.d.ts',\ types: './index.d.ts',\
node: { require: './node/$(CRATE).js', import: './node-esm/index.mjs' },\ node: { require: './node/$(CRATE).js', import: './node-esm/index.mjs' },\
import: './bundler/$(CRATE).js',\ webpack: './bundler/$(CRATE).js',\
import: './web/$(CRATE).js',\
default: './web/$(CRATE).js'\ default: './web/$(CRATE).js'\
}},\ }},\
files: ['bundler/', 'web/', 'node/', 'node-esm/', 'index.js', 'index.d.ts', '$(CRATE)_bg.wasm', '$(CRATE)_bg.js', 'README.md', 'LICENSE'],\ files: ['bundler/', 'web/', 'node/', 'node-esm/', 'index.js', 'index.d.ts', '$(CRATE)_bg.wasm', '$(CRATE)_bg.js', 'README.md', 'LICENSE'],\
+4 -1
View File
@@ -1,4 +1,7 @@
// SPDX-License-Identifier: MIT OR Apache-2.0 // SPDX-License-Identifier: MIT OR Apache-2.0
// Copyright 2026 Thomas <[email protected]> // Copyright 2026 Thomas <[email protected]>
// @ts-nocheck // @ts-nocheck
export { Hasher, deriveKey, hash, hashXof, keyedHash } from './bundler/blake3_wasm_rs'; export { Hasher, deriveKey, hash, hashXof, keyedHash } from './bundler/blake3_wasm_rs';
export type * from './web/blake3_wasm_rs.d.ts';
export type { default } from './web/blake3_wasm_rs.d.ts';