Skip to content

feat: add temp package to preferred manifest#453

Merged
43081j merged 3 commits intoe18e:mainfrom
gameroman:temp
Mar 18, 2026
Merged

feat: add temp package to preferred manifest#453
43081j merged 3 commits intoe18e:mainfrom
gameroman:temp

Conversation

@gameroman
Copy link
Copy Markdown
Contributor

Closes #339

@gameroman gameroman marked this pull request as ready for review March 17, 2026 02:07
@43081j
Copy link
Copy Markdown
Contributor

43081j commented Mar 17, 2026

given its the same replacements as tempy, we should probably just have one document.

do not update the title of the tempy doc, just add a description before the replacements list like "creating temporary files and directories can now be achieved natively in modern engines, making libraries like tempy redundant.".

@gameroman
Copy link
Copy Markdown
Contributor Author

Should I then instead of diffs make it examples without diffs or should I keep the diffs for tempy?

@43081j
Copy link
Copy Markdown
Contributor

43081j commented Mar 17, 2026

either works. whichever you think is most helpful.

in this case i dont have a preference since a diff will still be helpful, but so will a plain usage example.

sorry for the non-answer 😄

Comment thread docs/modules/tempy.md
const tempDirPath = await mkdtemp(join(await realpath(tmpdir()), 'foo-')) // [!code ++]
```

```ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this code block needs some context. a description or something. what is it showing us that the earlier one doesn't show?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's that one is showing diff for tempy and the second one for temp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

currently its just a standalone code block with no explanation. we should add some text before it, or not have it.

we haven't yet decided how to handle multiple target modules in one doc. this is the first time. so im not sure if we should bother as it feels like a discussion is needed

@43081j 43081j merged commit dc24a1e into e18e:main Mar 18, 2026
4 checks passed
@gameroman gameroman deleted the temp branch March 18, 2026 18:14
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.

suggest replacing temp with native node.js mkdtemp

2 participants