Skip to content

feat: await promises returned by Drop.valueOf() (#948) (#953) - #959

Merged
harttle merged 4 commits into
masterfrom
feat/948-async-drop-valueof-wip
Oct 1, 2026
Merged

harttle merged 4 commits into
masterfrom
feat/948-async-drop-valueof-wip

Conversation

@harttle

@harttle harttle commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Awaits a Promise from Drop.valueOf() (#948). toValue() stays synchronous. Output, conditions, and operators yield it (#953).

evalToken still returns the Drop. Filters and tag arguments receive that Drop, same as before. evalTokenValue is for call sites that need the resolved value.

Breaking: empty, nil, and blank equals, and equals() itself, are generators. A Comparable method that returns a boolean still works, because operators yield the result.

@coveralls

coveralls commented Sep 26, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 36895493479

Coverage decreased (-0.02%) to 99.395%

Details

  • Coverage decreased (-0.02%) from the base build.
  • Patch coverage: 63 of 63 lines across 11 files are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 3106
Covered Lines: 3100
Line Coverage: 99.81%
Relevant Branches: 1192
Covered Branches: 1172
Branch Coverage: 98.32%
Branches in Coverage %: Yes
Coverage Strength: 21040.97 hits per line

💛 - Coveralls

@harttle
harttle force-pushed the feat/948-async-drop-valueof-wip branch from ce7f7ed to a6143f4 Compare September 28, 2026 14:39
@harttle
harttle changed the base branch from master to next September 28, 2026 14:40
@harttle harttle changed the title feat: await promises returned by Drop.valueOf() (#948) feat: await promises returned by Drop.valueOf() (#948) (#953) Sep 28, 2026
harttle and others added 2 commits September 28, 2026 23:51
Incomplete/abandoned implementation of async Drop.valueOf() awaited across the render pipeline. Kept for reference only; known to be inconsistent and not production-ready.

Co-authored-by: Cursor <[email protected]>
@harttle
harttle force-pushed the feat/948-async-drop-valueof-wip branch from a6143f4 to 898fa97 Compare September 28, 2026 15:55
@harttle
harttle changed the base branch from next to master September 28, 2026 15:55
Comment thread src/drop/comparable.ts Resolved
Comment thread src/render/expression.ts Resolved
Comment thread src/render/operator.ts Resolved
Comment thread src/template/filter.ts Resolved
Comment thread src/template/output.ts Resolved
Comment thread test/integration/tags/include.spec.ts Resolved
Comment thread test/integration/tags/render.spec.ts Resolved
Filters and tag arguments still receive the Drop. Await valueOf() at output, conditions, and operators, and restore the existing render/include Drop tests.

Co-authored-by: Cursor <[email protected]>
@harttle
harttle marked this pull request as ready for review October 1, 2026 16:54
@harttle
harttle merged commit 7dfa76b into master Oct 1, 2026
13 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 1, 2026
# [10.30.0](v10.29.0...v10.30.0) (2026-10-01)

### Bug Fixes

* **base64_encode:** encode large input in browser builds ([#969](#969)) ([8aace78](8aace78)), closes [#967](#967)
* **date:** compute %C and %y from the numeric year ([#961](#961)) ([e68514f](e68514f))
* **date:** compute %U and %W week numbers like strftime ([#958](#958)) ([0587ca8](0587ca8))
* trim custom characters by Unicode code point ([#955](#955)) ([3fe244f](3fe244f))
* **truncatewords:** ignore leading whitespace when counting words ([#954](#954)) ([65e200e](65e200e))
* **url_decode:** keep %2B as a literal plus when decoding ([#939](#939)) ([9af92f5](9af92f5))

### Features

* await promises returned by Drop.valueOf() ([#948](#948)) ([#953](#953)) ([#959](#959)) ([7dfa76b](7dfa76b))
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 10.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants