From b72603c8a17fc7d276c0d4f1c8b94a0e22f821a5 Mon Sep 17 00:00:00 2001 From: dOrgJelli Date: Sat, 5 Nov 2022 00:02:48 -0700 Subject: [PATCH 1/2] fix: update release-pr & release-publish workflows from origin-0.9 --- .github/workflows/release-pr.yaml | 32 +++++++++++++------------- .github/workflows/release-publish.yaml | 6 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release-pr.yaml b/.github/workflows/release-pr.yaml index 403a8ebe39..115b5fae3e 100644 --- a/.github/workflows/release-pr.yaml +++ b/.github/workflows/release-pr.yaml @@ -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: @@ -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 @@ -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 @@ -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 author: ${{env.BOT}} <${{env.BOT}}@users.noreply.github.com> commit-message: "${{env.RELEASE_VERSION}}" diff --git a/.github/workflows/release-publish.yaml b/.github/workflows/release-publish.yaml index 11100d7918..87acadfd59 100644 --- a/.github/workflows/release-publish.yaml +++ b/.github/workflows/release-publish.yaml @@ -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 }} @@ -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 }} @@ -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 }} From 888267f6fc6a42624c32873f2c9c74ebf29658df Mon Sep 17 00:00:00 2001 From: dOrgJelli Date: Sat, 5 Nov 2022 00:04:05 -0700 Subject: [PATCH 2/2] prep 0.10.0-pre.0 | /workflows/release-pr --- CHANGELOG.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77fa045ab7..83dd6319cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/VERSION b/VERSION index 965065db5b..0f76c4d8c9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.3 +0.10.0-pre.0