Skip to content

fix(transaction): CLJS type error when purging history - #870

Open
harismh wants to merge 3 commits into
replikativ:mainfrom
harismh:cljs-purge-op-fix
Open

fix(transaction): CLJS type error when purging history#870
harismh wants to merge 3 commits into
replikativ:mainfrom
harismh:cljs-purge-op-fix

Conversation

@harismh

@harismh harismh commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

SUMMARY

While expanding CLJS test coverage, I found one bug where Java dates were used in CLJC call paths during :db.history.purge/before ops. Fix was a simple migration to a date shared utility.

Checks

Bugfix
  • Integration tests added
  • Formatting checked

ADDITIONAL INFORMATION

I previously found this while trying to import every CLJC namespace in the test.cljc file like so: harismh@752e560

Favored a slimmer PR instead, but LMK if I should I continue in that direction for the rest of the test coverage. I find the number of reader conditionals used helpful in highlighting CLJ/CLJS parity.

Side note: Wonder if a clj-kondo hook for this kind of error could be feasible? e.g. Lint alert if you use some var from common JS or Java namespaces without a reader conditional in a .cljc file.

harismh added 3 commits July 11, 2026 08:41
Expanded tests showed a :db.history.purge/before used a JVM
only Date method, breaking queries on Node. Moved to shared helper.
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.

1 participant