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
32 changes: 16 additions & 16 deletions .github/workflows/release-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Release-PR
on:
issue_comment:
types: [created]
pull_request:
types: [closed]

jobs:
Pre-Check:
if: |
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/workflows/release-pr') &&
github.event.comment.user.login != 'polywrap-build-bot'
github.event.pull_request.merged &&
endsWith(github.event.pull_request.title, '/workflows/release-pr') &&
github.event.pull_request.user.login != 'polywrap-build-bot'
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{github.event.pull_request.base.ref}}

- name: Commenter Is Publisher?
- name: Pull-Request Creator Is Publisher?
run: |
exists=$(echo $(grep -Fxcs ${COMMENTER} .github/PUBLISHERS))
exists=$(echo $(grep -Fxcs ${CREATOR} .github/PUBLISHERS))
if [ "$exists" == "1" ] ; then
echo IS_PUBLISHER=true >> $GITHUB_ENV
else
echo IS_PUBLISHER=false >> $GITHUB_ENV
fi
env:
COMMENTER: ${{github.event.comment.user.login}}
CREATOR: ${{github.event.pull_request.user.login}}

- name: Commenter Is Not Publisher...
- name: Creator Is Not Publisher...
if: ${{env.IS_PUBLISHER == 'false'}}
uses: actions/github-script@0.8.0
with:
Expand All @@ -37,7 +37,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '${{github.event.comment.user.login}} is not a PUBLISHER. Please see the .github/PUBLISHERS file...'
body: '${{github.event.pull_request.user.login}} is not a PUBLISHER. Please see the .github/PUBLISHERS file...'
})

- name: Read VERSION into env.RELEASE_VERSION
Expand Down Expand Up @@ -82,9 +82,9 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{github.event.pull_request.base.ref}}

- name: Set env.BOT to Build Bot's Username
run: echo BOT=polywrap-build-bot >> $GITHUB_ENV
Expand Down Expand Up @@ -141,9 +141,9 @@ jobs:
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.POLYWRAP_BUILD_BOT_PAT }}
push-to-fork: ${{env.BOT}}/${{github.event.repository.name}}
push-to-fork: ${{env.BOT}}/${{github.event.pull_request.base.repo.name}}
branch: release/origin-${{env.RELEASE_VERSION}}
base: ${{ github.event.pull_request.head.ref }}
base: ${{github.event.pull_request.base.ref}}
committer: GitHub <noreply@github.com>
author: ${{env.BOT}} <${{env.BOT}}@users.noreply.github.com>
commit-message: "${{env.RELEASE_VERSION}}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}

Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}

