Releases: val-town/codemirror-ts
Dependency updates, expose tsSyncAnnotation, omit initialize from shape
- Tweak renovate setting 9cf74b2
- Tell renovate to use conventional-commits e39e089
- Update dependency pnpm to v10 (#111) 86cf77e
- feat: Export tsSyncAnnotation (#94) 1758be8
- Update actions/checkout action to v5 (#112) 9250abe
- Update actions/configure-pages action to v5 (#108) 2ab20d5
- Update dependency @types/node to v24.2.1 (#110) 5e50b7c
- Update dependency @types/node to v24.2.0 (#102) aff7139
- Update dependency typescript to v5.9.2 (#107) 9f298a6
- Update vitest monorepo to v3.2.4 (#106) 5cac5de
- Update dependency vite to v7 (#109) 10393bf
- Update dependency @biomejs/biome to v2.1.4 (#105) 5239e87
- Delete .github/dependabot.yml (#101) 97aee0d
- Add renovate.json (#100) 7ec03cd
- Bump happy-dom from 17.5.6 to 18.0.1 (#88) 7a53742
- Bump @types/node from 22.15.27 to 24.0.7 (#91) 182f01b
- Bump @biomejs/biome from 1.9.4 to 2.0.6 (#92) 84db579
- Bump @codemirror/language from 6.11.0 to 6.11.2 (#93) e461796
- Bump esbuild (#81) 97f5665
- Bump happy-dom from 17.4.8 to 17.5.6 (#79) 1205dcf
- Update dependabot.yml (#80) 16a1709
- Bump happy-dom from 17.4.7 to 17.4.8 (#77) d3ec88f
- Bump @types/node from 22.15.19 to 22.15.20 (#73) 0edfcc6
- Bump @codemirror/language from 6.10.8 to 6.11.0 (#72) ca557ef
- Bump happy-dom from 15.11.7 to 17.4.7 (#69) 1b8c97b
- Bump @codemirror/lang-javascript from 6.2.2 to 6.2.4 (#68) e246e48
- Bump @types/node from 22.13.1 to 22.15.19 (#71) 5f12507
- Bump typescript from 5.7.3 to 5.8.3 (#67) a49e952
- Bump vite from 6.1.6 to 6.3.5 (#70) 6a679ac
- Create dependabot.yml 4522525
- Bump vite from 6.1.0 to 6.1.6 (#66) 40174ae
- Pass getDefinitionAtPosition separately via HoverInfo (#65) ddb2036
- Omit initialize from WorkerShape.initialize FacetConfig (#64) 238bce8
v3.0.0-14
Flexible log method
Worker only & new twoslash
There are two big changes in this release:
- We're dropping the non-worker versions of all extensions. They were always just something for demos and were never recommended in prod. Supporting two slightly-different versions of every API was not long-term sustainable.
- Support for twoslash. See the demo for an example: you type a comment like
// ^?and it'll show you what the type of the thing pointed at by^is.
Improved tree-shakeability
The only change in this release is adding a sideEffects key to package.json, which should make this module more tree-shakeable for bundlers that support that.
Adds diagnosticCodesToIgnore for tsLinter
This new option lets you ignore expected lint errors by listing their error codes.
Example:
tsLinter({
diagnosticCodesToIgnore: [
2354, // tslib not found
2307, // Cannot find module 'xxx' or its corresponding type declarations
1375, // 'await' expressions are only allowed at the top level of a file when that file is a module
],
}),Thanks @KABBOUCHI for this contribution!
Fixes compatibility with bundlers
This module is published as ESM, and imports from the TypeScript module. It previously used named imports from TypeScript, but the TypeScript module doesn't expose named imports. Some bundlers create compatibility for this, basically importing the default and destructuring from it. But others don't. This update just uses the default import to ensure compatibility across bundlers.
Add getEnv method
v2.0.0
BREAKING CHANGE: if you use 1.0.0, you'll definitely have to update code.
I realized that this module wasn't doing things right! And it was good to fix it. The right way to manage configuration in CodeMirror is with a Facet, not with passing parameters!
So before, something like lint was
tsLinter({ env, path });But in 2.0.0, you use it like
tsLinter();And you need a new thing, the facet!
tsFacet.of({ env, path });You need that in your extensions list - that's where the other extensions get their configuration from.