Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format

## [Unreleased]

## [1.0.3] - 2026-06-13

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Missing [1.0.3] reference-style link — the heading uses [1.0.3] but no matching link definition exists. Changelog version links won't render as clickable links on GitHub.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At CHANGELOG.md, line 7:

<comment>Missing `[1.0.3]` reference-style link — the heading uses `[1.0.3]` but no matching link definition exists. Changelog version links won't render as clickable links on GitHub.</comment>

<file context>
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format
 
 ## [Unreleased]
 
+## [1.0.3] - 2026-06-13
+
+### Changed
</file context>


### Changed

- Unified the SDK `User-Agent` header with the Python and R SDKs. Outgoing requests now send `OMOPHub-SDK-Node/<version>` (e.g. `OMOPHub-SDK-Node/1.0.3`).

## [1.0.2] - 2026-06-02

### Changed
Expand Down
306 changes: 153 additions & 153 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@omophub/omophub-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "Official OMOPHub Node.js / TypeScript SDK for the OHDSI medical vocabularies API - search, lookup, map, and navigate concepts across SNOMED, ICD10, RxNorm, LOINC, and more.",
"type": "module",
"main": "dist/index.js",
Expand Down Expand Up @@ -64,10 +64,10 @@
},
"homepage": "https://omophub.com",
"devDependencies": {
"@biomejs/biome": "^2.4.4",
"@types/node": "^25.0.3",
"@biomejs/biome": "^2.5.0",
"@types/node": "^25.9.3",
"@vitest/coverage-v8": "^4.1.8",
"tsx": "^4.19.0",
"tsx": "^4.22.4",
"typescript": "^6.0.3",
"vitest": "^4.1.8"
}
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Vocabularies } from './vocabularies/vocabularies.js';
const DEFAULT_BASE_URL = 'https://api.omophub.com/v1';
const DEFAULT_TIMEOUT_MS = 30_000;
const DEFAULT_MAX_RETRIES = 3;
const DEFAULT_USER_AGENT = `omophub-node/${__version__}`;
const DEFAULT_USER_AGENT = `OMOPHub-SDK-Node/${__version__}`;

export interface OMOPHubOptions {
/** Base URL of the OMOPHub API. Defaults to env `OMOPHUB_API_URL` or the production URL. */
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* SDK version. Bumped in lockstep with package.json. Surfaced in the
* User-Agent header so server-side logs can attribute traffic to a release.
*/
export const __version__ = '1.0.2';
export const __version__ = '1.0.3';
2 changes: 1 addition & 1 deletion test/client-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('OMOPHub HTTP dispatch', () => {
expect(init.method).toBe('GET');
const requestHeaders = new Headers(init.headers);
expect(requestHeaders.get('authorization')).toBe('Bearer oh_test');
expect(requestHeaders.get('user-agent')).toMatch(/^omophub-node\//);
expect(requestHeaders.get('user-agent')).toMatch(/^OMOPHub-SDK-Node\//);
expect(requestHeaders.get('content-type')).toBe('application/json');
expect(init.body).toBeUndefined();
});
Expand Down
2 changes: 1 addition & 1 deletion test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('OMOPHub constructor', () => {
expect(client.baseUrl).toBe('https://api.omophub.com/v1');
expect(client.timeoutMs).toBe(30_000);
expect(client.maxRetries).toBe(3);
expect(client.userAgent).toMatch(/^omophub-node\/\d+\.\d+\.\d+/);
expect(client.userAgent).toMatch(/^OMOPHub-SDK-Node\/\d+\.\d+\.\d+/);
expect(client.vocabVersion).toBeUndefined();
expect(new Headers(lastCall(fetchMock).init.headers).get('authorization')).toBe(
'Bearer oh_test_key',
Expand Down
Loading