Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Polywrap Origin (0.10.0-pre.1)
Features
@polywrap/client-config-builder-js
: Theens-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 thewrap/...
identifier. For example, the URIwrap://ens/domain.eth:foo
maps todomain.eth
'swrap/foo
text record. Thewrap/foo
text-record's value must contain another valid WRAP URI. For examples, see dev.polywrap.eth.@polywrap/client-js
: 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.@polywrap/client-config-builder-js
:addRedirects
,addWrappers
,addPackages
methods to theClientConfigBuilder
, so users can add many items at once.buildDefault
to theClientConfigBuilder
which builds aClientConfig
using default resolvers.@polywrap/plugin-js
:PluginPackage.from
.manifest
and aPluginModule
, or an inlinePluginModule
.@polywrap/uri-resolvers-js
: AddedStaticResolver
andStaticResolver.from
to optimize building resolvers withIUriRedirect
,IUriWrapper
andIUriPackage
.@polywrap/schema-bind
: Inplugin-ts
bindings, thePluginModule
type is now imported fron@polywrap/plugin-js
instead of@polywrap/core-js
.polywrap
CLI: A-l, --log-file [path]
option has been added to all commands. Its purpose is to configure aLog file to save console output to
, useful in situations when the console log overflows.Breaking Changes
polywrap
CLI: The JS/TS module passed into the--client-config
option has a new entrypoint signature.getCustomConfig
, users should export the followingconfigure(builder: IClientConfigBuilder): IClientConfigBuilder
.IClientConfigBuilder
can be imported from the@polywrap/client-config-builder-js
package.@polywrap/client-config-builder-js
: RenamedremoveUriRedirect(...)
toremoveRedirect(...)
.@polywrap/client-js
:noDefaults: false
no longer accepts aplugins
field, but it acceptswrappers
andpackages
.resolver
field has been replaced withresolvers
, since with default client the resolver used is theRecursiveResolver
with thePackageToWrapperCacheResolver
.noDefaults: true
, no longer accepts aplugins
field. It is expected that devs using this option will manually configure their own resolver.getPlugins
andgetPluginByUri
. Will addgetWrapper
,getWrapperByUri
,getPackage
,getPackageByUri
, in a follow up PR.createPolywrapClient
function has been deleted from the client-js package as it is unnecessary@polywrap/client-config-builder-js
:CustomClientConfig
which doesn't haveplugins
and aresolver
, but now haswrappers
,packages
andresolvers
CustomClientConfig
, which can be used with defaults from thePolywrapClient
, but can not be used ifnoDefaults: true
is passed to thePolywrapClient
constructor.addPlugin
from theClientConfigBuilder
, users can now useaddWrapper
oraddPackage
where appropriate.addUriRedirect
toaddRedirect
to keep it inline withaddWrapper
andaddPackage
(IUriRedirect, IUriWrapper, IUriPackage)@polywrap/core-js
:UriRedirect
toIUriRedirect
to matchIUriWrapper
andIUriPackage
IUriRedirect
,IUriWrapper
andIUriPackage
are now generic and their generic param implementsUri | string
options
argument fromclient.getManifest
method since all wrappers have a deserialized manifest@polywrap/react
plugins
on thePolywrapProvider
withwrappers
andpackages
@polywrap/uri-resolvers-js
:buildUriResolver
withUriResolver.from
RecursiveResolver
andPackageToWrapperCacheResolver
now accept a concreteIUriResolver
while their staticfrom
methods accept aUriResolverLike
PluginsResolver
andPluginResolver
, users can now useWrapperResolver
orPackageResolver
polywrap
CLI: Rename therun
command totest
, which uses thetest
project extension, as defined in thepolywrap.test.yaml
manifest file.@polywrap/logging-js
: Moved the logging interface from the CLI's lib into its own package.@polywrap/polywrap-manifest-types-js
: Added an optional logger parameter to the deserialization function of all manifest types.@polywrap/ethereum-plugin-js
: Added asignMessageBytes
method.Bugs
polywrap
CLI: Updated the CLI's README.polywrap
CLI: Automatically upgrading manifests now emits a warning, suggesting users to upgrade their manifest.polywrap
CLI: Invokeasc
usingnpx
to help with program resolution.@polywrap/templates
: Add thehttps://ipfs.wrappers.io
gateway to the interface template'spolywrap.deploy.yaml
manifest.@polywrap/ethereum-plugin-js
: Update README to latest code.polywrap
CLI: Update error messaging for the--client-config
option.