Skip to content

Commit

Permalink
Update TS SDK to 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjameswh authored Jan 12, 2024
1 parent e140a28 commit 7e3fcf6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
feature-tests-ts:
uses: ./.github/workflows/typescript.yaml
with:
version: 1.5.2
version: 1.9.0
version-is-repo-ref: false
features-repo-ref: ${{ github.head_ref }}
features-repo-path: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
with:
do-push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
go-repo-ref: '77626eee301574bc4cfd756dbf0641c61e9e6907'
ts-ver: 'v1.5.2'
ts-ver: 'v1.9.0'
java-ver: 'v1.22.0'
py-ver: 'v1.4.0'
cs-ver: 'v0.1.0-beta2'
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
},
"dependencies": {
"@protobuf-ts/protoc": "^2.8.1",
"@temporalio/activity": "^1.5.2",
"@temporalio/client": "^1.5.2",
"@temporalio/common": "^1.5.2",
"@temporalio/worker": "^1.5.2",
"@temporalio/workflow": "^1.5.2",
"@temporalio/activity": "^1.9.0",
"@temporalio/client": "^1.9.0",
"@temporalio/common": "^1.9.0",
"@temporalio/worker": "^1.9.0",
"@temporalio/workflow": "^1.9.0",
"commander": "^8.3.0",
"proto3-json-serializer": "^1.1.1"
},
Expand Down
10 changes: 7 additions & 3 deletions sdkbuild/typescript.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,19 @@ func BuildTypeScriptProgram(ctx context.Context, options BuildTypeScriptProgramO
if err != nil {
return nil, fmt.Errorf("cannot get absolute path from version path: %w", err)
}
pkgs := []string{"activity", "client", "common", "internal-workflow-common",
"internal-non-workflow-common", "proto", "worker", "workflow"}
pkgs := []string{"activity", "client", "common", "proto", "worker", "workflow"}
for _, pkg := range pkgs {
pkgPath := "file:" + filepath.Join(localPath, "packages", pkg)
packageJSONDepStr += fmt.Sprintf(`"@temporalio/%v": %q,`, pkg, pkgPath)
packageJSONDepStr += "\n "
}
} else {
packageJSONDepStr = `"temporalio": "` + strings.TrimPrefix(options.Version, "v") + "\",\n "
pkgs := []string{"activity", "client", "common", "proto", "worker", "workflow"}
pkgVersion := strings.TrimPrefix(options.Version, "v")
for _, pkg := range pkgs {
packageJSONDepStr += fmt.Sprintf(`"@temporalio/%v": %q,`, pkg, pkgVersion)
packageJSONDepStr += "\n "
}
}
moreDeps := ""
for dep, version := range options.MoreDependencies {
Expand Down

0 comments on commit 7e3fcf6

Please sign in to comment.