Polywrap Origin (0.9.0)
Polywrap Origin (0.9.0)
Features
- PR-1306
polywrap
CLI: Console logging has been improved, and all commands now support-q, --quiet
and-v, --verbose
options. - PR-1204
polywrap
CLI: Build times are faster for wasm wrappers!!! Thebuild
command has been updated to include the concept of "build strategies". The existing way of building (viaDockerfile
image layers) is available through thepolywrap build --strategy image
command. Building without Docker (if all build-time dependencies are installed locally) can be performed using--strategy local
. And lastly, the new default build strategy is--strategy vm
, which runs all build steps in a pre-built base image, allowing for near-local speeds (once the image has been downloaded).- NOTE:
--strategy image
is useful for source-code verification, something we'll be better supporting in the future.
- NOTE:
- PR-1297
@polywrap/schema-bind
:wasm/rust
now has support forprintln!(...)
andprint!(...)
macros. They have been redefined to use thepolywrap_wasm_rs::wrap_debug_log(...)
function. - PR-1192
@polywrap/client-js
:PolywrapClient.invoke(...)
now supports invoke-time environment variables, passed in via theenv
property. - PR-1270
polywrap
CLI: Themanifest
command has been added:
Usage: polywrap manifest|m [options] [command]
Inspect & Migrade Polywrap Manifests
Options:
-h, --help display help for command
Commands:
schema|s [options] [type] Prints out the schema for the current manifest format.
migrate|m [options] [type] Migrates the polywrap project manifest to the latest version.
help [command] display help for command
- PR-1301 Added a
--format
option to themigrate
command, enabling the targeting of specific format versions when migrating manifests (ex:polywrap manifest migrate -f 0.2.0
). - PR-1218
polywrap
CLI,@polywrap/tracing-js
: Thetracing
infrastructure module (i.e.polywrap infra up --modules tracing
) now uses version0.11.0
of theSizNoz
tracing service. Additionally the underlying@polywrap/tracing-js
library has been updated to support this, and also now has named traces via thetraceName
configuration property.
Bugs
- PR-1304
polywrap
CLI: Generated build files from thevm
strategy now have proper file-system permissions. - PR-1305
@polywrap/ipfs-plugin-js
: Fallback providers are now properly being used. - PR-1296
polywrap
CLI: Thepolywrap.app.yaml
andpolywrap.plugin.yaml
project manifest file names are being deprecated in favor of a unifiedpolywrap.yaml
file for all types of projects (wasm, interface, plugin, app). They will still silently work now, but in the future will no longer be recognized defaults. - PR-1303
@polywrap/core-js
: TheUri
class now properly formats itself when beingJSON.stringify(...)
'd. - PR-1288
@polywrap/core-js
: Correctly handle errors in thegetImplementations
algorithm. - PR-1298
@polywrap/ipfs-plugin-js
,@polywrap/ipfs-resolver-plugin-js
: Remove the use ofrequire(...)
statements. - PR-1286
@polywrap/polywrap-manifest-types-js
: Manifest migration logic has been upgraded to use a strategy that finds a "shortest path" between thefrom
andto
format versions, using predefined migration functions.
Breaking Changes
- PR-1284
@polywrap/core-js
:Wrapper.getFile(...)
andWrapper.getManifest(...)
no longer require aClient
instance as a second function argument. - PR-1291
@polywrap/core-js
,@polywrap/client-js
: AllClientConfig
properties are nowreadonly
. - PR-1287
@polywrap/core-js
:executeMaybeAsyncFunction
has been removed. - PR-1277
@polywrap/client-js
: The following methods now return theResult<T, E>
type, and will not throw exceptions:getManifest(...)
,getFile(...)
,getImplementations(...)
,query(...)
,invokeWrapper(...)
,invoke(...)
,loadWrapper(...)
. - PR-1192
@polywrap/client-js
:PolywrapClient.invoke(...)
no longer accepts invoke-time reconfiguration via theconfig
property. Users who wish to reconfigure the client can do so by callingclient.getConfig()
, modifying it via theClientConfigBuilder
, and constructing a newPolywrapClient
instance.