Skip to content

Fix production build, release via semantic-release, test fork features - #6

Merged
SaiFi0102 merged 4 commits into
masterfrom
fix-build-and-ci
Nov 26, 2026
Merged

SaiFi0102 merged 4 commits into
masterfrom
fix-build-and-ci

Conversation

@SaiFi0102

Copy link
Copy Markdown
Member

Groundwork on the current version, before the upstream merge. The merge stays on the upstream-merge branch from the closed PR #5.

What changed

  • fix: production build. src/datamanager.js used [this.rows, this.flatData] = .... uglify-es@3.0.3 crashes on destructuring into this.*, which broke *.min.js and every CI run. It now destructures into locals.
  • ci: semantic-release. dist/ is gitignored and built in CI. .releaserc.json uses tagFormat: pl-v${version}, because upstream's v* tags clash with fork versions. version is 0.0.0-development, and publishConfig.access is public. Cypress Dashboard recording is removed (no record key needed). The release workflow gets a concurrency group.
  • test: Cypress tests for fork-only features. They cover grouped data (tree and list), getData/flatData (including after appendRows), tree sorting within groups, _excludeFromTotal in the total row and in columnTotal, and shift+arrow at the table edge.
  • docs: adds CLAUDE.md (build and release, consumers, fork features, the plan to follow upstream version numbers, merge notes) and points the README at @paralogic/frappe-datatable.

Testing

  • yarn lint-and-build passes, including the minified bundle.
  • yarn test: 37/37 Cypress tests pass (28 existing, 9 new).
  • With the excludeFromTotal filter and the flatData lookup temporarily removed, 5 of the new tests fail as expected.

Release on merge

  • The baseline tag pl-v1.20.7 (on b7160fa) is pushed, and the npm trusted publisher is configured.
  • The fix: commit should make merging publish 1.20.8 to npm and tag pl-v1.20.8.
  • Merge with "Create a merge commit". A squash merge uses the PR title, which isn't a conventional commit, so nothing would be published.

🤖 Generated with Claude Code

SaiFi0102 and others added 4 commits November 26, 2026 13:25
uglify-es 3.0.3 crashes on `[this.rows, this.flatData] = ...`, which broke
the production build (dist/*.min.js) and therefore CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- build dist in CI only; dist is gitignored again
- fork tags use pl-v${version} to avoid clashing with upstream v* tags
- version stays 0.0.0-development, semantic-release sets it on publish
- publishConfig.access public for the scoped package
- drop Cypress Dashboard recording (no record key needed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Grouped data (tree and list), getData/flatData incl. appendRows, tree sort
within groups, _excludeFromTotal in the total row and columnTotal hook, and
shift+arrow at the table edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SaiFi0102
SaiFi0102 merged commit 6b02d96 into master Nov 26, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.20.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SaiFi0102
SaiFi0102 deleted the fix-build-and-ci branch November 26, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant