@bytecodealliance/jco 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytecodealliance/jco",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "JavaScript tooling for working with WebAssembly Components",
5
5
  "keywords": [
6
6
  "Component",
@@ -66,6 +66,9 @@ export async function componentize(jsSource, opts) {
66
66
  // NOTE: if we were to use a version of componentize-js 0.20.0 or newer here,
67
67
  // the build would fail, as newer versions do not support wasi:http < 0.2.10
68
68
  // for fetch.
69
+ console.error(
70
+ `${styleText(["yellow", "bold"], "warning")} Falling back to componentize-js 0.19.3 because this component requests Preview 2 WASI packages older than 0.2.10. See https://bytecodealliance.github.io/jco/troubleshooting/common-issues.html#componentize-js-0193-fallback for details and upgrade steps.`,
71
+ );
69
72
  componentizeJSModule = await eval('import("@bytecodealliance/componentize-js-0-19-3")');
70
73
  } else {
71
74
  componentizeJSModule = await eval('import("@bytecodealliance/componentize-js")');
package/src/jco.js CHANGED
@@ -25,7 +25,7 @@ program
25
25
  )
26
26
  .usage("<command> [options]")
27
27
  .enablePositionalOptions()
28
- .version("1.18.0");
28
+ .version("1.18.1");
29
29
 
30
30
  function myParseInt(value) {
31
31
  return parseInt(value, 10);