Skip to content

Commit b14eb6b

Browse files
authored
Version 1.0.58 (#1468)
* Update URI Initializer | Headless Chrome * ChangeLog * Version
1 parent f8c8f30 commit b14eb6b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

changelog/1.0.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
---
44

55
### Version Updates
6+
- [Revision 1.0.58](https://github.com/sinclairzx81/typebox/pull/1468)
7+
- Update Initial URI used for Json Schema Resolution
68
- [Revision 1.0.57](https://github.com/sinclairzx81/typebox/pull/1467)
79
- Update TypeScript 5.9.3 | Fix TS 6.0 Nighty Build
810
- [Revision 1.0.56](https://github.com/sinclairzx81/typebox/pull/1464)

src/schema/engine/_stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Stack {
4545
// Base
4646
// ----------------------------------------------------------------
4747
public BaseURL(): URL {
48-
return this.ids.reduce((result, schema) => new URL(schema.$id, result), new URL('root', 'memory://'))
48+
return this.ids.reduce((result, schema) => new URL(schema.$id, result), new URL('http://unknown'))
4949
}
5050
public Base(): Schema.XSchemaObject {
5151
return this.ids[this.ids.length - 1] ?? this.schema

src/schema/resolve/ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function FromValue(schema: unknown, base: URL, ref: URL): Schema.XSchema | undef
111111
// Ref
112112
// ------------------------------------------------------------------
113113
export function Ref(schema: Schema.XSchemaObject, ref: string): Schema.XSchema | undefined {
114-
const defaultBase = new URL('memory://root')
114+
const defaultBase = new URL('http://unknown')
115115
const initialBase = Schema.IsId(schema) ? new URL(schema.$id, defaultBase.href) : defaultBase
116116
const initialRef = new URL(ref, initialBase.href)
117117
return FromValue(schema, initialBase, initialRef)

tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Range } from './task/range/index.ts'
88
import { Metrics } from './task/metrics/index.ts'
99
import { Task } from 'tasksmith'
1010

11-
const Version = '1.0.57'
11+
const Version = '1.0.58'
1212

1313
// ------------------------------------------------------------------
1414
// Build

0 commit comments

Comments
 (0)