Skip to content

Commit 885a6f4

Browse files
committed
Vendor devalue and bump alpha
1 parent d991cdd commit 885a6f4

13 files changed

Lines changed: 775 additions & 20 deletions

File tree

.oxfmtrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
33
"printWidth": 100,
44
"proseWrap": "never",
5-
"ignorePatterns": [".fresh", ".output", "www/public"]
5+
"ignorePatterns": [".fresh", ".output", "www/public", "src/vendor"]
66
}

.oxlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3+
"ignorePatterns": ["src/vendor"],
34
"overrides": [
45
{
56
"files": ["**/src/**/*.{ts,tsx}"],

packages/create-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@frsh/create-app",
3-
"version": "3.0.0-alpha.2026062102",
3+
"version": "3.0.0-alpha.202606211445",
44
"private": false,
55
"description": "Scaffold a new Fresh app.",
66
"keywords": [

pnpm-lock.yaml

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/devalue.d.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@frsh/fresh",
3-
"version": "3.0.0-alpha.2026062102",
3+
"version": "3.0.0-alpha.202606211445",
44
"private": false,
55
"description": "The framework so simple, you already know it.",
66
"keywords": [
@@ -91,7 +91,6 @@
9191
},
9292
"dependencies": {
9393
"@prefresh/vite": "^3.0.1",
94-
"devalue": "github:lucacasonato/devalue#1702212c72de15df77e019e35c9c53832916b126",
9594
"magic-string": "^0.30.0",
9695
"nitro": "^3.0.260522-beta",
9796
"preact-render-to-string": "^6.7.0",

src/server/serialization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
// `<signalAlias>(<peeked-value>)`; the peeked inner value goes back
4444
// through the replacer for nested signal / factory handling.
4545

46-
import { uneval } from "devalue";
46+
import { uneval } from "../vendor/devalue/index.js";
4747

4848
const SIGNAL_BRAND = Symbol.for("preact-signals");
4949

src/vendor/devalue/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2018-19 [these people](https://github.com/rich-harris/devalue/graphs/contributors)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

src/vendor/devalue/constants.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export const UNDEFINED = -1;
2+
export const HOLE = -2;
3+
export const NAN = -3;
4+
export const POSITIVE_INFINITY = -4;
5+
export const NEGATIVE_INFINITY = -5;
6+
export const NEGATIVE_ZERO = -6;
7+
export const SPARSE = -7;
8+
9+
// The largest valid value for a JavaScript array's `length` property,
10+
// and the largest valid array index (one less than the max length).
11+
export const MAX_ARRAY_LEN = 2 ** 32 - 1;
12+
export const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;

src/vendor/devalue/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
type Reducer = (value: unknown, recurse: (value: unknown) => string) => string | undefined | void;
2+
export function uneval(value: unknown, replacer?: Reducer): string;

0 commit comments

Comments
 (0)