Skip to content

Chan: TS migration#78

Open
dpaez wants to merge 12 commits intomainfrom
agent-refactor
Open

Chan: TS migration#78
dpaez wants to merge 12 commits intomainfrom
agent-refactor

Conversation

@dpaez
Copy link
Copy Markdown
Contributor

@dpaez dpaez commented Apr 18, 2026

Initial steps into a new direction. Chan has an offer value that can be quite helpful in the modern development context.

The initial step to add any AI logic/usefulness here is to upgrade deps and migrate to TS. This PR is about that.

@dpaez dpaez self-assigned this Apr 18, 2026
dpaez added 9 commits April 28, 2026 11:36
- Update @geut/chast and @geut/git-url-parse package.json exports
  to point to .ts source files for local dev
- Add publishConfig with dist/ overrides for npm publish
- Add files array and .npmignore to exclude tsbuildinfo from tarballs
- Add docs/issues tracking files and updated PRD
- Verify: tests, type-check, lint, build, pack all pass
- Convert src/index.js to TypeScript with strict types
- Upgrade unified v9 -> v11, mdast-util-to-markdown 0.6.5 -> 2.1.2
- Upgrade unist-builder 1.0.3 -> 4.0.0, unist-util-select -> 4.0.0
- Adapt this.Compiler -> this.compiler for unified v11
- Adapt join option to array for mdast-util-to-markdown v2
- Remove unused dependencies: remark-parse, remark-stringify, unist-util-remove-position
- Convert tests from Jest to Vitest, keep __snapshots__ convention
- Remove integration tests (remarkToChan dependent) - to be restored after remark-chan migration
- Add tsconfig.json matching modernized package pattern
- Convert src/index.js to TypeScript with strict types
- Upgrade unified v9 -> v11 (devDep for tests)
- Upgrade remark-parse v9 -> v11, to-vfile v6 -> v8
- Remove jest, cross-env, dirname-filename-esm, jest-esm-transformer, standard
- Convert tests from Jest to Vitest, regenerate snapshots
- Add tsconfig.json matching modernized package pattern
- Fix chast types: add date/unreleased to ReleaseProps, loosen createGroup name to string, properly type value params as NodeValue
- Export cast properly to avoid unist-builder type mismatches
- Convert src/index.js, src/transformer.js to TypeScript with strict types
- Convert src/templates/preface.js to TypeScript
- Replace v9 preset array-of-tuples with createPipeline() helper using v11 API
- Upgrade unified v9 -> v11, remark-parse v9 -> v11
- Upgrade semver v7.3.5 -> v7.7.4, to-vfile v6 -> v8
- Add vfile v6 as devDependency for types
- Remove jest, jest-date-mock, cross-env, dirname-filename-esm, standard, vfile-reporter
- Convert tests from Jest to Vitest with vi.useFakeTimers() for date mocking
- Add tsconfig.json matching modernized package pattern
- Fix chast types: add [key: string]: unknown to satisfy NodeLike interface
- Fix chan-stringify vfile.fail() type and test mock
@dpaez dpaez changed the title Chan: new direction Chan: TS migration May 4, 2026
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.

1 participant