Skip to content

Commit ed0242f

Browse files
committed
merge origin-dev
2 parents 42cb066 + 9aee0cf commit ed0242f

106 files changed

Lines changed: 1519 additions & 582 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
# Polywrap Origin (0.11.0)
2+
## Features
3+
**`@polywrap/client-config-builder-js`:**
4+
* [PR-45](https://github.com/polywrap/javascript-client/pull/45) **Modular Config Bundles**
5+
* The `DefaultBundle` has been broken apart into two separate bundles: `sys` and `web3`.
6+
* `addBundle(...)` has been added to the `ClientConfigBuilder` interface.
7+
* `addDefaults()` now calls `addBundle("sys")` and `addBundle("web3")` internally.
8+
9+
**`@polywrap/sys-config-bundle-js`:**
10+
* [PR-45](https://github.com/polywrap/javascript-client/pull/45) **Bundled System-Level Plugins & Resolvers**
11+
* The sys bundle includes: `logger`, `datetime`, `concurrent`, `http`, `httpResolver`
12+
* This package is compiled to run in both node.js and browsers.
13+
* In node.js, the bundle also includes: `fileSystem`, `fileSystemResolver`.
14+
15+
**`@polywrap/web3-config-bundle-js`:**
16+
* [PR-45](https://github.com/polywrap/javascript-client/pull/45) **Bundled Web3 Plugins & Resolvers**
17+
* The web3 bundle includes: `ethereumProviderV1`, `ethereumProviderV2`, `ipfsHttpClient`, `ipfsResolver`, `ensTextRecordResolver`, `ensResolver`, `ensIpfsContenthashResolver`.
18+
19+
**`@polywrap/config-bundle-types-js`:**
20+
* [PR-45](https://github.com/polywrap/javascript-client/pull/45) **Base Typings For Config Bundle Packages**
21+
* Valid config bundle packages are expected to export a `bundle` value, which is of type `Bundle`.
22+
23+
## Breaking Changes
24+
**`@polywrap/core-js`:**
25+
* [PR-32](https://github.com/polywrap/javascript-client/pull/32) **Rename `getEnvFromUriHistory` to `getEnvFromResolutionPath`**
26+
27+
## Bugs
28+
**`@polywrap/client-js`**
29+
* [PR-32](https://github.com/polywrap/javascript-client/pull/32) **Improved Browser Compatability**
30+
* Building the JS client into browser-based applications no longer requires custom polyfills to remove Node.JS dependencies.
31+
32+
**`@polywrap/client-cofig-builder-js`**
33+
* [PR-37](https://github.com/polywrap/javascript-client/pull/37) **Add `@polywrap/plugin-js` as a Dependency**
34+
* This resolves some package resolution warnings that are emitted from npm when installing the client-config-builder.
35+
36+
**`@polywrap/wasm-js`:**
37+
* [PR-30](https://github.com/polywrap/javascript-client/pull/30) **Properly Serialize Empty Wrap Environment**
38+
* The wrap environment was being improperly encoded as an empty object, which had a size > 0 bytes, causing deserialization to fail. This has been fixed and it is now an empty byte array with size of 0.
39+
140
# Polywrap Origin (0.10.1)
241
## Features
342
**`@polywrap/wasm-js`:**

integration-tests/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "integration-tests-root",
3+
"license": "MIT",
4+
"private": true,
5+
"workspaces": {
6+
"packages": [
7+
"./**",
8+
"../packages/**"
9+
]
10+
},
11+
"scripts": {
12+
"build": "yarn build:react",
13+
"build:react": "cd react-app && yarn build"
14+
}
15+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "integration-test-react-app",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@polywrap/client-js": "~0.10.1",
7+
"@polywrap/sys-config-bundle-js": "~0.10.1",
8+
"@types/react": "^18.2.13",
9+
"@types/react-dom": "^18.2.6",
10+
"react": "^18.2.0",
11+
"react-dom": "^18.2.0",
12+
"react-scripts": "5.0.1",
13+
"typescript": "4.9.5"
14+
},
15+
"scripts": {
16+
"start": "react-scripts start",
17+
"build": "react-scripts build"
18+
},
19+
"browserslist": {
20+
"production": [
21+
">0.2%",
22+
"not dead",
23+
"not op_mini all"
24+
],
25+
"development": [
26+
"last 1 chrome version",
27+
"last 1 firefox version",
28+
"last 1 safari version"
29+
]
30+
}
31+
}
3.78 KB
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<title>React App</title>
13+
</head>
14+
<body>
15+
<noscript>You need to enable JavaScript to run this app.</noscript>
16+
<div id="root"></div>
17+
<!--
18+
This HTML file is a template.
19+
If you open it directly in the browser, you will see an empty page.
20+
21+
You can add webfonts, meta tags, or analytics to this file.
22+
The build step will place the bundled scripts into the <body> tag.
23+
24+
To begin the development, run `npm start` or `yarn start`.
25+
To create a production bundle, use `npm run build` or `yarn build`.
26+
-->
27+
</body>
28+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import { PolywrapClient } from "@polywrap/client-js";
3+
import { bundle } from "@polywrap/sys-config-bundle-js";
4+
5+
function App() {
6+
const client = new PolywrapClient();
7+
8+
// Make extra sure the sys bundle works in the browser
9+
console.log(bundle);
10+
11+
return (
12+
<div className="App">
13+
<header className="App-header">
14+
<div>Some text...</div>
15+
</header>
16+
</div>
17+
);
18+
}
19+
20+
export default App;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom/client';
3+
import App from './App';
4+
5+
const root = ReactDOM.createRoot(
6+
document.getElementById('root') as HTMLElement
7+
);
8+
root.render(
9+
<React.StrictMode>
10+
<App />
11+
</React.StrictMode>
12+
);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react-scripts" />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"esModuleInterop": true,
12+
"allowSyntheticDefaultImports": true,
13+
"strict": true,
14+
"forceConsistentCasingInFileNames": true,
15+
"noFallthroughCasesInSwitch": true,
16+
"module": "esnext",
17+
"moduleResolution": "node",
18+
"resolveJsonModule": true,
19+
"isolatedModules": true,
20+
"noEmit": true,
21+
"jsx": "react-jsx"
22+
},
23+
"include": [
24+
"src"
25+
]
26+
}

0 commit comments

Comments
 (0)