Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/asyncify/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polywrap/asyncify-js",
"description": "Async Wasm Imports Support Using Asyncify",
"version": "0.10.1",
"version": "0.11.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
26 changes: 13 additions & 13 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polywrap/client-js",
"description": "Polywrap JavaScript Client",
"version": "0.10.1",
"version": "0.11.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,21 +23,21 @@
"build:readme": "yarn doc-snippets combine"
},
"dependencies": {
"@polywrap/client-config-builder-js": "0.10.1",
"@polywrap/core-client-js": "0.10.1",
"@polywrap/core-js": "0.10.1",
"@polywrap/msgpack-js": "0.10.1",
"@polywrap/plugin-js": "0.10.1",
"@polywrap/result": "0.10.1",
"@polywrap/tracing-js": "0.10.1",
"@polywrap/uri-resolver-extensions-js": "0.10.1",
"@polywrap/uri-resolvers-js": "0.10.1",
"@polywrap/wrap-manifest-types-js": "0.10.1"
"@polywrap/client-config-builder-js": "0.11.0",
"@polywrap/core-client-js": "0.11.0",
"@polywrap/core-js": "0.11.0",
"@polywrap/msgpack-js": "0.11.0",
"@polywrap/plugin-js": "0.11.0",
"@polywrap/result": "0.11.0",
"@polywrap/tracing-js": "0.11.0",
"@polywrap/uri-resolver-extensions-js": "0.11.0",
"@polywrap/uri-resolvers-js": "0.11.0",
"@polywrap/wrap-manifest-types-js": "0.11.0"
},
"devDependencies": {
"@polywrap/cli-js": "~0.10.0",
"@polywrap/sys-config-bundle-js": "0.10.1",
"@polywrap/test-cases": "0.10.1",
"@polywrap/sys-config-bundle-js": "0.11.0",
"@polywrap/test-cases": "0.11.0",
"@types/jest": "29.5.0",
"@types/prettier": "2.6.0",
"@types/uuid": "8.3.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/config-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Add client configuration with [add](#add), or flexibly mix and match builder [co

// add or remove items by chaining method calls
builder
.setPackage("wrap://plugin/package", httpPlugin({}))
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
.removePackage("wrap://plugin/package")
.setPackages({
"wrap://plugin/http": httpPlugin({}),
"wrap://plugin/filesystem": fileSystemPlugin({}),
"wrap://plugin/http": httpPlugin({}) as IWrapPackage,
"wrap://plugin/filesystem": fileSystemPlugin({}) as IWrapPackage,
});
```

Expand Down Expand Up @@ -105,10 +105,10 @@ A complete example using all or most of the available methods.

// add and remove wrap packages
builder
.setPackage("wrap://plugin/package", httpPlugin({}))
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
.removePackage("wrap://plugin/package")
.setPackages({
"wrap://plugin/package": httpPlugin({}),
"wrap://plugin/package": httpPlugin({}) as IWrapPackage,
});

// add and remove Envs
Expand Down
12 changes: 6 additions & 6 deletions packages/config-builder/examples/quickstart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
ResolutionResultCache,
} from "@polywrap/uri-resolvers-js";
import { fileSystemPlugin } from "@polywrap/file-system-plugin-js";
import { CoreClientConfig } from "@polywrap/core-js";
import { CoreClientConfig, IWrapPackage } from "@polywrap/core-js";

export function initialize(): PolywrapClientConfigBuilder {
// $start: quickstart-initialize
Expand All @@ -35,11 +35,11 @@ export function configure(): PolywrapClientConfigBuilder {

// add or remove items by chaining method calls
builder
.setPackage("wrap://plugin/package", httpPlugin({}))
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
.removePackage("wrap://plugin/package")
.setPackages({
"wrap://plugin/http": httpPlugin({}),
"wrap://plugin/filesystem": fileSystemPlugin({}),
"wrap://plugin/http": httpPlugin({}) as IWrapPackage,
"wrap://plugin/filesystem": fileSystemPlugin({}) as IWrapPackage,
});
// $end

Expand Down Expand Up @@ -108,10 +108,10 @@ export async function example(): Promise<CoreClientConfig> {

// add and remove wrap packages
builder
.setPackage("wrap://plugin/package", httpPlugin({}))
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
.removePackage("wrap://plugin/package")
.setPackages({
"wrap://plugin/package": httpPlugin({}),
"wrap://plugin/package": httpPlugin({}) as IWrapPackage,
});

// add and remove Envs
Expand Down
18 changes: 9 additions & 9 deletions packages/config-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polywrap/client-config-builder-js",
"description": "Polywrap JavaScript Client configuration",
"version": "0.10.1",
"version": "0.11.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -22,14 +22,14 @@
"build:readme": "yarn doc-snippets combine"
},
"dependencies": {
"@polywrap/core-js": "0.10.1",
"@polywrap/config-bundle-types-js": "0.10.1",
"@polywrap/plugin-js": "0.10.1",
"@polywrap/sys-config-bundle-js": "0.10.1",
"@polywrap/uri-resolver-extensions-js": "0.10.1",
"@polywrap/uri-resolvers-js": "0.10.1",
"@polywrap/wasm-js": "0.10.1",
"@polywrap/web3-config-bundle-js": "0.10.1"
"@polywrap/config-bundle-types-js": "0.11.0",
"@polywrap/core-js": "0.11.0",
"@polywrap/plugin-js": "0.11.0",
"@polywrap/sys-config-bundle-js": "0.11.0",
"@polywrap/uri-resolver-extensions-js": "0.11.0",
"@polywrap/uri-resolvers-js": "0.11.0",
"@polywrap/wasm-js": "0.11.0",
"@polywrap/web3-config-bundle-js": "0.11.0"
},
"devDependencies": {
"@types/jest": "29.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/config-bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polywrap/config-bundle-types-js",
"version": "0.10.1",
"version": "0.11.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -15,7 +15,7 @@
"lint": "eslint --color -c ../../.eslintrc.js src/"
},
"dependencies": {
"@polywrap/core-js": "~0.10.1"
"@polywrap/core-js": "0.11.0"
},
"devDependencies": {
"rimraf": "3.0.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/config-bundles/sys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ import * as httpResolver from "./embeds/http-resolver/wrap";
export const bundle: Bundle = {
logger: {
uri: "plugin/logger@1.0.0",
package: loggerPlugin({}),
package: loggerPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:logger@1.0.0"],
redirectFrom: ["ens/wraps.eth:logger@1.0.0"],
},
datetime: {
uri: "plugin/datetime@1.0.0",
package: dateTimePlugin({}),
package: dateTimePlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:datetime@1.0.0"],
redirectFrom: ["ens/wraps.eth:datetime@1.0.0"],
},
concurrent: {
uri: "plugin/concurrent@1.0.0",
package: concurrentPromisePlugin({}),
package: concurrentPromisePlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:concurrent@1.0.0"],
redirectFrom: ["ens/wraps.eth:concurrent@1.0.0"],
},
http: {
uri: "plugin/http@1.1.0",
package: httpPlugin({}),
package: httpPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
redirectFrom: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
},
Expand All @@ -59,7 +59,7 @@ export const bundle: Bundle = {
...Common.bundle,
fileSystem: {
uri: "plugin/file-system@1.0.0",
package: fileSystemPlugin({}),
package: fileSystemPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:file-system@1.0.0"],
redirectFrom: ["ens/wraps.eth:file-system@1.0.0"],
},
Expand Down
30 changes: 22 additions & 8 deletions packages/config-bundles/sys/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polywrap/sys-config-bundle-js",
"version": "0.10.1",
"version": "0.11.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -17,13 +17,13 @@
"lint": "eslint --color -c ../../../.eslintrc.js src/"
},
"dependencies": {
"@polywrap/config-bundle-types-js": "~0.10.1",
"@polywrap/concurrent-plugin-js": "~0.10.0",
"@polywrap/config-bundle-types-js": "0.11.0",
"@polywrap/datetime-plugin-js": "~0.10.0",
"@polywrap/file-system-plugin-js": "~0.10.0",
"@polywrap/http-plugin-js": "~0.10.0",
"@polywrap/logger-plugin-js": "~0.10.0",
"@polywrap/uri-resolver-extensions-js": "~0.10.1",
"@polywrap/uri-resolver-extensions-js": "0.11.0",
"base64-to-uint8array": "1.0.0"
},
"devDependencies": {
Expand All @@ -36,7 +36,9 @@
},
"doc-snippets": {
"extract": {
"include": ["./src/**/*.{ts,tsx,json,yaml,txt,md,graphql,cue}"],
"include": [
"./src/**/*.{ts,tsx,json,yaml,txt,md,graphql,cue}"
],
"ignore": [
"./**/node_modules/**",
"./**/.polywrap/**",
Expand All @@ -49,12 +51,24 @@
"include": "./README.md"
},
"startTokens": [
{ "pattern": "$start: ", "inline": false },
{ "pattern": "/* $: {SNIPPET_NAME} */", "inline": true }
{
"pattern": "$start: ",
"inline": false
},
{
"pattern": "/* $: {SNIPPET_NAME} */",
"inline": true
}
],
"endTokens": [
{ "pattern": "$end", "inline": false },
{ "pattern": "/* $ */", "inline": true }
{
"pattern": "$end",
"inline": false
},
{
"pattern": "/* $ */",
"inline": true
}
],
"outputDir": "./"
}
Expand Down
9 changes: 5 additions & 4 deletions packages/config-bundles/sys/src/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable */
import { IWrapPackage } from "@polywrap/core-js";
import { Bundle } from "@polywrap/config-bundle-types-js";
import { ExtendableUriResolver } from "@polywrap/uri-resolver-extensions-js";

Expand All @@ -12,25 +13,25 @@ import * as httpResolver from "./embeds/http-resolver/wrap";
export const bundle: Bundle = {
logger: {
uri: "plugin/logger@1.0.0",
package: loggerPlugin({}),
package: loggerPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:logger@1.0.0"],
redirectFrom: ["ens/wraps.eth:logger@1.0.0"],
},
datetime: {
uri: "plugin/datetime@1.0.0",
package: dateTimePlugin({}),
package: dateTimePlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:datetime@1.0.0"],
redirectFrom: ["ens/wraps.eth:datetime@1.0.0"],
},
concurrent: {
uri: "plugin/concurrent@1.0.0",
package: concurrentPromisePlugin({}),
package: concurrentPromisePlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:concurrent@1.0.0"],
redirectFrom: ["ens/wraps.eth:concurrent@1.0.0"],
},
http: {
uri: "plugin/http@1.1.0",
package: httpPlugin({}),
package: httpPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
redirectFrom: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
},
Expand Down
3 changes: 2 additions & 1 deletion packages/config-bundles/sys/src/node.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable */
import * as Common from "./common";

import { IWrapPackage } from "@polywrap/core-js";
import { Bundle } from "@polywrap/config-bundle-types-js";
import { ExtendableUriResolver } from "@polywrap/uri-resolver-extensions-js";

Expand All @@ -12,7 +13,7 @@ export const bundle: Bundle = {
...Common.bundle,
fileSystem: {
uri: "plugin/file-system@1.0.0",
package: fileSystemPlugin({}),
package: fileSystemPlugin({}) as IWrapPackage,
implements: ["ens/wraps.eth:file-system@1.0.0"],
redirectFrom: ["ens/wraps.eth:file-system@1.0.0"],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/config-bundles/web3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const bundle: Bundle = {
}),
},
}),
}),
}) as IWrapPackage,
implements: [
"ens/wraps.eth:ethereum-provider@1.1.0",
"ens/wraps.eth:ethereum-provider@1.0.0",
Expand All @@ -59,7 +59,7 @@ export const bundle: Bundle = {
}),
},
}),
}),
}) as IWrapPackage,
implements: ["ens/wraps.eth:ethereum-provider@2.0.0"],
redirectFrom: ["ens/wraps.eth:ethereum-provider@2.0.0"],
},
Expand Down
Loading