Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f4b9102
Merge pull request #53 from polywrap/origin-0.11
dOrgJelli Jun 27, 2023
f1a1a0d
Merge pull request #54 from polywrap/origin-0.11-dev
dOrgJelli Jun 27, 2023
ca198e3
added github resolver to Sys common bundle
krisbitney Jul 1, 2023
a73316e
adjusted position of github resolver because it needs to be ahead of …
krisbitney Jul 1, 2023
54473d3
added wrapscan resolver to common bundle
nerfZael Jul 5, 2023
ca8b3b5
added wrapscan uri resolver to defaultExtInterfaceUris
nerfZael Jul 6, 2023
00de254
add embed script to sys bundle, update embedded HTTP client
pileks Jul 12, 2023
02b7e33
move ipfs-related wraps to sys/common bundle
pileks Jul 12, 2023
fb0a288
Merge pull request #56 from polywrap/nerfzael-wrapscan-uri-resolver
dOrgJelli Jul 12, 2023
20fed89
prepare 0.12-pre.1 release
pileks Jul 12, 2023
46d0b89
Merge pull request #57 from polywrap/prep-0.12-pre.1
dOrgJelli Jul 12, 2023
ffb3e1f
chore: trigger CD | /workflows/release-pr
dOrgJelli Jul 12, 2023
e1d4ae6
Merge pull request #58 from polywrap/trigger-pre-release
dOrgJelli Jul 12, 2023
bdb7c68
build(release): migrate to 0.12.0-pre.1
polywrap-build-bot Jul 12, 2023
ecec03a
0.12.0-pre.1
polywrap-build-bot Jul 12, 2023
64c658e
Merge pull request #59 from polywrap-release-forks/release/origin-0.1…
dOrgJelli Jul 12, 2023
d48a2da
Merge branch 'origin-dev' into kris/add-github-resolver
dOrgJelli Jul 16, 2023
497d7ec
remove missing global fail() function from tests
pileks Jul 17, 2023
009a54f
Merge pull request #60 from polywrap/pileks/chore/remove-fail-from-tests
dOrgJelli Jul 18, 2023
9f03eca
Merge pull request #55 from polywrap/kris/add-github-resolver
dOrgJelli Jul 18, 2023
f36312f
URI authority should start with word characters
pileks Jul 19, 2023
6e19bd0
Merge pull request #61 from polywrap/pileks/bugfix/uri-authority-word…
dOrgJelli Jul 19, 2023
e769026
client config - common bundle uses wrapscan URIs
pileks Jul 21, 2023
0a6f6f3
update wrapscan -> wrapscan.io
pileks Jul 21, 2023
fb0927d
chore: update bundles with wrapscan URIs
dOrgJelli Jul 26, 2023
ede0c0f
fix package versions to enable build, lint
pileks Jul 26, 2023
6672a4f
update cli-js version
pileks Jul 26, 2023
58100a9
chore: fix wrap build error
dOrgJelli Jul 26, 2023
e005afa
Merge branch 'pileks/chore/wrapscan-uris' of https://github.com/polyw…
dOrgJelli Jul 26, 2023
8caeb1b
chore: fix versions
dOrgJelli Jul 26, 2023
62affb7
chore: remove usage of ens URIs
dOrgJelli Jul 26, 2023
4eabdc5
chore: bump version of wrap-test-harness
dOrgJelli Jul 26, 2023
b6bee65
chore: fix client tests
dOrgJelli Jul 26, 2023
ba725fe
chore: update docs
dOrgJelli Jul 26, 2023
acbbb99
chore: install polywrap CLI when building wrap-test-harness
dOrgJelli Jul 26, 2023
7c3f4b7
chore: update installation steps
dOrgJelli Jul 26, 2023
b370696
chore: remove needless rebuilding of wrap-test-harness
dOrgJelli Jul 26, 2023
12d4f78
chore: fix test
dOrgJelli Jul 26, 2023
ca75064
Merge pull request #62 from polywrap/pileks/chore/wrapscan-uris
dOrgJelli Jul 26, 2023
34b07d3
chore: prep origin 0.12.0
dOrgJelli Jul 26, 2023
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
17 changes: 0 additions & 17 deletions .github/workflows/ci-javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ jobs:
- name: Build docs
run: yarn build:docs

CI-WRAP-Test-Harness:
uses: ./.github/workflows/ci-wrap-test-harness.yaml

Test:
runs-on: ubuntu-latest
needs: CI-WRAP-Test-Harness
timeout-minutes: 60
if: ${{ always() }}
steps:
Expand Down Expand Up @@ -118,18 +114,5 @@ jobs:
- name: Build
run: yarn build

- name: Get updated wrappers
if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }}
uses: actions/download-artifact@v3
id: get-wrappers
with:
name: rebuilt-wrappers
path: ./wrappers

- if: ${{ needs.CI-WRAP-Test-Harness.outputs.rebuild_required == 'true' }}
run: |
rm -rf packages/test-cases/wrappers
mv wrappers packages/test-cases

