Skip to content

Commit

Permalink
fix!: Changed the package.json so importing @wasmer/sdk will pull…
Browse files Browse the repository at this point in the history
… in the version with `wasmer_js_bg.wasm` embedded as a base64 string, by default

Release-As: 0.6.0
  • Loading branch information
Michael-F-Bryan committed Dec 19, 2023
1 parent 9beb54b commit 0c850a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/markdown-editor-improved/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { init, Wasmer, Command } from "@wasmer/sdk/dist/WasmerSDKBundled.js";
import { init, Wasmer, Command } from "@wasmer/sdk";

async function initialize() {
await init();
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown-editor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { init, runWasix } from "@wasmer/sdk/dist/WasmerSDKBundled.js";
import { init, runWasix } from "@wasmer/sdk";
import markdownRendererUrl from "./markdown-renderer/target/wasm32-wasi/release/markdown-renderer.wasm?url";

async function initialize() {
Expand Down
2 changes: 1 addition & 1 deletion examples/wasmer.sh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function main() {
// same chunk as @wasmer/sdk, each Web Worker will try to run this code and
// crash.
// See https://github.com/wasmerio/wasmer-js/issues/373
const { Wasmer, init, initializeLogger } = await import("@wasmer/sdk/dist/WasmerSDKBundled");
const { Wasmer, init, initializeLogger } = await import("@wasmer/sdk");

await init();
initializeLogger("debug");
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@wasmer/sdk",
"version": "0.5.1",
"main": "dist/WasmerSDK.cjs",
"module": "dist/WasmerSDK.js",
"unpkg": "dist/WasmerSDK.umd.js",
"types": "dist/WasmerSDK.d.ts",
"main": "dist/WasmerSDKBundled.js",
"unpkg": "dist/WasmerSDKBundled.umd.js",
"module": "dist/WasmerSDKBundled.js",
"types": "dist/WasmerSDKBundled.d.ts",
"keywords": [
"webassembly",
"wasm",
Expand Down

0 comments on commit 0c850a5

Please sign in to comment.