Skip to content

Update fhirpath.js from 4.11.0 to 5.0.0 - #91

Merged
brianpos merged 7 commits into
developfrom
brianpos-update-fhirpath-js-5-0-0
Jul 15, 2026
Merged

brianpos merged 7 commits into
developfrom
brianpos-update-fhirpath-js-5-0-0

Conversation

@brianpos

Copy link
Copy Markdown
Owner

The fhirpath.js package was pinned at 4.11.0 while v5.0.0 shipped on 2026-07-13 with ES module support, instance selector syntax, and several fixes. This PR bumps the dependency to pick up those improvements.

Approach

  • Updated the fhirpath version spec from ^4.11.0 to ^5.0.0 in both package.json (root) and vue3-src/package.json.
  • Fixed one breaking change: the Context type is no longer exported from fhirpath in v5. Replaced the import in QuestionnaireContext.vue with an equivalent local type alias (Record<string, any>).
  • All 222 existing tests pass with the new version.

All other imports (fhirpath, fhirpath/fhir-context/r4, fhirpath/fhir-context/r5, named exports like AsyncOptions, Model, types, version) remain compatible -- the documented entry points are unchanged in v5.

Also included

Added a reusable .github/extensions/npm-upgrade-helper/ Copilot CLI extension that provides an npm_upgrade_context tool. For future dependency upgrades, calling this tool surfaces all package.json references, every source file import, the installed version, registry metadata, and changelog links in one shot.

brianpos and others added 6 commits July 15, 2026 10:36
- Update dependency version in both package.json and vue3-src/package.json
- Replace removed Context type import in QuestionnaireContext.vue with
  local type alias (Context was not re-exported in v5.0.0)
- All 222 tests pass with the new version

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Provides an npm_upgrade_context tool that gathers:
- All package.json files referencing a given package
- All source files importing from the package
- Currently installed version
- Target version registry info and changelog URL
- Step-by-step upgrade instructions

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-06b155100-91.eastasia.4.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-06b155100-91.eastasia.4.azurestaticapps.net

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-plant-0209dde10-91.centralus.3.azurestaticapps.net

@brianpos
brianpos merged commit 195c633 into develop Jul 15, 2026
4 checks passed
@brianpos
brianpos deleted the brianpos-update-fhirpath-js-5-0-0 branch July 15, 2026 05:21
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