Skip to content

feat(migrate-legacy-buffer-atob-btoa): introduce - #206

Merged
JakobJingleheimer merged 10 commits into
nodejs:mainfrom
nekojanai:feat(`migrate-legacy-buffer-atob-btoa`)
Oct 15, 2025
Merged

JakobJingleheimer merged 10 commits into
nodejs:mainfrom
nekojanai:feat(`migrate-legacy-buffer-atob-btoa`)

Conversation

@nekojanai

@nekojanai nekojanai commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

closes #98

Comment thread recipes/buffer-atob-btoa/README.md Outdated
Comment thread recipes/buffer-atob-btoa/README.md Outdated
Comment thread recipes/buffer-atob-btoa/README.md Outdated
Comment thread recipes/buffer-atob-btoa/README.md Outdated

@AugustinMauroy AugustinMauroy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Noice! But my advice is to start writing test commit them on local then build the codemod and then push everything

Comment thread recipes/buffer-atob-btoa/README.md Outdated
Comment thread recipes/buffer-atob-btoa/README.md
Comment thread recipes/buffer-atob-btoa/package.json
@nekojanai
nekojanai force-pushed the feat(`migrate-legacy-buffer-atob-btoa`) branch from 23a2fcf to 2c2fee2 Compare September 17, 2025 16:34
@nekojanai
nekojanai force-pushed the feat(`migrate-legacy-buffer-atob-btoa`) branch from 2c2fee2 to f6f823e Compare September 17, 2025 16:37
@nekojanai
nekojanai marked this pull request as ready for review September 17, 2025 16:38
@nekojanai
nekojanai requested a review from brunocroh September 17, 2025 16:40

@AugustinMauroy AugustinMauroy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing test/feature:

  • dynamic import
  • esm import

Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
@nekojanai

Copy link
Copy Markdown
Contributor Author

@AugustinMauroy Could you provide examples for dynamic and esm imports to test against?

@AugustinMauroy

Copy link
Copy Markdown
Member

ESM import

Input/before:

import buffer from "node:buffer";

// do stuff

Dynamic import

const buffer = await import("node:buffer");

// do stuff

Don't worry it's shouldn't complicated because we have serval utilities for that

@JakobJingleheimer JakobJingleheimer added the awaiting author Reviewer has requested something from the author label Sep 24, 2025
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
@nekojanai
nekojanai requested a review from brunocroh September 30, 2025 19:37
@nekojanai

Copy link
Copy Markdown
Contributor Author

Should be gtm

@brunocroh brunocroh removed the awaiting author Reviewer has requested something from the author label Sep 30, 2025

@brunocroh brunocroh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great now, Thank you!

Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
Comment thread recipes/buffer-atob-btoa/src/workflow.ts
Comment thread recipes/buffer-atob-btoa/src/workflow.ts
@AugustinMauroy AugustinMauroy added the awaiting author Reviewer has requested something from the author label Oct 1, 2025
Comment thread recipes/buffer-atob-btoa/src/workflow.ts
@nekojanai

Copy link
Copy Markdown
Contributor Author

@AugustinMauroy should be gtm now

@AugustinMauroy AugustinMauroy added awaiting reviewer Author has responded and needs action from the reviewer and removed awaiting author Reviewer has requested something from the author labels Oct 13, 2025

@JakobJingleheimer JakobJingleheimer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome, thanks for another one @nekojanai 🙌

Comment thread recipes/buffer-atob-btoa/codemod.yaml
Comment thread recipes/buffer-atob-btoa/src/workflow.ts Outdated
@JakobJingleheimer JakobJingleheimer removed the awaiting reviewer Author has responded and needs action from the reviewer label Oct 14, 2025
@JakobJingleheimer
JakobJingleheimer merged commit 175330b into nodejs:main Oct 15, 2025
18 checks passed
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.

feat: Migrate legacy buffer.atob(data) and buffer.btoa(data) APIs

5 participants