@server/next 0.28.16 → 0.30.0

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,37 +1,27 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.28.16",
3
+ "version": "0.30.0",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
- "repository": "https://github.com/franciscop/server-next.git",
7
- "bugs": "https://github.com/franciscop/server-next/issues",
8
- "funding": "https://www.paypal.me/franciscopresencia/19",
6
+ "repository": "github:franciscop/server-next",
9
7
  "author": "Francisco Presencia <public@francisco.io> (https://francisco.io/)",
8
+ "funding": "https://www.paypal.me/franciscopresencia/19",
10
9
  "license": "UNLICENSED",
11
- "documentation": {
12
- "title": "Server JS - A modern web server for Bun and Node.js",
13
- "home": "./docs/index.html",
14
- "menu": {
15
- "Documentation": "/documentation",
16
- "Github": "https://github.com/franciscop/server-next"
17
- }
18
- },
10
+ "keywords": [
11
+ "server",
12
+ "node",
13
+ "server.js"
14
+ ],
19
15
  "scripts": {
20
16
  "build": "bunx tsup src/index.ts --format esm --dts --out-dir . --target node24",
21
17
  "start": "bun test --watch",
22
- "lint": "npx @biomejs/biome lint ./src --skip=lint/suspicious/noExplicitAny --skip=lint/style/noParameterAssign --skip=lint/suspicious/noConfusingVoidType",
23
- "types": "npx tsc --noEmit",
18
+ "lint": "npx tsc --noEmit && npx @biomejs/biome lint ./src --skip=lint/suspicious/noExplicitAny --skip=lint/style/noParameterAssign --skip=lint/suspicious/noConfusingVoidType --skip=lint/complexity/noBannedTypes",
24
19
  "test": "npm run test:bun && tsc --noEmit",
25
20
  "test:bun": "bun test",
26
21
  "test:jest": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
27
22
  },
28
- "keywords": [
29
- "server",
30
- "node",
31
- "server.js"
32
- ],
33
- "type": "module",
34
23
  "main": "index.js",
24
+ "type": "module",
35
25
  "types": "index.d.ts",
36
26
  "files": [
37
27
  "index.d.ts",
@@ -49,6 +39,14 @@
49
39
  "default": "./src/jsx/jsx-dev-runtime.js"
50
40
  }
51
41
  },
42
+ "documentation.page": {
43
+ "title": "Server JS - A modern web server for Bun and Node.js",
44
+ "home": "./docs/index.html",
45
+ "menu": {
46
+ "Documentation": "/documentation",
47
+ "Github": "https://github.com/franciscop/server-next"
48
+ }
49
+ },
52
50
  "devDependencies": {
53
51
  "@types/bun": "^1.3.0",
54
52
  "@types/jest": "^30.0.0",
@@ -58,12 +56,8 @@
58
56
  "jest": "^29.7.0",
59
57
  "polystore": "^0.21.1",
60
58
  "tsup": "^8.5.1",
61
- "typescript": "^5.9.3"
62
- },
63
- "engines": {
64
- "node": ">=24.11.0"
59
+ "typescript": "^6.0.2"
65
60
  },
66
- "engineStrict": true,
67
61
  "jest": {
68
62
  "testEnvironment": "jest-environment-node",
69
63
  "transform": {}
package/readme.md CHANGED
@@ -1 +1 @@
1
- # Server JS [![test badge](https://github.com/franciscop/server-next/workflows/tests/badge.svg)](https://github.com/franciscop/server-next/actions)
1
+ # Server JS [![@server/next](https://img.shields.io/npm/v/@server/next?label=@server/next&color=greenlime)](https://www.npmjs.com/package/@server/next) [![tests](https://github.com/franciscop/server-next/workflows/tests/badge.svg)](https://github.com/franciscop/server-next/actions)
@@ -34,7 +34,7 @@ const encode = (str = "") => {
34
34
  return str.replace(/[&<>"']/g, (tag) => ENTITIES[tag]);
35
35
  };
36
36
 
37
- // valid primitives only null, undefined, false, true are all skipped
37
+ // valid primitives only: null, undefined, false, true are all skipped
38
38
  const isValidChild = (child) =>
39
39
  child != null && child !== false && child !== true;
40
40