- name: Test
run: yarn test
118 changes: 0 additions & 118 deletions .github/workflows/ci-wrap-test-harness.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# Polywrap Origin (0.12.0)
## Features
**`@polywrap/sys-config-bundle-js`:**
* [PR-56](https://github.com/polywrap/javascript-client/pull/56) **Wrapscan URI Resolution Using Sys Bundle**
* Resolving `wrapscan.io/` URIs is now possible by simply adding the "sys" bundle to your client's configuration.
* The "sys" bundle now includes: `wrapscanResolver`, `ipfsResolver`, and `ipfsHttpClient`.
* [PR-55](https://github.com/polywrap/javascript-client/pull/55) **GitHub URI Resolution Using Sys Bundle**
* Resolving `github.com/` URIs is now possible by simply adding the "sys" bundle to your client's configuration.
* NOTE: this requires a `URI.txt` file located in the directory you're linking to on GitHub.

## Breaking Changes
**`@polywrap/client-js`:**
* [PR-62](https://github.com/polywrap/javascript-client/pull/62) **Migrate All URIs To Wrapscan (Remove ENS URIs)**
* All URIs used within the client's packages (uri-resolver-extensions, config-bundles, etc) have been migrated to `wrapscan.io/` based URIs.
* All `ens/` URIs have been deprecated, but resolving `ens/` URIs is still supported.

## Bugs
**`@polywrap/core-js`:**
* [PR-61](https://github.com/polywrap/javascript-client/pull/61) **URI Should Start W/ Word Character**
* URIs should not start with non-word characters, for example `../`.

# Polywrap Origin (0.11.0)
## Features
**`@polywrap/core-js`:**
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.12.0
1 change: 0 additions & 1 deletion WRAP_TEST_HARNESS

This file was deleted.

4 changes: 2 additions & 2 deletions integration-tests/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@polywrap/client-js": "~0.10.1",
"@polywrap/sys-config-bundle-js": "~0.10.1",
"@polywrap/client-js": "~0.12.0-pre.1",
"@polywrap/sys-config-bundle-js": "~0.12.0-pre.1",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"react": "^18.2.0",
Expand Down
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.11.0",
"version": "0.12.0-pre.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Invoke a wrapper.

```ts
const result = await client.invoke({
uri: "ens/helloworld.dev.polywrap.eth",
method: "logMessage",
uri: "wrapscan.io/polywrap/logging@1",
method: "info",
args: {
message: "Hello World!"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/client/examples/quickstart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export async function invoke(): Promise<any> {
const client = new PolywrapClient();
// $start: quickstart-invoke
const result = await client.invoke({
uri: "ens/helloworld.dev.polywrap.eth",
method: "logMessage",
uri: "wrapscan.io/polywrap/logging@1",
method: "info",
args: {
message: "Hello World!"
}
Expand Down
28 changes: 13 additions & 15 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.11.0",
"version": "0.12.0-pre.1",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,28 +23,26 @@
"build:readme": "yarn doc-snippets combine"
},
"dependencies": {
"@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"
"@polywrap/client-config-builder-js": "0.12.0-pre.1",
"@polywrap/core-client-js": "0.12.0-pre.1",
"@polywrap/core-js": "0.12.0-pre.1",
"@polywrap/msgpack-js": "0.12.0-pre.1",
"@polywrap/plugin-js": "0.12.0-pre.1",
"@polywrap/result": "0.12.0-pre.1",
"@polywrap/tracing-js": "0.12.0-pre.1",
"@polywrap/uri-resolver-extensions-js": "0.12.0-pre.1",
"@polywrap/uri-resolvers-js": "0.12.0-pre.1",
"@polywrap/wrap-manifest-types-js": "0.12.0-pre.1"
},
"devDependencies": {
"@polywrap/cli-js": "~0.10.0",
"@polywrap/sys-config-bundle-js": "0.11.0",
"@polywrap/test-cases": "0.11.0",
"@polywrap/sys-config-bundle-js": "0.12.0-pre.1",
"@polywrap/test-cases": "0.12.0-pre.1",
"@types/jest": "29.5.0",
"@types/prettier": "2.6.0",
"@types/uuid": "8.3.0",
"bignumber.js": "9.0.2",
"doc-snippets": "~1.0.0",
"jest": "29.5.0",
"polywrap": "~0.10.0",
"rimraf": "3.0.2",
"ts-jest": "29.1.0",
"ts-loader": "8.0.17",
Expand Down
19 changes: 5 additions & 14 deletions packages/client/src/__tests__/core/embedded-package.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ describe("Embedded package", () => {
},
});

if (!result.ok) fail(result.error);
expect(result.value).toBeTruthy();
expect(typeof result.value).toBe("number");
expect(result.value).toEqual(2);
expect(result).toStrictEqual(ResultOk(2));
});

it("can get a file from wrapper", async () => {
Expand Down Expand Up @@ -154,26 +151,20 @@ const testEmbeddedPackageWithFile = async (
const receivedManifestResult = await client.getFile(wrapperUri, {
path: "wrap.info",
});
if (!receivedManifestResult.ok) fail(receivedManifestResult.error);
const receivedManifest = receivedManifestResult.value as Uint8Array;
expect(receivedManifest).toEqual(expectedManifest);
expect(receivedManifestResult).toEqual(ResultOk(expectedManifest))

const expectedWasmModule = await fs.promises.readFile(
`${wrapperPath}/wrap.wasm`
);
const receivedWasmModuleResult = await client.getFile(wrapperUri, {
path: "wrap.wasm",
});
if (!receivedWasmModuleResult.ok) fail(receivedWasmModuleResult.error);
const receivedWasmModule = receivedWasmModuleResult.value as Uint8Array;
expect(receivedWasmModule).toEqual(expectedWasmModule);
expect(receivedWasmModuleResult).toEqual(ResultOk(expectedWasmModule))


const receivedHelloFileResult = await client.getFile(wrapperUri, {
path: filePath,
encoding: "utf-8",
});
if (!receivedHelloFileResult.ok) fail(receivedHelloFileResult.error);
const receivedHelloFile = receivedHelloFileResult.value as Uint8Array;

expect(receivedHelloFile).toEqual(fileText);
expect(receivedHelloFileResult).toEqual(ResultOk(fileText))
};
Loading