Skip to content

Commit 21e1a32

Browse files
authored
Merge pull request #52 from polywrap-release-forks/release/origin-0.11.0
Polywrap Origin (0.11.0)
2 parents a544faf + d484495 commit 21e1a32

File tree

25 files changed

+215
-130
lines changed

25 files changed

+215
-130
lines changed

packages/asyncify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polywrap/asyncify-js",
33
"description": "Async Wasm Imports Support Using Asyncify",
4-
"version": "0.10.1",
4+
"version": "0.11.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

packages/client/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polywrap/client-js",
33
"description": "Polywrap JavaScript Client",
4-
"version": "0.10.1",
4+
"version": "0.11.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",
@@ -23,21 +23,21 @@
2323
"build:readme": "yarn doc-snippets combine"
2424
},
2525
"dependencies": {
26-
"@polywrap/client-config-builder-js": "0.10.1",
27-
"@polywrap/core-client-js": "0.10.1",
28-
"@polywrap/core-js": "0.10.1",
29-
"@polywrap/msgpack-js": "0.10.1",
30-
"@polywrap/plugin-js": "0.10.1",
31-
"@polywrap/result": "0.10.1",
32-
"@polywrap/tracing-js": "0.10.1",
33-
"@polywrap/uri-resolver-extensions-js": "0.10.1",
34-
"@polywrap/uri-resolvers-js": "0.10.1",
35-
"@polywrap/wrap-manifest-types-js": "0.10.1"
26+
"@polywrap/client-config-builder-js": "0.11.0",
27+
"@polywrap/core-client-js": "0.11.0",
28+
"@polywrap/core-js": "0.11.0",
29+
"@polywrap/msgpack-js": "0.11.0",
30+
"@polywrap/plugin-js": "0.11.0",
31+
"@polywrap/result": "0.11.0",
32+
"@polywrap/tracing-js": "0.11.0",
33+
"@polywrap/uri-resolver-extensions-js": "0.11.0",
34+
"@polywrap/uri-resolvers-js": "0.11.0",
35+
"@polywrap/wrap-manifest-types-js": "0.11.0"
3636
},
3737
"devDependencies": {
3838
"@polywrap/cli-js": "~0.10.0",
39-
"@polywrap/sys-config-bundle-js": "0.10.1",
40-
"@polywrap/test-cases": "0.10.1",
39+
"@polywrap/sys-config-bundle-js": "0.11.0",
40+
"@polywrap/test-cases": "0.11.0",
4141
"@types/jest": "29.5.0",
4242
"@types/prettier": "2.6.0",
4343
"@types/uuid": "8.3.0",

packages/config-builder/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Add client configuration with [add](#add), or flexibly mix and match builder [co
3232

3333
// add or remove items by chaining method calls
3434
builder
35-
.setPackage("wrap://plugin/package", httpPlugin({}))
35+
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
3636
.removePackage("wrap://plugin/package")
3737
.setPackages({
38-
"wrap://plugin/http": httpPlugin({}),
39-
"wrap://plugin/filesystem": fileSystemPlugin({}),
38+
"wrap://plugin/http": httpPlugin({}) as IWrapPackage,
39+
"wrap://plugin/filesystem": fileSystemPlugin({}) as IWrapPackage,
4040
});
4141
```
4242

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

106106
// add and remove wrap packages
107107
builder
108-
.setPackage("wrap://plugin/package", httpPlugin({}))
108+
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
109109
.removePackage("wrap://plugin/package")
110110
.setPackages({
111-
"wrap://plugin/package": httpPlugin({}),
111+
"wrap://plugin/package": httpPlugin({}) as IWrapPackage,
112112
});
113113

114114
// add and remove Envs

packages/config-builder/examples/quickstart.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ResolutionResultCache,
99
} from "@polywrap/uri-resolvers-js";
1010
import { fileSystemPlugin } from "@polywrap/file-system-plugin-js";
11-
import { CoreClientConfig } from "@polywrap/core-js";
11+
import { CoreClientConfig, IWrapPackage } from "@polywrap/core-js";
1212

1313
export function initialize(): PolywrapClientConfigBuilder {
1414
// $start: quickstart-initialize
@@ -35,11 +35,11 @@ export function configure(): PolywrapClientConfigBuilder {
3535

3636
// add or remove items by chaining method calls
3737
builder
38-
.setPackage("wrap://plugin/package", httpPlugin({}))
38+
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
3939
.removePackage("wrap://plugin/package")
4040
.setPackages({
41-
"wrap://plugin/http": httpPlugin({}),
42-
"wrap://plugin/filesystem": fileSystemPlugin({}),
41+
"wrap://plugin/http": httpPlugin({}) as IWrapPackage,
42+
"wrap://plugin/filesystem": fileSystemPlugin({}) as IWrapPackage,
4343
});
4444
// $end
4545

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

109109
// add and remove wrap packages
110110
builder
111-
.setPackage("wrap://plugin/package", httpPlugin({}))
111+
.setPackage("wrap://plugin/package", httpPlugin({}) as IWrapPackage)
112112
.removePackage("wrap://plugin/package")
113113
.setPackages({
114-
"wrap://plugin/package": httpPlugin({}),
114+
"wrap://plugin/package": httpPlugin({}) as IWrapPackage,
115115
});
116116

117117
// add and remove Envs

packages/config-builder/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@polywrap/client-config-builder-js",
33
"description": "Polywrap JavaScript Client configuration",
4-
"version": "0.10.1",
4+
"version": "0.11.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",
@@ -22,14 +22,14 @@
2222
"build:readme": "yarn doc-snippets combine"
2323
},
2424
"dependencies": {
25-
"@polywrap/core-js": "0.10.1",
26-
"@polywrap/config-bundle-types-js": "0.10.1",
27-
"@polywrap/plugin-js": "0.10.1",
28-
"@polywrap/sys-config-bundle-js": "0.10.1",
29-
"@polywrap/uri-resolver-extensions-js": "0.10.1",
30-
"@polywrap/uri-resolvers-js": "0.10.1",
31-
"@polywrap/wasm-js": "0.10.1",
32-
"@polywrap/web3-config-bundle-js": "0.10.1"
25+
"@polywrap/config-bundle-types-js": "0.11.0",
26+
"@polywrap/core-js": "0.11.0",
27+
"@polywrap/plugin-js": "0.11.0",
28+
"@polywrap/sys-config-bundle-js": "0.11.0",
29+
"@polywrap/uri-resolver-extensions-js": "0.11.0",
30+
"@polywrap/uri-resolvers-js": "0.11.0",
31+
"@polywrap/wasm-js": "0.11.0",
32+
"@polywrap/web3-config-bundle-js": "0.11.0"
3333
},
3434
"devDependencies": {
3535
"@types/jest": "29.5.0",

packages/config-bundle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polywrap/config-bundle-types-js",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -15,7 +15,7 @@
1515
"lint": "eslint --color -c ../../.eslintrc.js src/"
1616
},
1717
"dependencies": {
18-
"@polywrap/core-js": "~0.10.1"
18+
"@polywrap/core-js": "0.11.0"
1919
},
2020
"devDependencies": {
2121
"rimraf": "3.0.2",

packages/config-bundles/sys/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ import * as httpResolver from "./embeds/http-resolver/wrap";
1414
export const bundle: Bundle = {
1515
logger: {
1616
uri: "plugin/logger@1.0.0",
17-
package: loggerPlugin({}),
17+
package: loggerPlugin({}) as IWrapPackage,
1818
implements: ["ens/wraps.eth:logger@1.0.0"],
1919
redirectFrom: ["ens/wraps.eth:logger@1.0.0"],
2020
},
2121
datetime: {
2222
uri: "plugin/datetime@1.0.0",
23-
package: dateTimePlugin({}),
23+
package: dateTimePlugin({}) as IWrapPackage,
2424
implements: ["ens/wraps.eth:datetime@1.0.0"],
2525
redirectFrom: ["ens/wraps.eth:datetime@1.0.0"],
2626
},
2727
concurrent: {
2828
uri: "plugin/concurrent@1.0.0",
29-
package: concurrentPromisePlugin({}),
29+
package: concurrentPromisePlugin({}) as IWrapPackage,
3030
implements: ["ens/wraps.eth:concurrent@1.0.0"],
3131
redirectFrom: ["ens/wraps.eth:concurrent@1.0.0"],
3232
},
3333
http: {
3434
uri: "plugin/http@1.1.0",
35-
package: httpPlugin({}),
35+
package: httpPlugin({}) as IWrapPackage,
3636
implements: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
3737
redirectFrom: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
3838
},
@@ -59,7 +59,7 @@ export const bundle: Bundle = {
5959
...Common.bundle,
6060
fileSystem: {
6161
uri: "plugin/file-system@1.0.0",
62-
package: fileSystemPlugin({}),
62+
package: fileSystemPlugin({}) as IWrapPackage,
6363
implements: ["ens/wraps.eth:file-system@1.0.0"],
6464
redirectFrom: ["ens/wraps.eth:file-system@1.0.0"],
6565
},

packages/config-bundles/sys/package.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polywrap/sys-config-bundle-js",
3-
"version": "0.10.1",
3+
"version": "0.11.0",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -17,13 +17,13 @@
1717
"lint": "eslint --color -c ../../../.eslintrc.js src/"
1818
},
1919
"dependencies": {
20-
"@polywrap/config-bundle-types-js": "~0.10.1",
2120
"@polywrap/concurrent-plugin-js": "~0.10.0",
21+
"@polywrap/config-bundle-types-js": "0.11.0",
2222
"@polywrap/datetime-plugin-js": "~0.10.0",
2323
"@polywrap/file-system-plugin-js": "~0.10.0",
2424
"@polywrap/http-plugin-js": "~0.10.0",
2525
"@polywrap/logger-plugin-js": "~0.10.0",
26-
"@polywrap/uri-resolver-extensions-js": "~0.10.1",
26+
"@polywrap/uri-resolver-extensions-js": "0.11.0",
2727
"base64-to-uint8array": "1.0.0"
2828
},
2929
"devDependencies": {
@@ -36,7 +36,9 @@
3636
},
3737
"doc-snippets": {
3838
"extract": {
39-
"include": ["./src/**/*.{ts,tsx,json,yaml,txt,md,graphql,cue}"],
39+
"include": [
40+
"./src/**/*.{ts,tsx,json,yaml,txt,md,graphql,cue}"
41+
],
4042
"ignore": [
4143
"./**/node_modules/**",
4244
"./**/.polywrap/**",
@@ -49,12 +51,24 @@
4951
"include": "./README.md"
5052
},
5153
"startTokens": [
52-
{ "pattern": "$start: ", "inline": false },
53-
{ "pattern": "/* $: {SNIPPET_NAME} */", "inline": true }
54+
{
55+
"pattern": "$start: ",
56+
"inline": false
57+
},
58+
{
59+
"pattern": "/* $: {SNIPPET_NAME} */",
60+
"inline": true
61+
}
5462
],
5563
"endTokens": [
56-
{ "pattern": "$end", "inline": false },
57-
{ "pattern": "/* $ */", "inline": true }
64+
{
65+
"pattern": "$end",
66+
"inline": false
67+
},
68+
{
69+
"pattern": "/* $ */",
70+
"inline": true
71+
}
5872
],
5973
"outputDir": "./"
6074
}

packages/config-bundles/sys/src/common.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-disable */
2+
import { IWrapPackage } from "@polywrap/core-js";
23
import { Bundle } from "@polywrap/config-bundle-types-js";
34
import { ExtendableUriResolver } from "@polywrap/uri-resolver-extensions-js";
45

@@ -12,25 +13,25 @@ import * as httpResolver from "./embeds/http-resolver/wrap";
1213
export const bundle: Bundle = {
1314
logger: {
1415
uri: "plugin/logger@1.0.0",
15-
package: loggerPlugin({}),
16+
package: loggerPlugin({}) as IWrapPackage,
1617
implements: ["ens/wraps.eth:logger@1.0.0"],
1718
redirectFrom: ["ens/wraps.eth:logger@1.0.0"],
1819
},
1920
datetime: {
2021
uri: "plugin/datetime@1.0.0",
21-
package: dateTimePlugin({}),
22+
package: dateTimePlugin({}) as IWrapPackage,
2223
implements: ["ens/wraps.eth:datetime@1.0.0"],
2324
redirectFrom: ["ens/wraps.eth:datetime@1.0.0"],
2425
},
2526
concurrent: {
2627
uri: "plugin/concurrent@1.0.0",
27-
package: concurrentPromisePlugin({}),
28+
package: concurrentPromisePlugin({}) as IWrapPackage,
2829
implements: ["ens/wraps.eth:concurrent@1.0.0"],
2930
redirectFrom: ["ens/wraps.eth:concurrent@1.0.0"],
3031
},
3132
http: {
3233
uri: "plugin/http@1.1.0",
33-
package: httpPlugin({}),
34+
package: httpPlugin({}) as IWrapPackage,
3435
implements: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
3536
redirectFrom: ["ens/wraps.eth:http@1.1.0", "ens/wraps.eth:http@1.0.0"],
3637
},

packages/config-bundles/sys/src/node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable */
22
import * as Common from "./common";
33

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

@@ -12,7 +13,7 @@ export const bundle: Bundle = {
1213
...Common.bundle,
1314
fileSystem: {
1415
uri: "plugin/file-system@1.0.0",
15-
package: fileSystemPlugin({}),
16+
package: fileSystemPlugin({}) as IWrapPackage,
1617
implements: ["ens/wraps.eth:file-system@1.0.0"],
1718
redirectFrom: ["ens/wraps.eth:file-system@1.0.0"],
1819
},

0 commit comments

Comments
 (0)