Skip to content

docs(dom): add example to combine#277

Open
chengchuu wants to merge 18 commits intorelease/v4from
docs/v4/add-style-example-thu-apr-16-2026
Open

docs(dom): add example to combine#277
chengchuu wants to merge 18 commits intorelease/v4from
docs/v4/add-style-example-thu-apr-16-2026

Conversation

@chengchuu
Copy link
Copy Markdown
Owner

No description provided.

@chengchuu chengchuu added typescript TypeScript language related documentation Relates to documentation updates or improvements labels Apr 15, 2026
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 primarily updates documentation/examples (notably DOM utilities) and applies broad formatting/housekeeping across docs and scripts, while also adjusting parts of the build/release toolchain and local/dev environment setup.

Changes:

  • Expanded DOM documentation with combined genStyleString + addStyle examples; reorganized related README sections.
  • Normalized whitespace/formatting across many JSDoc blocks and examples.
  • Updated tooling/dev setup (Rollup resolve plugin, lint script globs, Node/Docker/GitHub Actions adjustments) and bumped package version.

Reviewed changes

Copilot reviewed 22 out of 32 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/browser.test.js Normalizes string quoting in a browser env test.
src/util.ts JSDoc whitespace normalization only.
src/url.ts JSDoc whitespace cleanup and trims trailing spaces.
src/store.ts JSDoc whitespace cleanup.
src/perf.ts JSDoc whitespace cleanup.
src/load.ts Minor formatting + JSDoc whitespace cleanup.
src/event.ts JSDoc whitespace cleanup.
src/dom.ts Adds/updates DOM docs examples (including combined usage patterns).
src/debug.ts Adjusts genCustomConsole option handling logic for deprecated isClosed.
src/calc.ts JSDoc whitespace cleanup.
src/browser.ts Formatting cleanup in imports + JSDoc whitespace cleanup.
scripts/shell/env-win.sh Updates Windows dev Node version via nvm.
scripts/rollup.config.mjs Adds @rollup/plugin-node-resolve to build pipeline + minor comment tweak.
scripts/release.js Changes release invocation options (now TOC-only).
scripts/git-helper.js Adds TOC-only option to release helper.
scripts/convert/td2md.sh Removed conversion helper script.
scripts/convert/md2td.sh Removed conversion helper script.
scripts/convert/data/td2md.md Removed conversion fixture.
scripts/convert/data/td2md.js Removed conversion fixture.
scripts/convert/data/md2td.md Removed conversion fixture.
scripts/convert/data/md2td.js Removed conversion fixture.
scripts/change-package-name.js Formatting + eslint disables for scripts context.
package.json Version bump, lint script change, adds rollup resolve dependency.
examples/index.ts Cleans up comments/blank lines in examples.
README.md Reorders/adds docs sections and adds combined DOM examples.
Dockerfile Adds a containerized workflow-like test runner.
.vscode/settings.json Editor settings for Markdown TOC + whitespace/EOL normalization.
.github/workflows/publish-npm.yml Formatting + updates action major versions.
.gitattributes Enforces LF line endings for key file types.
.dockerignore Adds ignore rules for building local Docker image efficiently.

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

Comment thread scripts/release.js Outdated
console.log("release: SCRIPTS_NPM_PACKAGE_VERSION", process.env.SCRIPTS_NPM_PACKAGE_VERSION);

release(pkgVersion, { canGenerateToc: true });
release(pkgVersion, { canGenerateToc: true, enerateTocOnly: true });
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

release() is invoked with enerateTocOnly: true, which causes the script to exit right after generating the TOC and skip the actual release steps (commit/merge/build/publish/tag). If this file is still intended to be the main release entrypoint (used by npm run release), remove this flag or default it to false; otherwise consider splitting TOC-only behavior into a separate script to avoid accidentally disabling releases.

Suggested change
release(pkgVersion, { canGenerateToc: true, enerateTocOnly: true });
release(pkgVersion, { canGenerateToc: true });

Copilot uses AI. Check for mistakes.
Comment thread scripts/git-helper.js Outdated
Comment on lines 34 to 35
async function release (ver, { canGenerateToc = false, enerateTocOnly = false, defaultBranch = "main" } = {}) {
if (!ver) {
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The option name enerateTocOnly looks like a typo (missing leading g), and it becomes part of the public release() API (and is referenced by scripts/release.js). Consider renaming it to generateTocOnly (and keeping enerateTocOnly temporarily as a deprecated alias if needed) to avoid a permanently confusing API surface.

Copilot uses AI. Check for mistakes.
Comment thread package.json
Comment on lines 1 to 23
@@ -19,7 +19,7 @@
"test": "jest",
"test:debug": "npm run build:debug && npm run test",
"test:coverage": "npm run build:debug && npx jest --coverage",
"lint:fix": "eslint --ext 'js,ts,tsx' --fix ./src ./test ./scripts",
"lint:fix": "eslint --ext 'js,ts,tsx,mjs' --fix ./src/*.ts ./test/*.js ./scripts/*.js ./scripts/*.mjs",
"docs": "typedoc --readme ./README.md --excludeProtected --excludePrivate --excludeInternal --hideGenerator",
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

This PR’s title indicates a DOM docs-only change, but it also updates build/release tooling (Rollup config, GitHub Actions versions), adds Docker artifacts, and bumps the package version. If these changes are intended, consider updating the PR title/description to reflect the broader scope; otherwise, consider splitting non-doc changes into a separate PR to reduce review/release risk.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Relates to documentation updates or improvements typescript TypeScript language related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants