what-framework 0.6.3 → 0.6.6
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/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +3 -3
- package/hooks.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +5 -5
- package/react-compat.d.ts +1 -1
- package/router.d.ts +6 -1
- package/server.d.ts +1 -1
- package/src/index.js +1 -0
- package/src/react-compat.js +1 -1
- package/testing.d.ts +1 -1
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.js"],
|
|
4
|
-
"sourcesContent": ["// What Framework - The closest framework to vanilla JS\n// Main entry point - re-exports everything from core\n\nexport * from 'what-core';\n"],
|
|
5
|
-
"mappings": ";AAGA,cAAc;",
|
|
4
|
+
"sourcesContent": ["// What Framework - The closest framework to vanilla JS\n// Main entry point - re-exports everything from core\n\nexport * from 'what-core';\nexport { isSafeUrl } from 'what-router';\n"],
|
|
5
|
+
"mappings": ";AAGA,cAAc;AACd,SAAS,iBAAiB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export*from"what-core";
|
|
1
|
+
export*from"what-core";import{isSafeUrl as f}from"what-router";export{f as isSafeUrl};
|
|
2
2
|
//# sourceMappingURL=index.min.js.map
|
package/dist/index.min.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.js"],
|
|
4
|
-
"sourcesContent": ["// What Framework - The closest framework to vanilla JS\n// Main entry point - re-exports everything from core\n\nexport * from 'what-core';\n"],
|
|
5
|
-
"mappings": "AAGA,WAAc",
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["// What Framework - The closest framework to vanilla JS\n// Main entry point - re-exports everything from core\n\nexport * from 'what-core';\nexport { isSafeUrl } from 'what-router';\n"],
|
|
5
|
+
"mappings": "AAGA,WAAc,YACd,OAAS,aAAAA,MAAiB",
|
|
6
|
+
"names": ["isSafeUrl"]
|
|
7
7
|
}
|
package/hooks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// What Framework - Hooks Type Definitions
|
|
2
2
|
|
|
3
|
-
import { Signal } from './index';
|
|
3
|
+
import { Signal } from './index.js';
|
|
4
4
|
|
|
5
5
|
export function useState<T>(initial: T | (() => T)): [Signal<T>, (value: T | ((prev: T) => T)) => void];
|
|
6
6
|
export function useSignal<T>(initial: T): Signal<T>;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "what-framework",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "The closest framework to vanilla JS \u2014 signals, components, islands, SSR",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"homepage": "https://whatfw.com",
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"what-core": "^0.6.
|
|
96
|
-
"what-router": "^0.6.
|
|
97
|
-
"what-server": "^0.6.
|
|
98
|
-
"what-compiler": "^0.6.
|
|
95
|
+
"what-core": "^0.6.7",
|
|
96
|
+
"what-router": "^0.6.6",
|
|
97
|
+
"what-server": "^0.6.6",
|
|
98
|
+
"what-compiler": "^0.6.5"
|
|
99
99
|
}
|
|
100
100
|
}
|
package/react-compat.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// What Framework - React Compatibility Layer Type Definitions
|
|
2
2
|
|
|
3
|
-
import { Signal, VNode } from './index';
|
|
3
|
+
import { Signal, VNode } from './index.js';
|
|
4
4
|
|
|
5
5
|
export const useState: <T>(initial: T | (() => T)) => [Signal<T>, (value: T | ((prev: T) => T)) => void];
|
|
6
6
|
export const useEffect: (fn: () => void | (() => void), deps?: any[]) => void;
|
package/router.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// What Framework Router - TypeScript Definitions
|
|
2
2
|
|
|
3
|
-
import { VNode, VNodeChild, Component, Signal, Computed } from './index';
|
|
3
|
+
import { VNode, VNodeChild, Component, Signal, Computed } from './index.js';
|
|
4
4
|
|
|
5
5
|
// --- Route State ---
|
|
6
6
|
|
|
@@ -23,6 +23,11 @@ export interface RouteState {
|
|
|
23
23
|
|
|
24
24
|
export const route: RouteState;
|
|
25
25
|
|
|
26
|
+
// --- URL Sanitization ---
|
|
27
|
+
|
|
28
|
+
/** Return false for javascript:, data:, vbscript:, and other unsafe navigation URLs. */
|
|
29
|
+
export function isSafeUrl(url: string): boolean;
|
|
30
|
+
|
|
26
31
|
// --- Navigation ---
|
|
27
32
|
|
|
28
33
|
export interface NavigateOptions {
|
package/server.d.ts
CHANGED
package/src/index.js
CHANGED
package/src/react-compat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from 'what-react
|
|
1
|
+
export * from 'what-react';
|