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
2 changes: 1 addition & 1 deletion __tests__/lib/edge-workers/toolchains.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe( 'edge-workers toolchains', () => {
expect( fs.existsSync( path.join( project, 'workers' ) ) ).toBe( true );

const pkg = JSON.parse( fs.readFileSync( path.join( project, 'package.json' ), 'utf8' ) );
expect( pkg.dependencies[ '@automattic/vip-edge-workers-sdk' ] ).toBe( '0.4.0' );
expect( pkg.dependencies[ '@automattic/vip-edge-workers-sdk' ] ).toBe( '0.5.0' );
expect( pkg.devDependencies.assemblyscript ).toBe( '0.27.0' );

const readme = fs.readFileSync( path.join( project, 'README.md' ), 'utf8' );
Expand Down
4 changes: 2 additions & 2 deletions docs/EDGE-WORKERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ edge-workers/
```

`build/` is created when a worker is compiled and is ignored by Git. The generated direct
dependencies are exact: `@automattic/vip-edge-workers-sdk` is `0.4.0` and `assemblyscript` is
dependencies are exact: `@automattic/vip-edge-workers-sdk` is `0.5.0` and `assemblyscript` is
`0.27.0`. The starter exports only `alloc` and `on_client_response`; the other request phases are
commented examples and are not active WASM exports.

Expand All @@ -48,7 +48,7 @@ The project descriptor selects the toolchain for every worker in the project:
```json
{
"type": "assemblyscript",
"sdk": "@automattic/vip-edge-workers-sdk@0.4.0"
"sdk": "@automattic/vip-edge-workers-sdk@0.5.0"
}
```

Expand Down
2 changes: 1 addition & 1 deletion internal/edgeworkers/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestScaffoldDoesNotOverwriteOrInstall(t *testing.T) {
t.Fatal(err)
}
before, _ := os.ReadFile(filepath.Join(dir, "package.json"))
if !strings.Contains(string(before), `"0.4.0"`) || !strings.Contains(string(before), `"0.27.0"`) {
if !strings.Contains(string(before), `"0.5.0"`) || !strings.Contains(string(before), `"0.27.0"`) {
t.Fatalf("dependencies: %s", before)
}
if err := ScaffoldProject(dir, "assemblyscript"); err == nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/edgeworkers/templates/edge-workers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "assemblyscript",
"sdk": "@automattic/vip-edge-workers-sdk@0.4.0"
"sdk": "@automattic/vip-edge-workers-sdk@0.5.0"
}
2 changes: 1 addition & 1 deletion internal/edgeworkers/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "vip edge-workers build --all"
},
"dependencies": {
"@automattic/vip-edge-workers-sdk": "0.4.0"
"@automattic/vip-edge-workers-sdk": "0.5.0"
},
"devDependencies": {
"assemblyscript": "0.27.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
*/

export const SDK_PACKAGE = '@automattic/vip-edge-workers-sdk';
export const SDK_VERSION = '0.4.0';
export const SDK_VERSION = '0.5.0';
export const ASSEMBLYSCRIPT_VERSION = '0.27.0';
export const DEFAULT_ENTRY = 'assembly/index.ts';
Loading