Rewrite in TypeScript and modernize build system#135
Merged
EmilyRagan merged 1 commit intoace-diff:masterfrom Feb 23, 2026
Merged
Rewrite in TypeScript and modernize build system#135EmilyRagan merged 1 commit intoace-diff:masterfrom
EmilyRagan merged 1 commit intoace-diff:masterfrom
Conversation
Closed
Collaborator
|
Looks great @TrevorBurnham! We will get reviewed and merged! Also I updated the gh-pages branch ... thanks for the heads up! |
EmilyRagan
requested changes
Jan 24, 2026
Collaborator
EmilyRagan
left a comment
There was a problem hiding this comment.
Thank you so much for contributing!
3de200b to
194fc56
Compare
Collaborator
|
@TrevorBurnham we just merged #136 to do the file renames. Hopefully this will help preserve file history. Please rebase on that. Thanks! |
c61eff5 to
59f0c97
Compare
Contributor
Author
Done! |
EmilyRagan
requested changes
Feb 17, 2026
Collaborator
|
Sorry for the long delay between reviews! |
59f0c97 to
76b7bcf
Compare
EmilyRagan
approved these changes
Feb 23, 2026
Collaborator
EmilyRagan
left a comment
There was a problem hiding this comment.
This looks great! Thanks so much for doing this work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #125
This PR migrates
ace-difffrom vanilla JavaScript to TypeScript with ES Modules (ESM) as the primary module format, while dual-building as CJS. This is a major version upgrade (v4.0.0) that modernizes the codebase while maintaining API compatibility.Changes
Package Configuration
"type": "module"to enable ESM by default.mjsfor ESM,.cjsfor CJS)sideEffectsfield for better tree-shaking supportace-buildsas a peer dependencyBuild System
TypeScript Configuration
ESNextwithbundlerresolution.d.mtsand.d.cts)Source Code
src/types/)Documentation
Tooling
.prettierrcto.prettierrc.cjsfor ESM compatibilityattw(Are The Types Wrong) checker to CIBreaking Changes
See the README for details.
Testing
pnpm typecheck)pnpm lint)pnpm build)pnpm attw)pnpm test)pnpm dev)Checklist
Next steps
Once this is merged, we should update the documentation site: https://ace-diff.github.io/ace-diff/ That site corresponds to the gh-pages branch, which was last updated in 2018!