Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
04852cf
(chore): runCommand CWD override
namesty Sep 7, 2022
9d02919
(feat): added basic test cases for no docker
namesty Sep 7, 2022
a83228a
(chore): improved naming and messaging
namesty Sep 8, 2022
c2a522e
(chore): added sanity cases for all strategies in all languages
namesty Sep 8, 2022
48041bd
(chore): removed resets
namesty Sep 8, 2022
6a0b9e4
Merge remote-tracking branch 'origin/origin-dev' into namesty/docker-…
namesty Sep 8, 2022
5d7c95c
Merge remote-tracking branch 'origin/origin-dev' into feat/cli-manife…
pileks Sep 8, 2022
45992e2
CLI manifest schema command WIP
pileks Sep 8, 2022
fa5ba0a
manifest migration refactor/rethink WIP
pileks Sep 9, 2022
a01d727
Merge remote-tracking branch 'origin/origin-dev' into feat/cli-manife…
pileks Sep 9, 2022
dde2a02
(chore): removed compiler codegen strategy
namesty Sep 10, 2022
9cb9aaf
(chore): removed codegen strategies in favor of normal inheritance
namesty Sep 10, 2022
3e15283
(chore): added Rust sanity test cases for codegen
namesty Sep 10, 2022
1ffa79d
(chore): minor fix to build test cases dir structure on sanity cases
namesty Sep 10, 2022
40bc1fe
(fix): added wasm-snip implicit install
namesty Sep 10, 2022
c327df1
(fix): script code generation now gets abi
namesty Sep 11, 2022
750e5e8
(fix): docker lock
namesty Sep 11, 2022
5752b55
(fix): removed unused stdout
namesty Sep 11, 2022
55f9ac9
refactor manifest migrate command
pileks Sep 11, 2022
e15342a
(chore): spinner for local sources build
namesty Sep 12, 2022
7b8a095
(temp): CI test msg logging
namesty Sep 12, 2022
e16b5bc
(temp): CI CLI speed up
namesty Sep 12, 2022
fa1e659
manifest migrate command refactor wip
pileks Sep 13, 2022
5938200
cli manifest migrate command cleanup
pileks Sep 13, 2022
2ba0df7
cli manifest schema command wip
pileks Sep 13, 2022
85e17ce
(chore): updated test cases
namesty Sep 14, 2022
9eb1a76
(fix): fix relative path to linked runtime packages
namesty Sep 14, 2022
659f7d3
(fix): minor fix to test ignore patterns
namesty Sep 14, 2022
c01678a
(feat): CLI rust tests GH action
namesty Sep 14, 2022
ddcf416
(chore): removed unused dependencies
namesty Sep 14, 2022
0a4d608
(wip): scripts and images. Initial logic
namesty Sep 15, 2022
9320c4a
(chore): naive strategy for assemblyscript
namesty Sep 15, 2022
303c4c5
manifest schema command works for all manifest types
pileks Sep 15, 2022
91f53d7
clean up CLI manifest command code
pileks Sep 15, 2022
66c9aca
CLI manifest command intlMsg
pileks Sep 15, 2022
c750abc
remove unused test
pileks Sep 15, 2022
35b1f1e
(fix): wasm-rs relative path. Build only if module. Removed unncessar…
namesty Sep 15, 2022
894ba16
Merge branch 'namesty/docker-build-vm' into namesty/docker-vm
namesty Sep 15, 2022
5ed4e91
(chore): Language specific helpers for script actions
namesty Sep 16, 2022
e308178
(chore): removed scriptHelpers in favor of script files
namesty Sep 18, 2022
2f4efa9
Merge branch 'namesty/docker-vm-scripts' into namesty/docker-vm
namesty Sep 18, 2022
df521ba
Merge remote-tracking branch 'origin/origin-dev' into namesty/docker-vm
namesty Sep 18, 2022
846e6e8
(chore): solved merge conflicts. Unused codegen method
namesty Sep 18, 2022
af30757
(chore): project being built and artifacts being copied
namesty Sep 19, 2022
5e6aec7
(chore): added spinners, copy artifacts messaging. Test passing
namesty Sep 20, 2022
5d51fcc
(chore): added rust build script template
namesty Sep 20, 2022
c32cdd1
Add storage methods on `SimpleStorage` to test array feature
sraver Sep 20, 2022
8317841
Add helper to deploy and set storage values
sraver Sep 20, 2022
057f7ee
Fix missing argument on IPFS plugin init
sraver Sep 20, 2022
a15f8a7
Enable fetching arrays from `view` functions
sraver Sep 20, 2022
c3848b4
Move helper `storage.ts` inside `__tests__`
sraver Sep 20, 2022
dddf978
Add test with human-readable ABI on primitive value return
sraver Sep 20, 2022
1a93b65
(chore): updated Rust strategy + Updated Docker base image for rust
namesty Sep 20, 2022
96e93e6
Refactor parsing results method
sraver Sep 20, 2022
03772ce
Parse result on static call
sraver Sep 20, 2022
9db885b
(chore): added tests for strategy in Rust and AS
namesty Sep 20, 2022
e8fa6e7
Replaced thrown exceptions with Result types in core-js
krisbitney Sep 21, 2022
feca068
Replaced thrown exceptions with Result types in wasm-js
krisbitney Sep 21, 2022
9472c7c
Replaced thrown exceptions with Result types in uri resolvers and mor…
krisbitney Sep 21, 2022
b68da1b
Merge remote-tracking branch 'origin/origin-dev' into feat/cli-manife…
pileks Sep 21, 2022
21e814b
Move parsing functions to utils
sraver Sep 22, 2022
4e92121
Allow passing raw ABI into methods constructing contract
sraver Sep 22, 2022
8382ed1
add proper messages, lint
pileks Sep 22, 2022
b03b7b8
lint
pileks Sep 22, 2022
1b761d7
basic CLI manifest test cases
pileks Sep 22, 2022
e8c35cc
cli manifest schema - invalid format test
pileks Sep 22, 2022
2551041
Merge with origin/origin-dev
pileks Sep 22, 2022
a3df9ca
Merge remote-tracking branch 'origin/origin-dev' into feat/cli-manife…
pileks Sep 22, 2022
634d233
CLI manifest command - test sample files
pileks Sep 23, 2022
64af609
CLI manifest command - migration tests
pileks Sep 23, 2022
04b900a
Merge remote-tracking branch 'origin/origin-dev' into feat/cli-manife…
pileks Sep 23, 2022
16c3716
refactor CLI manifest command tests
pileks Sep 23, 2022
85957c0
address test cases
pileks Sep 23, 2022
d18b9d9
lint
pileks Sep 23, 2022
3025b88
Replaced thrown exceptions with Result types in client; tests failing
krisbitney Sep 24, 2022
2343be3
Updated schema-bind with Result type
krisbitney Sep 24, 2022
42c8a37
Merge remote-tracking branch 'origin/origin-dev' into use-result-clie…
krisbitney Sep 24, 2022
ffac945
Updated cli with Result type
krisbitney Sep 24, 2022
af15e57
Merge pull request #1276 from polywrap/origin
dOrgJelli Sep 24, 2022
3fe73d6
merge origin-dev
dOrgJelli Sep 24, 2022
eed6bdd
Merge pull request #1218 from polywrap/tracing-updates
dOrgJelli Sep 24, 2022
59ad55e
chore: standardize cli default manifest paths
dOrgJelli Sep 24, 2022
df28c8b
fix: normalize all --manifest-file options to be the same
dOrgJelli Sep 24, 2022
82d95e9
chore: update manifest command description
dOrgJelli Sep 24, 2022
86db889
chore: use CacheDirectory in manifest command
dOrgJelli Sep 24, 2022
9aaf903
chore: reduce code duplication in cli/lib/manifest/migrate
dOrgJelli Sep 24, 2022
20795d4
merge origin-dev
dOrgJelli Sep 24, 2022
b908632
chore: lint fix
dOrgJelli Sep 25, 2022
c20149a
chore: fix cli test
dOrgJelli Sep 25, 2022
04776dc
Merge pull request #1270 from polywrap/feat/cli-manifest-command-temp
dOrgJelli Sep 25, 2022
f5517ba
monorepo building with Result type (untested)
krisbitney Sep 25, 2022
54f8a96
client tests passing
krisbitney Sep 25, 2022
fca2f21
Merge branch 'call-view-array-return' of https://github.com/sraver/to…
dOrgJelli Sep 25, 2022
05459bc
chore: lint fix
dOrgJelli Sep 25, 2022
b0c5282
fix: ethereum tests
dOrgJelli Sep 25, 2022
3cb0263
Merge branch 'sraver-call-view-array-return' into origin-dev
dOrgJelli Sep 25, 2022
4537d0e
plugin tests passing
krisbitney Sep 26, 2022
095b9c7
cli tests passing
krisbitney Sep 26, 2022
86caf5a
Merge remote-tracking branch 'origin/origin-dev' into use-result-clie…
krisbitney Sep 26, 2022
ca10282
fix for Result type in some Ethereum plugin tests
krisbitney Sep 26, 2022
7ae3dd8
feat: remove invoke-time config + add client.reconfigure(...) method
dOrgJelli Sep 26, 2022
81164fa
fix: tests build
dOrgJelli Sep 26, 2022
a4ede1c
chore: fix simple-env test
dOrgJelli Sep 26, 2022
fa6c52d
fix: link schema packages to dep cli
dOrgJelli Sep 26, 2022
a76324c
chore: improve asyncify variable naming
dOrgJelli Sep 26, 2022
f11edba
chore: remove reconfigure, add getConfig
dOrgJelli Sep 26, 2022
97c791c
chore: lint fix
dOrgJelli Sep 26, 2022
28824cd
Merge pull request #1192 from polywrap/dorgjelli/reconfigure-refactor
dOrgJelli Sep 26, 2022
3bf6502
Merge pull request #1281 from polywrap/asyncify-renaming
dOrgJelli Sep 26, 2022
c20c6de
chore: use InvokeResult instead of Result
dOrgJelli Sep 26, 2022
84d029e
chore: use InvokeResult
dOrgJelli Sep 26, 2022
fde86ec
chore: fix build
dOrgJelli Sep 26, 2022
657b2da
merge origin-dev
dOrgJelli Sep 26, 2022
6ab5736
chore: lint fix
dOrgJelli Sep 26, 2022
ae28dc1
chore: fix plugin codegen
dOrgJelli Sep 26, 2022
3915ddf
Merge branch 'origin-dev' into namesty/docker-vm
namesty Sep 26, 2022
f46334a
Merge branch 'namesty/docker-vm' into namesty/docker-build-vm
namesty Sep 26, 2022
266e811
(chore): solved merged conflicts. Building
namesty Sep 27, 2022
627e36d
showing proper and clear uri history on resolution error
nerfZael Sep 27, 2022
507331c
exported constants and InMemoryFileReader
nerfZael Sep 27, 2022
61d8b4a
fixed wasm pacakges and added tests
nerfZael Sep 27, 2022
9187ad3
implemented in-memory wasm wrappers and added tests
nerfZael Sep 27, 2022
640cf1f
lint fix
nerfZael Sep 27, 2022
4ef83b3
refactored use of result in client, made loadWrapper public
nerfZael Sep 27, 2022
18a2e4f
using result for wrap packages
nerfZael Sep 27, 2022
bdbcba5
removed initWrapper
nerfZael Sep 27, 2022
a72d200
result fixes
nerfZael Sep 27, 2022
5bff6c2
using InvokeResult instead of Result
nerfZael Sep 27, 2022
fb618da
using InvokeResult instead of Result
nerfZael Sep 27, 2022
303ea6b
passing options to createWrapper
nerfZael Sep 27, 2022
f0be41e
chore: remove needless InvokeResult
dOrgJelli Sep 27, 2022
af0d730
Merge pull request #1285 from polywrap/nerfzael-result-error-handling…
dOrgJelli Sep 27, 2022
12a3a3e
(chore): changed generated dirs and files permissions
namesty Sep 27, 2022
dadd0f8
Merge pull request #1277 from polywrap/use-result-client-core
dOrgJelli Sep 27, 2022
43ec864
merged with remote
nerfZael Sep 27, 2022
c3d90d4
fixed all result issues after merging with remote
nerfZael Sep 27, 2022
92dddbf
removed client as arg
nerfZael Sep 27, 2022
32b0911
(chore): added strategy overrides to build manifest
namesty Sep 27, 2022
f5e9f47
Manifest migrations can be specified between any manifest version to …
pileks Sep 27, 2022
dcdf0dd
added more tests for file reader and using constants for wrap files
nerfZael Sep 27, 2022
bc38d48
Refactor manifest migration codegen & file structure
pileks Sep 27, 2022
d4c54ed
refactored creation of wasm wrappers and packages
nerfZael Sep 27, 2022
4178fe9
lint fix
nerfZael Sep 27, 2022
74fa635
renamed packages to wrappers
nerfZael Sep 27, 2022
373e84b
Cover manifest migration pathfinding with basic tests
pileks Sep 27, 2022
9db091b
removed client as second arg
nerfZael Sep 27, 2022
6e38f84
(fix): new build manifest props
namesty Sep 27, 2022
0916400
fixes after merge with remote
nerfZael Sep 27, 2022
30c6192
(chore): migrated build manifests to 0.2.0
namesty Sep 27, 2022
7f53b42
(fix): jest rs config for cli fix
namesty Sep 28, 2022
9283655
(chore): no codegen test case added
namesty Sep 28, 2022
338e490
(chore): DockerStrategy -> ImageStrategy. Made VM the default strategy
namesty Sep 28, 2022
f1a74a4
(fix): only copy additional includes if they exist
namesty Sep 28, 2022
7d991ed
removed unused func
nerfZael Sep 28, 2022
454d27d
correctly handling error in addAllImplementationsFromImplementationsA…
krisbitney Sep 28, 2022
61d1875
plugin method is now properly bound
nerfZael Sep 28, 2022
8570c60
using polywrap client
nerfZael Sep 28, 2022
647b579
fixed throw/Result statement in getImplementations
krisbitney Sep 28, 2022
7ab3bed
(fix): default strategy help text. Filelock for image strategy only
namesty Sep 28, 2022
46a4430
(chore): added default includes as overridable manifest config prop
namesty Sep 28, 2022
ad11de0
(chore): reorganized build defaults
namesty Sep 28, 2022
8bd3a8f
(chore): fetching vm configs from defaults dir
namesty Sep 28, 2022
fe169d9
(chore): once again changed manifest. Removed language keys
namesty Sep 29, 2022
df20049
changed return type of inner method in getImplementations from Result…
krisbitney Sep 29, 2022
5f6df33
(chore): decoupled docker specifics from PolywrapProject completely
namesty Sep 29, 2022
2437de9
(fix): docker -> image
namesty Sep 30, 2022
e491273
Make ClientConfig and PolywrapClientConfig properties readonly
pileks Sep 30, 2022
79a0ace
lint
pileks Sep 30, 2022
49b29ca
restrict Migrator migrate function to manifest types
pileks Sep 30, 2022
826b192
Merge pull request #1287 from polywrap/nerfzael-maybe-async-refactor
dOrgJelli Sep 30, 2022
11f5d13
ClientConfig and PolywrapClientConfig are now types instead of interf…
pileks Sep 30, 2022
ce14f59
Remove polywrap.app and polywrap.plugin manifest files form help text…
pileks Sep 30, 2022
c0f7146
Rename template project manifest files
pileks Oct 1, 2022
21a2df2
feat: wasm/rs support println! & print! macros
dOrgJelli Oct 1, 2022
37fa6c3
(chore): improved tests by adding strategy.json. Img suffix check
namesty Oct 1, 2022
f78cde7
(chore): dynamic manifest validation per strategy based on language
namesty Oct 1, 2022
93bdf2d
(chore): dep linking for AS projects
namesty Oct 1, 2022
a8c32ea
(chore): updated tests. Added validation test for strategy+lang props
namesty Oct 1, 2022
10381c8
(chore): using cmd.json
namesty Oct 1, 2022
1a37b4f
(chore): better error handling for VM strategy
namesty Oct 1, 2022
fd16474
(chore): reorganized defaults for build-strategies
namesty Oct 1, 2022
24a84de
(chore): added used strategies to cache folder
namesty Oct 1, 2022
b03a1d7
chore: fix bind tests
dOrgJelli Oct 2, 2022
e6bc343
refactor docgen command to properly resolve project type based on its…
pileks Oct 2, 2022
49682dd
lint
pileks Oct 2, 2022
e2cc2d4
Merge remote-tracking branch 'origin/origin-dev' into pileks/make-con…
pileks Oct 2, 2022
d341657
Merge pull request #1297 from polywrap/issue-900-wasm-rs-print-macros
dOrgJelli Oct 3, 2022
041ed1a
Merge branch 'origin-dev' into namesty/docker-build-vm
namesty Oct 3, 2022
31a74d7
(chore): removed unnecessary OR object
namesty Oct 3, 2022
5436845
simplify ClientConfig and PolywrapClientConfig definitions
pileks Oct 3, 2022
7f3eb34
(chore): updated all build manifests from 0.1.0 -> 0.2.0
namesty Oct 3, 2022
7962c40
(temp): console.logs on rs-ci
namesty Oct 3, 2022
8170abe
Merge pull request #1286 from polywrap/pileks/manifest-migration-stra…
pileks Oct 4, 2022
12eea9a
Change ClientConfig and PolywrapClientConfig back into interfaces
pileks Oct 4, 2022
7a07e97
(chore): skipped local strategy test
namesty Oct 4, 2022
03121a5
Merge branch 'origin-dev' into namesty/docker-build-vm
namesty Oct 4, 2022
bbd3e07
(chore): solve merge conflicts
namesty Oct 4, 2022
f29f159
patch: use @polywrap/ipfs-http-client-lite
dOrgJelli Oct 4, 2022
131e395
chore: update yarn.lock
dOrgJelli Oct 4, 2022
303cb68
(chore): docker lock test fix
namesty Oct 4, 2022
81dc83d
chore: fix build
dOrgJelli Oct 4, 2022
b0d9006
chore: fix IPFS uri-resolver tests
dOrgJelli Oct 4, 2022
c879f12
cli manifest migrate format option
pileks Oct 4, 2022
aed1e6c
lint
pileks Oct 4, 2022
fe40e5f
Merge pull request #1298 from polywrap/migrate-ipfs-package
dOrgJelli Oct 4, 2022
6436804
Merge pull request #1291 from polywrap/pileks/make-config-props-read-…
cbrzn Oct 5, 2022
30f7f64
Merge pull request #1288 from polywrap/throw-in-get-implementations
cbrzn Oct 5, 2022
0a1660e
feat: improve URI output formatting + move to yaml package
dOrgJelli Oct 5, 2022
2e3e003
(chore): removed yarn lock from AS test case
namesty Oct 6, 2022
c2ce477
(chore): removed 0.2 support. Removed unused functions
namesty Oct 6, 2022
da29fdc
(chore): removed duplicate interface
namesty Oct 6, 2022
d8dbdf3
(chore): refactored imports. Inverted not-condition
namesty Oct 6, 2022
e9f22fc
(chore): readonly props for codegenerator
namesty Oct 6, 2022
ffb33ca
(chore): changed string literals array to enum
namesty Oct 6, 2022
d71bbd1
(chore): reused variable, instead of using getCache everytime
namesty Oct 6, 2022
df6c891
(chore): removed unnecessary/duplicated props from CLI Rs jest config
namesty Oct 6, 2022
d591efb
(chore): commander default strategy opt
namesty Oct 6, 2022
8958334
(test): Docker CI test temp
namesty Oct 6, 2022
a19a4de
(chore): uncommented skips
namesty Oct 6, 2022
3a7e6d4
Merge pull request #1204 from polywrap/namesty/docker-build-vm
cbrzn Oct 6, 2022
d1a4e34
chore: lint fix
dOrgJelli Oct 6, 2022
3d99aa8
Merge branch 'origin-dev' into uri-output-formatting
dOrgJelli Oct 6, 2022
d5e6868
chore: remove .only test
dOrgJelli Oct 6, 2022
aeee991
chore: remove @types/js-yaml
dOrgJelli Oct 6, 2022
a1a45c5
Merge pull request #1301 from polywrap/pileks/cli-manifest-migrate-fo…
dOrgJelli Oct 6, 2022
43c0757
Merge branch 'origin-dev' into pileks/remove-polywrap-app-plugin-file…
dOrgJelli Oct 6, 2022
4f7dc55
fix: use flag 777 in chmod
cbrzn Oct 6, 2022
04d9e2b
Merge pull request #1303 from polywrap/uri-output-formatting
dOrgJelli Oct 6, 2022
11e0441
chore: build fix
dOrgJelli Oct 6, 2022
8b807a7
Merge pull request #1296 from polywrap/pileks/remove-polywrap-app-plu…
dOrgJelli Oct 6, 2022
61eeecc
fixed condition
nerfZael Oct 6, 2022
8abc5d8
merged with origin-dev
nerfZael Oct 6, 2022
9fe2303
fix: just use one run command to get files & give permission
cbrzn Oct 6, 2022
1a31808
fixed fallback providers check in ipfs plugin
krisbitney Oct 7, 2022
38bc53a
Merge pull request #1284 from polywrap/nerfzael-resolution-and-wrappe…
dOrgJelli Oct 7, 2022
2ced3b7
Merge pull request #1305 from polywrap/ipfs-plugin-fallbacks-check
dOrgJelli Oct 7, 2022
19def9d
feat: refactor CLI logging pt. 1
dOrgJelli Oct 7, 2022
f2740cb
fix: permissions work as expected in as & rust
cbrzn Oct 7, 2022
e4075b3
chore: prettier is happy now
cbrzn Oct 7, 2022
f07cdea
Merge pull request #1304 from polywrap/fix/generated-build-files-perm…
dOrgJelli Oct 7, 2022
4ce9466
feat: refactor CLI logging pt. 2
dOrgJelli Oct 7, 2022
ac5874e
chore: lint fix
dOrgJelli Oct 7, 2022
632159a
merge origin-dev
dOrgJelli Oct 7, 2022
49df6af
Merge branch 'origin-dev' into refactor-cli-logging
dOrgJelli Oct 7, 2022
67c2e84
fix: add cargo registry cache volume to build vm
dOrgJelli Oct 8, 2022
f9f4790
Merge branch 'refactor-cli-logging' of https://github.com/polywrap/mo…
dOrgJelli Oct 8, 2022
2f4bc8a
chore: fix cli tests
dOrgJelli Oct 8, 2022
99a87ab
fix: export build manifest migrator
dOrgJelli Oct 8, 2022
29cc5ad
Merge pull request #1306 from polywrap/refactor-cli-logging
dOrgJelli Oct 8, 2022
ae26b48
prep 0.9.0
dOrgJelli Oct 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .github/workflows/rs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,42 @@ jobs:
run: yarn test:rust
working-directory: ./packages/js/client