Expand Down
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
# Polywrap Origin (0.10.0-pre.0)
## Features
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@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.
* For users who do not need those packages and are using noDefaults there will be a separate PR that refactor core client functionality into a core-client package that does not depend on the config builder and uri-resolvers packages, but has no defaults.
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/client-config-builder-js`:
* Added `addRedirects`, `addWrappers`, `addPackages` methods to the `ClientConfigBuilder`, so users can add many items at once.
* Added `buildDefault` to the `ClientConfigBuilder` which builds a `ClientConfig` using default resolvers.
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/plugin-js`:
* New package for plugins.
* Can create plugin packages with `PluginPackage.from`.
* Accepts `manifest` and a `PluginModule`, or an inline `PluginModule`.
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/uri-resolvers-js`: Added `StaticResolver` and `StaticResolver.from` to optimize building resolvers with `IUriRedirect`, `IUriWrapper` and `IUriPackage`.
* [PR-1236] `@polywrap/schema-bind`: In `plugin-ts` bindings, the `PluginModule` type is now imported fron `@polywrap/plugin-js` instead of `@polywrap/core-js`.
* [PR-1349](https://github.com/polywrap/toolchain/pull/1349) `polywrap` CLI: A `-l, --log-file [path]` option has been added to all commands. Its purpose is to configure a `Log file to save console output to`, useful in situations when the console log overflows.

## Breaking Changes
* [PR-1367](https://github.com/polywrap/toolchain/pull/1367) `polywrap` CLI: The JS/TS module passed into the `--client-config` option has a new entrypoint signature.
* Instead of `getCustomConfig`, users should export the following `configure(builder: IClientConfigBuilder): IClientConfigBuilder`.
* `IClientConfigBuilder` can be imported from the `@polywrap/client-config-builder-js` package.
* [PR-1367](https://github.com/polywrap/toolchain/pull/1367) `@polywrap/client-config-builder-js`: Renamed `removeUriRedirect(...)` to `removeRedirect(...)`.
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/client-js`:
* The Polywrap Client with `noDefaults: false` no longer accepts a `plugins` field, but it accepts `wrappers` and `packages`.
* `resolver` field has been replaced with `resolvers`, since with default client the resolver used is the `RecursiveResolver` with the `PackageToWrapperCacheResolver`.
* The Polywrap Client with `noDefaults: true`, no longer accepts a `plugins` field. It is expected that devs using this option will manually configure their own resolver.
* removed `getPlugins` and `getPluginByUri`. Will add `getWrapper`, `getWrapperByUri`, `getPackage`, `getPackageByUri`, in a follow up PR.
* `createPolywrapClient` function has been deleted from the client-js package as it is unnecessary
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/client-config-builder-js`:
* Now uses the `CustomClientConfig` which doesn't have `plugins` and a `resolver`, but now has `wrappers`, `packages` and `resolvers`
* Calling build returns an instance of the `CustomClientConfig`, which can be used with defaults from the `PolywrapClient`, but can not be used if `noDefaults: true` is passed to the `PolywrapClient` constructor.
* Removed `addPlugin` from the `ClientConfigBuilder`, users can now use `addWrapper` or `addPackage` where appropriate.
* Renamed `addUriRedirect` to `addRedirect` to keep it inline with `addWrapper` and `addPackage` (IUriRedirect, IUriWrapper, IUriPackage)
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/core-js`:
* Plugins are no longer a part of this package, they have been moved to the plugin-js package
* Renamed `UriRedirect` to `IUriRedirect` to match `IUriWrapper` and `IUriPackage`
* `IUriRedirect`, `IUriWrapper` and `IUriPackage` are now generic and their generic param implements `Uri | string`
* Removed `options` argument from `client.getManifest` method since all wrappers have a deserialized manifest
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/react`
* Replaced `plugins` on the `PolywrapProvider` with `wrappers` and `packages`
* [PR-1236](https://github.com/polywrap/toolchain/pull/1236) `@polywrap/uri-resolvers-js`:
* Replaced helper func `buildUriResolver` with `UriResolver.from`
* Constructors of built-in resolvers like `RecursiveResolver` and `PackageToWrapperCacheResolver` now accept a concrete `IUriResolver` while their static `from` methods accept a `UriResolverLike`
* Remove `PluginsResolver` and `PluginResolver`, users can now use `WrapperResolver` or `PackageResolver`
* [PR-1348](https://github.com/polywrap/toolchain/pull/1348) `polywrap` CLI: Rename the `run` command to `test`, which uses the `test` project extension, as defined in the `polywrap.test.yaml` manifest file.
* [PR-1379](https://github.com/polywrap/toolchain/pull/1379) `@polywrap/logging-js`: Moved the logging interface from the CLI's lib into its own package.
* [PR-1379](https://github.com/polywrap/toolchain/pull/1379) `@polywrap/polywrap-manifest-types-js`: Added an optional logger parameter to the deserialization function of all manifest types.
* [PR-1373](https://github.com/polywrap/toolchain/pull/1373) `@polywrap/ethereum-plugin-js`: Added a `signMessageBytes` method.

## Bugs
* [PR-1336](https://github.com/polywrap/toolchain/pull/1336) `polywrap` CLI: Updated the CLI's README.
* [PR-1379](https://github.com/polywrap/toolchain/pull/1379) `polywrap` CLI: Automatically upgrading manifests now emits a warning, suggesting users to upgrade their manifest.
* [PR-1382](https://github.com/polywrap/toolchain/pull/1382) `polywrap` CLI: Invoke `asc` using `npx` to help with program resolution.
* [PR-1383](https://github.com/polywrap/toolchain/pull/1383) `@polywrap/templates`: Add the `https://ipfs.wrappers.io` gateway to the interface template's `polywrap.deploy.yaml` manifest.
* [PR-1375](https://github.com/polywrap/toolchain/pull/1375) `@polywrap/ethereum-plugin-js`: Update README to latest code.
* [PR-1368](https://github.com/polywrap/toolchain/pull/1368) `polywrap` CLI: Update error messaging for the `--client-config` option.

# Polywrap Origin (0.9.3)
## Bugs
* [PR-1344](https://github.com/polywrap/toolchain/pull/1344) `@polywrap/cli`: Improve workflow validation.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.3
0.10.0-pre.0