Skip to content

chore: switch to @parseaple/typedstream#42

Merged
LingJueYa~ (LingJueYa) merged 4 commits intophoton-hq:mainfrom
qwerzl:chore/parseaple-typedstream
Mar 6, 2026
Merged

chore: switch to @parseaple/typedstream#42
LingJueYa~ (LingJueYa) merged 4 commits intophoton-hq:mainfrom
qwerzl:chore/parseaple-typedstream

Conversation

@qwerzl
Copy link
Copy Markdown
Member

@qwerzl Tom Tang (qwerzl) commented Mar 3, 2026

@parseaple/typedstream is our in-house fork of node-typedstream. This makes our only dependency completely safe from supply chain attack. This package also introduces stricter types and edge cases handling.

Copilot AI review requested due to automatic review settings March 3, 2026 22:14
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR switches the project’s typedstream dependency from node-typedstream to the in-house fork @parseaple/typedstream, updating the runtime import and related tests to match the new package.

Changes:

  • Replace node-typedstream with @parseaple/typedstream in the database attributedBody extraction code.
  • Update attributedBody extraction tests to import and construct NSAttributedString from @parseaple/typedstream.
  • Update dependency/lockfile metadata (including removing package-lock.json and updating bun.lock).

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/core/database.ts Updates typedstream import and references in attributedBody extraction.
tests/12-attributed-body.test.ts Updates tests to use @parseaple/typedstream and new NSAttributedString constructor signature.
package.json Swaps the dependency to @parseaple/typedstream.
package-lock.json Removes the npm lockfile entirely.
bun.lock Updates Bun lockfile to include @parseaple/typedstream (and other dependency resolution changes).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 4, 2026 00:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@LingJueYa LingJueYa~ (LingJueYa) left a comment

Choose a reason for hiding this comment

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

LGTM

@LingJueYa LingJueYa~ (LingJueYa) merged commit 6781e29 into photon-hq:main Mar 6, 2026
9 of 10 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.

3 participants