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
5 changes: 5 additions & 0 deletions .changeset/add-sourcemap-shim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/tsgo": minor
---

Update TypeScript-Go and expose the internal sourcemap package through generated shims.
5 changes: 0 additions & 5 deletions .changeset/bright-geese-push.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/generated-stable-branch.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/generated-stable-parent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/tsgo": patch
---

Make generated stable branch pull requests commit on top of `generated/stable` to avoid merge conflicts with `main`.
5 changes: 0 additions & 5 deletions .changeset/generated-stable-pr-workflow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/native-preview-githead.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/remove-effect-diagnostics-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/tsgo": patch
---

Remove the unused native `getEffectDiagnostics` API hook from the patched TypeScript-Go API.
2 changes: 1 addition & 1 deletion .changeset/update-typescript-go.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@effect/tsgo": patch
---

Update to [`@typescript/native-preview@7.0.0-dev.20260620.1`](https://www.npmjs.com/package/@typescript/native-preview/v/7.0.0-dev.20260620.1), which ships [`typescript-go`](https://github.com/microsoft/typescript-go/commit/dc37b5249ab60e2bbce936f71b883e6c8136167e) commit `dc37b5249ab60e2bbce936f71b883e6c8136167e`.
Update to [`@typescript/native-preview@7.0.0-dev.20260623.1`](https://www.npmjs.com/package/@typescript/native-preview/v/7.0.0-dev.20260623.1), which ships [`typescript-go`](https://github.com/microsoft/typescript-go/commit/9415bebdeb9e69997846d2a2844c78f439ff22f1) commit `9415bebdeb9e69997846d2a2844c78f439ff22f1`.
5 changes: 0 additions & 5 deletions .changeset/version-suffix-patch-context.md

This file was deleted.

36 changes: 17 additions & 19 deletions .github/workflows/generate-stable-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
has_changes: ${{ steps.changes.outputs.has_changes }}
pr_number: ${{ steps.pr.outputs.pr_number }}
head_sha: ${{ steps.pr.outputs.head_sha }}
head_sha: ${{ steps.changes.outputs.head_sha }}
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -83,36 +83,35 @@ jobs:
- name: Regenerate shims and generated files
run: bash _tools/setup-repo.sh --ci

- name: Commit generated stable changes
- name: Create generated stable commit
id: changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A

if git diff --cached --quiet; then
echo "No generated stable changes to commit."
else
git commit -m "chore: generate stable TypeScript-Go branch" \
-m "TypeScript package: ${{ steps.typescript.outputs.spec }}" \
-m "TypeScript version: ${{ steps.typescript.outputs.version }}" \
-m "TypeScript-Go commit: ${{ steps.typescript.outputs.git_head }}"
fi

- name: Check for generated/stable changes
id: changes
run: |
git fetch --depth 1 origin generated/stable

if git diff --quiet FETCH_HEAD HEAD; then
git add -A
generated_tree="$(git write-tree)"
stable_tree="$(git rev-parse FETCH_HEAD^{tree})"

if [ "${generated_tree}" = "${stable_tree}" ]; then
echo "Generated stable branch is already up to date."
echo "has_changes=false" >> "$GITHUB_OUTPUT"
exit 0
fi

head_sha="$(git commit-tree "${generated_tree}" \
-p FETCH_HEAD \
-m "chore: generate stable TypeScript-Go branch" \
-m "TypeScript package: ${{ steps.typescript.outputs.spec }}" \
-m "TypeScript version: ${{ steps.typescript.outputs.version }}" \
-m "TypeScript-Go commit: ${{ steps.typescript.outputs.git_head }}")"
echo "has_changes=true" >> "$GITHUB_OUTPUT"
echo "head_sha=${head_sha}" >> "$GITHUB_OUTPUT"

- name: Push generated stable PR branch
if: steps.changes.outputs.has_changes == 'true'
run: git push --force origin HEAD:chore/generate-stable-branch
run: git push --force origin "${{ steps.changes.outputs.head_sha }}:chore/generate-stable-branch"

- name: Create or update generated stable PR
id: pr
Expand Down Expand Up @@ -159,7 +158,6 @@ jobs:
fi

echo "pr_number=${pr_number}" >> "$GITHUB_OUTPUT"
echo "head_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

validate-pr:
name: Validate generated stable PR
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-darwin-arm64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-darwin-arm64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-darwin-arm64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-darwin-x64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-darwin-x64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-darwin-x64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-linux-arm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-linux-arm

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-linux-arm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-linux-arm",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-linux-arm64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-linux-arm64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-linux-arm64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-linux-x64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-linux-x64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-linux-x64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-win32-arm64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-win32-arm64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-win32-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-win32-arm64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions _packages/tsgo-win32-x64/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @effect/tsgo-win32-x64

## 0.14.6

## 0.14.5

## 0.14.4
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo-win32-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo-win32-x64",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
11 changes: 11 additions & 0 deletions _packages/tsgo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @effect/tsgo

## 0.14.6

### Patch Changes

- 070f2b5: Publish platform packages with both the `tsgo` binary built from `main` and the `tsc` binary built from `generated/stable`.
- ef53ddd: Add automation that publishes a generated `generated/stable` branch pinned to the TypeScript RC `typescript-go` commit and runs CI on that branch.
- eb0dbbc: Update the generated stable branch automation to open a pull request and validate it before merging.
- ef0a5a0: Fix the automated TypeScript-Go update workflow to pin the submodule to the commit shipped by `@typescript/native-preview@latest`.
- fb3096f: Update to [`@typescript/native-preview@7.0.0-dev.20260620.1`](https://www.npmjs.com/package/@typescript/native-preview/v/7.0.0-dev.20260620.1), which ships [`typescript-go`](https://github.com/microsoft/typescript-go/commit/dc37b5249ab60e2bbce936f71b883e6c8136167e) commit `dc37b5249ab60e2bbce936f71b883e6c8136167e`.
- 4423d1d: Make the TypeScript-Go version suffix patch apply across upstream TypeScript version literal changes.

## 0.14.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion _packages/tsgo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effect/tsgo",
"version": "0.14.5",
"version": "0.14.6",
"description": "Effect Language Service for TypeScript-Go — Effect-specific diagnostics and hover features.",
"license": "MIT",
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions _patches/001-cmd-tsgo-main.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ diff --git a/cmd/tsgo/main.go b/cmd/tsgo/main.go
index 8d6816fa3d..49c6cbecba 100644
--- a/cmd/tsgo/main.go
+++ b/cmd/tsgo/main.go
@@ -6,6 +6,12 @@ import (
@@ -6,6 +6,11 @@ import (
"os/signal"
"syscall"

+ // Import Effect hooks to register via init()
+ _ "github.com/effect-ts/tsgo/etsapihooks" // native API hooks
+ _ "github.com/effect-ts/tsgo/etsexecutehooks" // exit-code filtering hooks
+ _ "github.com/effect-ts/tsgo/etscheckerhooks" // checker diagnostics hooks
+ _ "github.com/effect-ts/tsgo/etslshooks" // LS codefix hooks
Expand Down
118 changes: 0 additions & 118 deletions _patches/028-api-effect-diagnostics.patch

This file was deleted.

Loading