Skip to content

Releases: polywrap/wrap-cli

Polywrap Origin (0.10.4)

19 Jun 05:53
0b86996
Compare
Choose a tag to compare

Polywrap Origin (0.10.4)

Features

polywrap CLI:

  • PR-1735 Add Docs Manifest & polywrap docs init Command
    • The polywrap.docs.yaml manifest is used to add additional metadata to your wraps.
  • PR-1776 Add HTTP Headers To HTTP Deploy Module
    • The http deploy module now supports the headers configuration property.

Bugs

polywrap CLI:

  • PR-1773 Don't Install wasm-opt Every local Rust Build
    • The local strategy for rust wasm projects was unexpectedly installing wasm-opt every time it was run, leading to very long build times.

@polywrap/schema-bind:

  • PR-1775 Fix Python Plugin Bindings
    • The wrap abi type Bytes can now be properly used within rust plugins.
  • PR-1753 Fix Python Plugin Bindings

Polywrap Origin (0.10.3)

10 May 05:25
b5d1d24
Compare
Choose a tag to compare

Polywrap Origin (0.10.3)

Features

polywrap CLI:

  • PR-1747 Add Rust & Python plugin template projects to CLI's create command
    • The create command now supports plugin/rust and plugin/python project types.

Bugs

@polywrap/schema-bind:

  • PR-1734 Update plugin/python Bindings
    • Update wrap.info python module embedding.
  • PR-1728 Update plugin/rust Bindings
    • Modify JSON serialization within rust plugin's bindings.
  • PR-1736 Properly emit function name when Env is missing
    • Fixed the error message that's emitted when an environment is not supplied to a function that requires it.
  • PR-1733 Add imported Env to propertyDeps transform
    • Adds imported Env to propertyDeps transform, so that now codegen properly generates imports for dependencies of imported env.

Polywrap Origin (0.10.2)

25 Apr 16:01
40f3605
Compare
Choose a tag to compare

Polywrap Origin (0.10.2)

Bugs

@polywrap/schema-bind:

  • PR-1718 plugin/python Enum Bindings Fix
    • Enums are now properly displayed in Python plugins.

Polywrap Origin (0.10.1)

19 Apr 08:14
4eed65c
Compare
Choose a tag to compare

Polywrap Origin (0.10.1)

Features

@polywrap/schema-bind:

  • PR-1694 plugin/rust Env Bindings Refactor
    • Rust plugin bindings now expose env as a function argument.

Bugs

@polywrap/schema-bind:

  • PR-1700 plugin/rust Serde renaming for snake-cased properties in rust plugins types
    • Rust plugins now properly convert wrap schema property names into snake-cased names, so they are compatable with Rust naming conventions.

@polywrap/templates:

  • PR-1680 Import newer logger in typescript template
    • Update the typescript app template to use the latest logging wrap at ens/wraps.eth:logging@1.0.0.

@polywrap/polywrap-manifest-types-js:

  • PR-1692 top-level docker property is now removed from build manifest during migration
    • Fixes a bug where the top-level docker property of build manifest version 0.1.0 was not being dropped during migration, causing migrated build manifests to fail validation.

Polywrap Origin (0.10.0)

14 Apr 05:10
7135371
Compare
Choose a tag to compare

Polywrap Origin (0.10.0)

Features

Toolchain

polywrap CLI:

  • PR-1592 Add primaryJob to deploy manifest and output URI.txt when running polywrap deploy
    • The primaryJob option in the deploy manifest identifies the name of the job that is used for the primary deployment. The URI that is emitted from the primaryJob will be output to a URI.txt file next to the deploy manifest.
  • PR-1529 polywrap create template Command
    • Added the polywrap create template command to the CLI, enabling users to provide a url to a template project.
  • PR-1584 Codegen Command Now Supports --watch
    • You can now run npx polywrap codegen --watch which will automatically watch files within your project directory and re-run codegen whenever changes are detected.
  • PR-1677 Python Plugin Support
    • Add bindings for plugin/python projects.
  • PR-1428 Rust Plugin Support
    • Add bindings for plugin/rust projects.
  • PR-1437 Support Custom Wrapper Environment Variables
    • Enable users to customize the CLI's internal client's wrapper environment via a --wrapper-envs option, added to the build, codegen, docgen, and test commands.
  • PR-1430 Support Arbitrary Resources Files
    • Polywrap wasm/ & interface/ projects can now include a resources: directory, specified in the polywrap.yaml manifest. This resources directory will be copied into the build/ folder upon runnin polywrap build. For example:
      format: 0.3.0
      project:
        type: interface | wasm/...
        ...
      source:
        ...
      resources: ./resources
  • PR-1349 Log File Support
    • A -l, --log-file [path] option has been added to all commands. Its purpose is to configure a Log file to save console output to, useful in situations when the console log overflows.