Test-Cli:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup Node.js
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: yarn install --nonInteractive --frozen-lockfile --prefer-offline

- name: Build
run: yarn build

- name: Test
run: yarn test:rust
working-directory: ./packages/cli

# NOTE: Mac & Windows CI is not currently possible, since GitHub Actions does not
# use "Docker Enterprise". Docker Enterprise is required when running linux based
# containers, which is what we run within our toolchain for infra and build-images.
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# Polywrap Origin (0.9.0)
## Features
* [PR-1306](https://github.com/polywrap/toolchain/pull/1306) `polywrap` CLI: Console logging has been improved, and all commands now support `-q, --quiet` and `-v, --verbose` options.
* [PR-1204](https://github.com/polywrap/toolchain/pull/1204) `polywrap` CLI: **Build times are faster for wasm wrappers!!!** The `build` command has been updated to include the concept of "build strategies". The existing way of building (via `Dockerfile` image layers) is available through the `polywrap build --strategy image` command. Building without Docker (if all build-time dependencies are installed locally) can be performed using `--strategy local`. And lastly, the new default build strategy is `--strategy vm`, which runs all build steps in a pre-built base image, allowing for near-local speeds (once the image has been downloaded).
* NOTE: `--strategy image` is useful for source-code verification, something we'll be better supporting in the future.
* [PR-1297](https://github.com/polywrap/toolchain/pull/1297) `@polywrap/schema-bind`: `wasm/rust` now has support for `println!(...)` and `print!(...)` macros. They have been redefined to use the `polywrap_wasm_rs::wrap_debug_log(...)` function.
* [PR-1192](https://github.com/polywrap/toolchain/pull/1192) `@polywrap/client-js`: `PolywrapClient.invoke(...)` now supports invoke-time environment variables, passed in via the `env` property.
* [PR-1270](https://github.com/polywrap/toolchain/pull/1270) `polywrap` CLI: The `manifest` command has been added:
```
Usage: polywrap manifest|m [options] [command]
Inspect & Migrade Polywrap Manifests
Options:
-h, --help display help for command
Commands:
schema|s [options] [type] Prints out the schema for the current manifest format.
migrate|m [options] [type] Migrates the polywrap project manifest to the latest version.
help [command] display help for command
```
* [PR-1301](https://github.com/polywrap/toolchain/pull/1301) Added a `--format` option to the `migrate` command, enabling the targeting of specific format versions when migrating manifests (ex: `polywrap manifest migrate -f 0.2.0`).
* [PR-1218](https://github.com/polywrap/toolchain/pull/1218) `polywrap` CLI, `@polywrap/tracing-js`: The `tracing` infrastructure module (i.e. `polywrap infra up --modules tracing`) now uses version `0.11.0` of the `SizNoz` tracing service. Additionally the underlying `@polywrap/tracing-js` library has been updated to support this, and also now has named traces via the `traceName` configuration property.

## Bugs
* [PR-1304](https://github.com/polywrap/toolchain/pull/1304) `polywrap` CLI: Generated build files from the `vm` strategy now have proper file-system permissions.
* [PR-1305](https://github.com/polywrap/toolchain/pull/1305) `@polywrap/ipfs-plugin-js`: Fallback providers are now properly being used.
* [PR-1296](https://github.com/polywrap/toolchain/pull/1296) `polywrap` CLI: The `polywrap.app.yaml` and `polywrap.plugin.yaml` project manifest file names are being deprecated in favor of a unified `polywrap.yaml` file for all types of projects (wasm, interface, plugin, app). They will still silently work now, but in the future will no longer be recognized defaults.
* [PR-1303](https://github.com/polywrap/toolchain/pull/1303) `@polywrap/core-js`: The `Uri` class now properly formats itself when being `JSON.stringify(...)`'d.
* [PR-1288](https://github.com/polywrap/toolchain/pull/1288) `@polywrap/core-js`: Correctly handle errors in the `getImplementations` algorithm.
* [PR-1298](https://github.com/polywrap/toolchain/pull/1298) `@polywrap/ipfs-plugin-js`, `@polywrap/ipfs-resolver-plugin-js`: Remove the use of `require(...)` statements.
* [PR-1286](https://github.com/polywrap/toolchain/pull/1286) `@polywrap/polywrap-manifest-types-js`: Manifest migration logic has been upgraded to use a strategy that finds a "shortest path" between the `from` and `to` format versions, using predefined migration functions.

## Breaking Changes
* [PR-1284](https://github.com/polywrap/toolchain/pull/1284) `@polywrap/core-js`: `Wrapper.getFile(...)` and `Wrapper.getManifest(...)` no longer require a `Client` instance as a second function argument.
* [PR-1291](https://github.com/polywrap/toolchain/pull/1291) `@polywrap/core-js`, `@polywrap/client-js`: All `ClientConfig` properties are now `readonly`.
* [PR-1287](https://github.com/polywrap/toolchain/pull/1287) `@polywrap/core-js`: `executeMaybeAsyncFunction` has been removed.
* [PR-1277](https://github.com/polywrap/toolchain/pull/1277) `@polywrap/client-js`: The following methods now return the `Result<T, E>` type, and will not throw exceptions: `getManifest(...)`, `getFile(...)`, `getImplementations(...)`, `query(...)`, `invokeWrapper(...)`, `invoke(...)`, `loadWrapper(...)`.
* [PR-1192](https://github.com/polywrap/toolchain/pull/1192) `@polywrap/client-js`: `PolywrapClient.invoke(...)` no longer accepts invoke-time reconfiguration via the `config` property. Users who wish to reconfigure the client can do so by calling `client.getConfig()`, modifying it via the `ClientConfigBuilder`, and constructing a new `PolywrapClient` instance.

# Polywrap Origin (0.8.0)
## Features
* [PR-1083](https://github.com/polywrap/toolchain/pull/1083) `@polywrap/client-config-builder-js`: The default client config now has the ability to resolve `http` URIs (ex: `wrap://http/domain.com/path`) via the `@polywrap/http-resolver-plugin-js`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.9.0
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@
"link:manifests": "yarn link:manifests:polywrap && yarn link:manifests:wrap",
"link:manifests:polywrap": "cd packages/js/manifests/polywrap && (yarn unlink || true) && yarn link && cd ../../../../dependencies && yarn link @polywrap/polywrap-manifest-types-js && cd ../",
"link:manifests:wrap": "cd packages/js/manifests/wrap && (yarn unlink || true) && yarn link && cd ../../../../dependencies && yarn link @polywrap/wrap-manifest-types-js && cd ../",
"link:schema": "yarn link:schema:parse && yarn link:schema:compose",
"link:schema": "yarn link:schema:parse && yarn link:schema:compose && yarn link:schema:bind",
"link:schema:parse": "cd packages/schema/parse && (yarn unlink || true) && yarn link && cd ../../../dependencies && yarn link @polywrap/schema-parse && cd ../",
"link:schema:compose": "cd packages/schema/compose && (yarn unlink || true) && yarn link && cd ../../../dependencies && yarn link @polywrap/schema-compose && cd ../",
"link:schema:bind": "cd packages/schema/bind && (yarn unlink || true) && yarn link && cd ../../../dependencies && yarn link @polywrap/schema-bind && cd ../",
"lint": "lerna run lint",
"lint:fix": "lerna run lint -- --fix",
"lint:ci": "yarn lint",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
},
},
modulePathIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
"<rootDir>/src/__tests__/project/.polywrap",
"<rootDir>/src/__tests__/e2e/build-rs.spec.ts"
],
testPathIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
Expand Down
19 changes: 19 additions & 0 deletions packages/cli/jest.rs.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
collectCoverage: true,
preset: "ts-jest",
testEnvironment: "node",
globals: {
"ts-jest": {
diagnostics: false
},
},
testPathIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
],
transformIgnorePatterns: [
"<rootDir>/src/__tests__/project/.polywrap"
],
setupFilesAfterEnv: ["./jest.setup.js"],
testMatch: ["**/build-rs.spec.ts"],
modulePathIgnorePatterns: [],
};
52 changes: 38 additions & 14 deletions packages/cli/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"commands_common_options_configPath": "config-path",
"commands_common_options_config": "Add custom configuration to the PolywrapClient",
"commands_common_options_verbose": "Verbose output (default: false)",
"commands_common_options_quiet": "Suppress output (default: false)",
"commands_build_description": "Build Polywrap Projects (type: interface, wasm)",
"commands_build_error_manifestPathMissing": "{option} option missing {argument} argument",
"commands_build_error_manifestNotFound": "Manifest not found. Search paths used: {paths}",
Expand All @@ -15,19 +17,18 @@
"commands_build_options_t": "Use the development server's ENS instance",
"commands_build_options_n": "Skip code generation",
"commands_build_options_w": "Automatically rebuild when changes are made (default: false)",
"commands_build_options_v": "Verbose output (default: false)",
"commands_build_options_s": "Strategy to use for building the wrapper",
"commands_build_options_s_strategy": "strategy",
"commands_infra_description": "Modular Infrastructure-As-Code Orchestrator",
"commands_infra_actions_subtitle": "Infra allows you to execute the following commands:",
"commands_infra_options_options": "options",
"commands_infra_options_manifest": "manifest",
"commands_infra_options_i_node": "node",
"commands_infra_options_h": "Show usage information",
"commands_infra_options_m": "Use only specified modules",
"commands_infra_options_v": "Verbose output (default: false)",
"commands_infra_options_o": "Use only specified modules",
"commands_infra_options_o_module": "module",
"commands_infra_options_d": "Run in detached mode",
"commands_infra_moduleName": "module-name",
"commands_infra_manifestPath": "manifest-path",
"commands_infra_manifestPathDescription": "Infra Manifest path",
"commands_infra_options_m_path": "path",
"commands_infra_options_m": "Path to the Polywrap Infra manifest file (default: {default})",
"commands_infra_command_up": "Start Polywrap infrastructure",
"commands_infra_command_down": "Stop Polywrap infrastructure",
"commands_infra_command_vars": "Show Polywrap infrastructure's required .env variables",
Expand Down Expand Up @@ -64,7 +65,6 @@
"commands_deploy_options_o": "Output file path for the deploy result",
"commands_deploy_options_n": "Name of the deployment to execute",
"commands_deploy_options_c": "Argument for deployment's publish step, in case deploy step is absent",
"commands_deploy_options_v": "Verbose output (default: false)",
"commands_deploy_options_p": "Path to the build directory",
"commands_deploy_error_manifestPathMissing": "{option} option missing {argument} argument",
"commands_deploy_error_pathMissing": "{option} option missing {argument} argument",
Expand Down Expand Up @@ -94,6 +94,7 @@
"commands_docgen_options_markdown": "Generate {framework} markdown",
"commands_docgen_options_i": "Also generate docs for dependencies",
"commands_docgen_error_manifestNotFound": "Manifest not found. Search paths used: {paths}",
"commands_docgen_error_projectLoadFailed": "Could not load project form the given manifest. Manifest: `{manifestFile}`",
"commands_create_description": "Create New Projects",
"commands_create_directoryExists": "Directory with name {dir} already exists",
"commands_create_error_commandFail": "Command failed: {error}",
Expand Down Expand Up @@ -126,11 +127,10 @@
"commands_run_options_validateScript": "Validate the output of the workflow jobs",
"commands_run_options_validate": "cue-file",
"commands_run_options_outputFile": "Output file path for the workflow result",
"commands_run_options_manifest": "manifest",
"commands_run_options_quiet": "Suppress output",
"commands_run_options_m_path": "path",
"commands_run_options_m": "Path to the Polywrap Workflow manifest file (default: {default})",
"commands_run_options_jobIds": "jobs",
"commands_run_options_jobs": "Specify ids of jobs that you want to run",
"commands_run_manifestPathDescription": "Workflow Manifest path",
"commands_run_error_validatorNotFound": "validate script not found at: {path}",
"commands_run_error_outputFileMissing": "{option} option missing {argument} argument",
"commands_run_error_clientConfigMissingPath": "{option} option missing {argument} argument",
Expand Down Expand Up @@ -162,12 +162,27 @@
"commands_run_error_missingScript": "Required argument {script} is missing",
"commands_run_error_noApi": "API needs to be initialized",
"commands_run_error_readFail": "Failed to read query {query}",
"commands_run_error_unsupportedOutputFileExt": "Unsupported outputFile extention: ${outputFileExt}",
"commands_run_error_unsupportedOutputFileExt": "Unsupported outputFile extention: {outputFileExt}",
"commands_run_error_cueDoesNotExist": "Require cue to run validator, checkout https://cuelang.org/ for more information",
"commands_run_error_noWorkflowScriptFound": "Workflow script not found at path: {path}",
"commands_run_error_noTestEnvFound": "polywrap test-env not found, please run 'polywrap infra up --modules=eth-ens-ipfs'",
"commands_polywrap_error_notACommand": "is not a command",
"commands_polywrap_helpPrompt": "Type {command} to view common commands",
"commands_manifest_description": "Inspect & Migrade Polywrap Manifests",
"commands_manifest_options_m": "Path to the manifest file (default: {default})",
"commands_manifest_options_f": "Target format to migrate to (defaults to latest)",
"commands_manifest_options_t": "Type of manifest file to migrate (default: {default})",
"commands_manifest_options_m_path": "path",
"commands_manifest_options_m_format": "format",
"commands_manifest_options_t_type": "type",
"commands_manifest_command_s": "Prints out the schema for the current manifest format.",
"commands_manifest_command_m": "Migrates the polywrap project manifest to the latest version.",
"commands_manifest_command_s_option_r": "Output raw JSON Schema",
"commands_manifest_command_m_preserveManifestMessage": "Saved previous version of manifest to {preservedFilePath}",
"commands_manifest_command_m_migrateManifestMessage": "Migrating {manifestFile} to version {version}",
"commands_manifest_formatError": "Unsupported manifest format. Please make sure that you have the 'format' field present in {fileName} with one of the following values: {values}",
"commands_manifest_migrate_targetFormatError": "Unsupported target format. Supported formats: {formats}",
"commands_manifest_projectTypeError": "Unsupported project type.",
"lib_codeGenerator_genCodeError": "Failed to generate types",
"lib_codeGenerator_genCodeText": "Generate types",
"lib_codeGenerator_genCodeWarning": "Warnings while generating types",
Expand All @@ -188,7 +203,6 @@
"lib_compiler_compileWasmModulesWarning": "Warnings while compiling Wasm modules",
"lib_compiler_failedAbiReturn": "Abi composer failed to return a combined abi.",
"lib_compiler_noModulesToBuild": "No modules to build declared.",
"lib_compiler_missingAbi": "Missing ABI definition",
"lib_compiler_missingModule": "Missing module definition",
"lib_compiler_noInterfaceModule": "Interfaces cannot have implementation file",
"lib_compiler_step": "Compiling WASM module",
Expand Down Expand Up @@ -216,13 +230,22 @@
"lib_helpers_manifest_outputWarning": "Warnings writing manifest to {path}",
"lib_helpers_manifest_unableToDump": "Unable to dump manifest: {manifest}",
"lib_helpers_manifest_unableToLoad": "Unable to load manifest: {path}",
"lib_helpers_copyText": "Artifacts written to {path}",
"lib_helpers_copyError": "Failed to write build artifacts to {path}",
"lib_helpers_copyWarning": "Warnings write build artifacts to {path}",
"lib_helpers_docker_copyText": "Artifacts written to {path} from the image `{image}`",
"lib_helpers_docker_couldNotConnect": "Could not connect to the Docker daemon. Is the docker daemon running?",
"lib_helpers_docker_copyError": "Failed to write build artifacts to {path} from the image `{image}`",
"lib_helpers_docker_copyWarning": "Warnings write build artifacts to {path} from the image `{image}`",
"lib_helpers_docker_buildText": "Building source image `{image}` using dockerfile `{dockerfile}` in context `{context}`",
"lib_helpers_docker_buildError": "Error while building source image `{image}` using dockerfile `{dockerfile}` in context `{context}`",
"lib_helpers_docker_buildWarning": "Warnings while building image `{image}` using dockerfile `{dockerfile}` in context `{context}`",
"lib_helpers_docker_buildVMText": "Building sources in Docker container`",
"lib_helpers_docker_buildVMError": "Error while building sources in Docker container",
"lib_helpers_docker_buildVMWarning": "Warnings while building sources in Docker container",
"lib_helpers_buildText": "Building sources",
"lib_helpers_buildError": "Error while building sources",
"lib_helpers_buildWarning": "Warnings while building sources",
"lib_helpers_docker_projectFolderMissing": "Build image `{image}` missing /project folder",
"lib_helpers_docker_projectBuildFolderMissing": "Build image `{image}` missing build artifact `{artifact}` in folder /project/build",
"lib_helpers_parameters_unexpectedValue": "Unexpected value provided for one or more of {options}. See --help for more information.",
Expand All @@ -246,5 +269,6 @@
"lib_wrap_abi_not_found": "No WRAP ABI found",
"lib_helpers_wrap_manifest_outputText": "WRAP manifest written in {path}",
"lib_helpers_wrap_manifest_outputError": "Error writing WRAP manifest in {path}",
"lib_helpers_wrap_manifest_outputWarning": "Warning writing WRAP manifest in {path}"
"lib_helpers_wrap_manifest_outputWarning": "Warning writing WRAP manifest in {path}",
"lib_option_defaults_deprecated_project_manifest": "WARNING: the filename `{fileName}` is deprecated and will be removed from the default project manifest files in the future. Please rename it to `polywrap.yaml`."
}
Loading