Skip to content

Refactor: Use String.prototype.replaceAll() and update TS lib - #402

Merged
NTaylorMullen merged 1 commit into
mainfrom
ntm/gh.7
May 17, 2025
Merged

NTaylorMullen merged 1 commit into
mainfrom
ntm/gh.7

Conversation

@NTaylorMullen

Copy link
Copy Markdown
Collaborator
  • Replaces the custom replaceAll implementation in packages/server/src/tools/edit.ts with the standard String.prototype.replaceAll().
  • Updates packages/server/tsconfig.json to include ES2021 in the lib compiler options to ensure TypeScript recognizes this method. This aligns with the project's Node.js version requirements (Node.js 16.x+).

Fixes #7

- Replaces the custom `replaceAll` implementation in `packages/server/src/tools/edit.ts` with the standard `String.prototype.replaceAll()`.
- Updates `packages/server/tsconfig.json` to include `ES2021` in the `lib` compiler options to ensure TypeScript recognizes this method. This aligns with the project's Node.js version requirements \(Node.js 16.x+\).

Fixes #7
@NTaylorMullen
NTaylorMullen enabled auto-merge (rebase) May 17, 2025 05:42
@NTaylorMullen
NTaylorMullen merged commit 58e0224 into main May 17, 2025
@NTaylorMullen
NTaylorMullen deleted the ntm/gh.7 branch May 17, 2025 05:43
@sripasg sripasg added the size/s A small PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s A small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use String.replaceAll

2 participants