@polywrap/cli-js:

  • PR-1359 Polywrap CLI JS Wrapper
    • Created the polywrap/cli-js package to wrap the polywrap CLI with a JavaScript/TypeScript interface.

@polywrap/polywrap-manifest-schemas:

  • PR-1430 Support Arbitrary Resources Files
    • Added version 0.3.0 of the PolywrapManifest, which includes the new resources: string field.

@polywrap/polywrap-manifest-types-js:

  • PR-1379 Add Logging to Manifest Migrators
    • Added an optional logger parameter to the deserialization function of all manifest types.
  • PR-1430 Support Arbitrary Resources Files
    • Added version 0.3.0 of the PolywrapManifest, which includes the new resources: string field.

@polywrap/schema-bind:

  • PR-1677 Python Plugin Support
    • Add bindings for plugin/python projects.
  • PR-1464 wasm/rust Bindings Now Use ModuleTrait Trait
    • Codegen for wasm/rust wraps now generates a ModuleTrait trait that must be implemented for the root Module struct.
  • PR-1460 wasm/assemblyscript Bindings Now Use ModuleBase Interface
    • Codegen for wasm/assemblyscript wraps now generates a ModuleBase interface that must be extended by a root Module class.
  • PR-1428 Rust Plugin Support
    • Add bindings for plugin/rust projects.
  • PR-1236 Plugin Refactor
    • In plugin-ts bindings, the PluginModule type is now imported fron @polywrap/plugin-js instead of @polywrap/core-js.

@polywrap/schema-compose:

  • PR-1600 Allow WRAP URIs in Un-Namespaced Imports
    • Support URIs within un-namespaced import statements like so #import { Object, Module } from "wrap://..."
    • This effectively enables the "embedding" of external ABIs, which is useful when you'd like to copy 1:1 an ABI that lives elsewhere.

JS Client

@polywrap/client-js:

  • PR-1582 Support ENS Text Record WRAP URIs
    • Support has been added for using ENS text records as valid wrap:// URIs.
    • Example: wrap://ens/uniswap.wraps.eth:v3
    • NOTE: Text record key names must begin with wrap/
  • PR-1431 WRAP Error Structure
    • Integrate the WrapError structure, helping debug common client error scenarios.
  • PR-1340 Wrapper Validation
    • Added a validate(uri, options) method to the PolywrapClient class, allowing users to guarantee the client can communicate with the provided wrapper located at the provided URI.
  • PR-1236 Plugin Refactor
    • Polywrap Client now re-exports the config builder and uri-resolvers (in addition to core) packages. This is done to improve dev exp and remove the need for users to import those package themselves.
      • For users who do not need those packages and are using noDefaults there will be a separate PR that refactor core client functionality into a core-client package that does not depend on the config builder and uri-resolvers packages, but has no defaults.

