Repository navigation
chore(release): v0.6.0 - #147
Merged
Merged
Conversation
r4.evaluateTypedAsync(expression, input, options) evaluates with the engine's model, env, vars and functions, and takes terminology and reference services per call, as evaluateTyped() does for sync evaluation. A host no longer compiles the expression and passes model: r4Model itself.
AnalyzeDtoOptions declared env/envTypes/vars/varTypes absent through Omit, which a spread of evaluation options bypasses: TypeScript checks no excess properties from a spread, and contextOf passed them on. They are now declared as never, so the spread is a type error too and the CHANGELOG's 'analyzeDto() and analyzeEngineDtos() do not take them' holds.
The never-typed fields of iteration 1 refused an AnalyzeOptions value that 0.5.0 accepted, a type break the release does not announce. The options are Omit<AnalyzeOptions, EvaluationValueOption> again, so a literal env or vars is still a type error, and contextOf drops the four fields through withoutEvaluationValues, which withEvaluationVariables also uses: a spread of evaluation options or an AnalyzeOptions value compiles and its env and vars are not read.
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.
Releases
0.6.0. It covers #146 and one more commit in this PR,engine.evaluateTypedAsync. The full list is under## 0.6.0in CHANGELOG.md.The release only adds API. RELEASING.md bumps the patch for a non-breaking release, but this is
0.6.0, the version sdc-extractor-ts already names as its peer floor for these APIs. One analyzer case reports more than before:env/varsspread intoAnalyzeOptionsused to be ignored and are now checked (under Changed).engine.evaluateTypedAsyncThe engine had sync
evaluateTyped()but no async form. A host that uses a terminology service had tocompile()the expression and passmodel: r4Modelitself. Now:env,vars, and functions, asevaluateTyped()does.terminologyandresolverare passed per call; engine defaults still don't hold services.evaluateTyped(), so a compiled expression with a declared root refuses other input types.syncWhenPossible, an evaluation that needs no service returns its result directly; the return type is thenTypedValue[] | Promise<TypedValue[]>.src/api/engine.test.ts("FhirPathEngine.evaluateTypedAsync"). The docs are in docs/api.md "Asynchronous services", the README, and the CHANGELOG.Changes
package.jsonversion0.5.0→0.6.0.CHANGELOG.md: theUnreleasedentries move under0.6.0 - 2026-11-05, with a short summary and a Changed entry for the analyzer case.analyzeDto()andanalyzeEngineDtos()dropenv,envTypes,vars, andvarTypesat runtime, not only in their types. Options shared withanalyzeExpression()through a spread or anAnalyzeOptionsvariable passed the type check and then declared names the DTO's engine does not bind; a DTO's values come from its engine. The test insrc/api/dto.test.tscovers both forms.docs/engine-comparison.mdlists terminology and async evaluation as shipped;%factoryis still missing.Checks
pnpm lint,typecheck,coverage(8,911 passed, 800 skipped),check:inference,check:fhirpath,check:type-perf(API surface +2.3% on TypeScript 5.9, +2.0% on 5.8, limit 5%),build,check:package(TypeScript 5.9.3 and 5.4.5), and the demo typecheck pass.After merge
🤖 Generated with Claude Code