one 1.2.15 → 1.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "license": "BSD-3-Clause",
5
5
  "sideEffects": [
6
6
  "setup.mjs",
@@ -121,17 +121,17 @@
121
121
  "@react-navigation/routers": "~7.5.1",
122
122
  "@swc/core": "^1.14.0",
123
123
  "@ungap/structured-clone": "^1.2.0",
124
- "@vxrn/compiler": "1.2.15",
125
- "@vxrn/resolve": "1.2.15",
126
- "@vxrn/tslib-lite": "1.2.15",
127
- "@vxrn/universal-color-scheme": "1.2.15",
128
- "@vxrn/use-isomorphic-layout-effect": "1.2.15",
129
- "@vxrn/vite-plugin-metro": "1.2.15",
124
+ "@vxrn/compiler": "1.2.16",
125
+ "@vxrn/resolve": "1.2.16",
126
+ "@vxrn/tslib-lite": "1.2.16",
127
+ "@vxrn/universal-color-scheme": "1.2.16",
128
+ "@vxrn/use-isomorphic-layout-effect": "1.2.16",
129
+ "@vxrn/vite-plugin-metro": "1.2.16",
130
130
  "babel-dead-code-elimination": "^1.0.10",
131
131
  "babel-plugin-module-resolver": "^5.0.2",
132
132
  "citty": "^0.1.6",
133
133
  "core-js": "^3.38.1",
134
- "create-vxrn": "1.2.15",
134
+ "create-vxrn": "1.2.16",
135
135
  "escape-string-regexp": "^5.0.0",
136
136
  "expo-linking": "~8.0.8",
137
137
  "expo-modules-core": "~3.0.24",
@@ -157,7 +157,7 @@
157
157
  "vite": "^7.1.12",
158
158
  "vite-plugin-barrel": "^0.4.1",
159
159
  "vite-tsconfig-paths": "^5.1.4",
160
- "vxrn": "1.2.15",
160
+ "vxrn": "1.2.16",
161
161
  "ws": "^8.18.0",
162
162
  "xxhashjs": "^0.2.2"
163
163
  },
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ export type { One, OneRouter } from './interfaces/router'
5
5
  import type { OneRouter } from './interfaces/router'
6
6
 
7
7
  // if not overridden keep it as just string
8
- export type Href = OneRouter.Href extends { __branded__: any } ? string : OneRouter.Href
8
+ export type Href = '__branded__' extends keyof OneRouter.Href ? string : OneRouter.Href
9
9
 
10
10
  export type LinkProps<T extends string | object = string> = OneRouter.LinkProps<T>
11
11
 
@@ -3,7 +3,7 @@ import type { OneRouter } from '../interfaces/router'
3
3
  import { router } from '../router/imperative-api'
4
4
 
5
5
  export const redirect = (
6
- path: OneRouter.Href extends { __branded__: any } ? string : OneRouter.Href,
6
+ path: '__branded__' extends keyof OneRouter.Href ? string : OneRouter.Href,
7
7
  status?: number
8
8
  ) => {
9
9
  if (process.env.VITE_ENVIRONMENT === 'client') {