Skip to content

tests updated - #137

Merged
kawanet merged 6 commits into
mainfrom
chore/browser-test
Sep 2, 2026
Merged

tests updated#137
kawanet merged 6 commits into
mainfrom
chore/browser-test

Conversation

@kawanet

@kawanet kawanet commented Sep 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61554d3ec5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread browser/Makefile
--plugin @rollup/plugin-node-resolve \
--name "__BUFFER__" | \
perl -pe 's#^var __BUFFER__#const {Buffer}#' > $@
--banner "const {Buffer} = " \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore an IIFE output name for the buffer shim

When make -C browser test builds tests/buffer.shim.js, the CommonJS plugin exposes the exports from buffer/index.js, but this command no longer supplies --name. Rollup documents output.name as necessary for IIFE/UMD bundles that export values, so generation fails before the banner can destructure Buffer, breaking the Browser CI workflow; retain an output name and adapt the generated assignment instead of replacing it solely with a banner.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The browser/Makefile bundling rewrite relies on non-trivial Rollup semantics and is not exercised by this PR's CI (Browser CI runs only on push to main), so its correctness cannot be fully verified automatically.

Pull request overview

This PR performs routine maintenance on the build/lint tooling and bumps versions. It simplifies the browser test bundling to use native Rollup output options instead of perl post-processing, switches jshint to lint the whole repo tree via a new .jshintignore, and bumps the package version and the msgpackr benchmark dependency.

Changes:

  • Bump version to 0.2.2 and the msgpackr devDependency to ^2.1.0.
  • Replace the perl -pe post-processing of Rollup output with native Rollup flags (--globals, --no-makeAbsoluteExternalsRelative, --banner, --file) in browser/Makefile.
  • Replace the explicit HINTS file list with jshint . --extra-ext .json plus a new .jshintignore excluding .github/, browser/, dist/, node_modules/.
File summaries
File Description
package.json Version bump to 0.2.2 and msgpackr devDependency bump to ^2.1.0 (both valid).
Makefile Drops HINTS variable and lints the whole repo with jshint . --extra-ext .json; scope effectively adds only the ES3-safe global.js.
browser/Makefile Rewrites Rollup invocations to use native options instead of perl; buffer build now relies on --banner "const {Buffer} = " with an unnamed IIFE.
.jshintignore New ignore file so jshint . skips generated/non-ES3 sources under .github/, browser/, dist/, node_modules/.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kawanet
kawanet merged commit 99438f4 into main Sep 2, 2026
11 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.

2 participants