@polywrap/client-config-builder-js:

  • PR-1582 Integrate URI Resolver Extension Wraps
  • PR-1560 Add BuildOptions to build method in IClientConfigBuilder
    • This makes it possible to add a custom cache or resolver without casting.
  • PR-1475 Embed IPFS HTTP Client & IPFS URI Resolver Wraps
    • The default configuration bundle now comes with two embedded wraps that enable interactions with IPFS:
      • ipfs-http-client @ wrap://ens/wraps.eth:ipfs-http-client@1.0.0
      • async-ipfs-uri-resolver-ext @ wrap://ens/wraps.eth:async-ipfs-uri-resolver-ext@1.0.1
  • PR-1518 Optional Build Method Arguments
    • The build(...) method now accepts a single argument of type BuildOptions.
  • PR-1496 Use New Concurrent Wrapper
    • The default config bundle now uses the wrap://ens/wrappers.polywrap.eth:concurrent@1.0.0 interface, and adds the concurrent-plugin-js package @ wrap://plugin/concurrent as an implementation.
  • PR-1468 Export Default Config Bundle URIs
    • The default config now exports constants for all URIs used within the config.
  • PR-1436 Use New Logger Wrapper
    • The default config bundle now uses the wrap://ens/wrappers.polywrap.eth:logger@1.0.0 interface, and adds the @polywrap/logger-plugin-js package @ wrap://plugin/logger as an implementation.
  • PR-1411 Add ens-text-record-resolver to Default Config Bundle
    • The ens-text-record-resolver wrapper @ wrap://ipfs/QmfRCVA1MSAjUbrXXjya4xA9QHkbWeiKRsT7Um1cvrR7FY has been added to the default client config bundle. This resolver enables ENS, text-record based, WRAP URI resolution. The text-record's key must be prepended with the wrap/... identifier. For example, the URI wrap://ens/domain.eth:foo maps to domain.eth's wrap/foo text record. The wrap/foo text-record's value must contain another valid WRAP URI. For examples, see dev.polywrap.eth.
  • PR-1236 Plugin Refactor
    • Added addRedirects, addWrappers, addPackages methods to the ClientConfigBuilder, so users can add many items at once.
    • Added buildDefault to the ClientConfigBuilder which builds a ClientConfig using default resolvers.

@polywrap/plugin-js:

  • PR-1614 Add env To PluginModule Invocation Method Arguments
    • `Plug...
Read more

Polywrap Origin (0.9.7)

28 Mar 21:54
272689e
Compare
Choose a tag to compare

Polywrap Origin (0.9.7)

Bugs

  • PR-1635 @polywrap/templates: Fix the ts-node template code as it wouldn't build without changes.

Polywrap Origin (0.9.6)

19 Feb 07:38
e205ea8
Compare
Choose a tag to compare

Polywrap Origin (0.9.6)

Bugs

  • PR-1565 @polywrap/ipfs-plugin-js: Added optional support for provider authentication via the plugin's environment variables.
  • PR-1559 @polywrap/client-config-builder-js, @polywrap/ipfs-resolver-plugin-js: Add the concept of configurable retries to the IPFS resolver.
  • PR-1558 @polywrap/core-js: WrapError now correctly parsing Rust unwrap errors.

Polywrap Origin (0.9.5)

10 Feb 23:18
f27bea8
Compare
Choose a tag to compare

Polywrap Origin (0.9.5)

Bugs

  • PR-1541 polywrap CLI: Update build images to use the latest multi-platform versions.
  • PR-1517 polywrap CLI: Fix the build command's --watch option.
  • PR-1512 @polywrap/client-js, @polywrap/core-js: Created a custom WrapError structure that improves debugging ability for common client error scenarios.
  • PR-1509 @polywrap/core-js: Correct typings for the URI resolver interface, and handle null return values.

Polywrap Origin (0.9.4)

04 Nov 01:39
a2b86c8
Compare
Choose a tag to compare

Polywrap Origin (0.9.4)

Bugs

  • PR-1372 @polywrap/schema-parse, @polywrap/schema-compose: Fixed a bug when importing type with map properties that use imported types.
  • PR-1380 polywrap CLI: Add informative logging when manifests are automatically migrated.
  • PR-1356 polywrap CLI: Building interface projects should not require docker.
  • PR-1374 @polywrap/ethereum-plugin-js: Update README.
  • PR-1381 @polywrap/templates: Add https://ipfs.wrappers.io gateway to IPFS deployment step for interface project.

Polywrap Origin (0.9.3)

20 Oct 10:26
8c0d351
Compare
Choose a tag to compare

Polywrap Origin (0.9.3)

Bugs

  • PR-1344 @polywrap/cli: Improve workflow validation.
  • PR-1345 @polywrap/cli: The ens-recursive-name-register deploy step now properly registers ENS sub-domains recursively.
  • PR-1342 @polywrap/polywrap-manifest-schemas: Accept @ character in folder paths.
  • PR-1333 @polywrap/client-js: Added TsDoc comments to the PolywrapClient class.
  • PR-1337 @polywrap/schema-bind: In Rust bindings, enum imports are now added in serialization modules when the enum is a subtype of an array (Vec) or map.