Skip to content

fix: shim encoder module#314

Merged
hardfist merged 1 commit intomainfrom
yj/export-encoder
Aug 29, 2025
Merged

fix: shim encoder module#314
hardfist merged 1 commit intomainfrom
yj/export-encoder

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

export encoder module to support js api for ast

Copilot AI review requested due to automatic review settings August 29, 2025 05:46
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 29, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit 4505ec0
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/68b17230f4481000083ebd06
😎 Deploy Preview https://deploy-preview-314--rslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the shim encoder module to support the JavaScript API for AST functionality by exporting the encoder module. The main purpose is to enable JavaScript access to TypeScript AST encoding capabilities through the shim layer.

Key changes:

  • Added encoder module exports to the shim generation tool
  • Created new shim packages for API and encoder modules
  • Updated TypeScript-Go dependency version across all modules

Reviewed Changes

Copilot reviewed 23 out of 41 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/gen_shims/main.go Added canBeExported function and new packages "api" and "api/encoder" to shimming list
shim/api/shim.go New generated shim file exposing API module functionality
shim/api/encoder/shim.go New generated shim file exposing encoder module for AST encoding
internal/api/api.go Added EncodeAST function that wraps encoder.EncodeSourceFile
go.mod Updated TypeScript-Go dependency and added new shim module replacements
tools/update-typescript-go.sh Commented out TypeScript-Go update commands
Various go.mod files Updated TypeScript-Go dependency version from 20250814234431 to 20250829050502

@hardfist hardfist merged commit 1291d07 into main Aug 29, 2025
17 checks passed
@hardfist hardfist deleted the yj/export-encoder branch August 29, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants