04 Logger v5 Upgrades - #2
Merged
Merged
Conversation
…sts, and CI - Bump harper from ^5.0.11 to ^5.0.28 - Add @harperfast/integration-testing, typescript, @types/node dev deps - Add test:integration script - Add integrationTests/dog.test.ts with harperBinPath fix, Dog CRUD tests, DogWithHumanAge humanAge calculation tests, and logger-firing coverage - Add .github/workflows/integration-tests.yml (Node 22/24/26 matrix) - Regenerate package-lock.json with --os=linux --cpu=x64 --include=optional to include bufferutil, utf-8-validate, node-gyp-build for npm ci on Linux CI - Fix branding: HarperDB Inc. -> Harper in package.json author field Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Bump the harper dependency to ^5.2.1 and regenerate the lockfile. Regenerated in full so the optional native deps (bufferutil, utf-8-validate, segfault-handler) stay in the tree for Linux CI. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The previous lockfile was generated with npm 11, which does not auto-install the peer dependencies of an optional dependency. harper 5.2.1 pulls alasql, which optionally depends on react-native-fs, whose peers (react-native, react) npm 12 installs and npm 11 does not. CI runs npm 12 on Node 24/26, so npm ci failed there with those packages "missing from lock file" while Node 22 (npm 11) passed. Regenerated with npm 12 so the lockfile carries the full tree. lockfileVersion stays 3; npm ci verified under both npm 11 and npm 12. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
dawsontoth
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
^5.0.11→^5.0.28@harperfast/integration-testing@^0.4.0,typescript@^6.0.3,@types/nodeintegrationTests/dog.test.ts): Dog table CRUD (PUT/GET/DELETE),DogWithHumanAgehumanAge calculation coverage (age 1→15, 2→24, 3→29, 4→34), and explicit tests confirminglogger.info()side-effects do not break response correctnesscreateRequireresolution from the exported package root (harper'sexportsmap only exposes".", sorequire.resolve('harper/dist/bin/harper.js')throwsERR_PACKAGE_PATH_NOT_EXPORTED); passesharperBinPathexplicitly tosetupHarperWithFixture.github/workflows/integration-tests.ymlwith Node 22/24/26 matrix, actions pinned to commit hashes--os=linux --cpu=x64 --include=optionalto recordbufferutil,utf-8-validate,node-gyp-buildfornpm cion Linux CIHarperDB Inc.→Harperinpackage.jsonauthor fieldMigration items applied
harperdb→harperimportsimport { tables, logger } from 'harper')Table.get()return shape / frozen recordsMigration items N/A
All remaining items from the v5 migration guide (blob
save(), transaction commits,wasLoadedFromSource(),harperdbglobal) are not used in this step-branch's codebase.Known issues / workarounds
npm run test:integrationfails locally withEADDRNOTAVAILbecause macOS requires loopback aliases (127.0.0.2+) that need interactivesudo. Tests are validated by CI (ubuntu-latestsupports the full 127.0.0.0/8 range without aliasing). This is environmental, not a code bug.harpershould export its bin path, or the harness should resolve via the package root. Flagged for upstream fix.npm scope
Package is
create-your-first-application(not scoped). No npm scope change attempted — flagged for human review per upgrade plan §11.1.Test results
LOCAL: blocked by macOS loopback (
EADDRNOTAVAIL) — environmental, not a code bug.CI: running on push — see Actions tab for Node 22/24/26 results.
🤖 Generated with Claude Code