@absolutejs/absolute 0.6.2 → 0.7.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/dist/index.js +45373 -148
- package/dist/index.js.map +565 -5
- package/dist/src/build/compileSvelte.d.ts +4 -0
- package/dist/src/build/generateManifest.d.ts +2 -0
- package/dist/src/build/generateReactIndexes.d.ts +1 -0
- package/dist/src/build/scanEntryPoints.d.ts +1 -0
- package/dist/src/core/build.d.ts +1 -1
- package/dist/src/core/pageHandlers.d.ts +2 -0
- package/dist/src/plugins/networkingPlugin.d.ts +4 -1
- package/dist/src/utils/getDurationString.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/eslint.config.mjs +5 -10
- package/package.json +12 -11
- package/build/AuthTestingIndex.wb4rvhp6.js +0 -40596
- package/build/DocumentationIndex.2vv9babs.js +0 -23410
- package/build/HomeIndex.zq2dhbne.js +0 -48201
- package/build/assets/favicon.ico +0 -0
- package/build/assets/jpeg/mercadolibre-logo.jpeg +0 -0
- package/build/assets/jpeg/yahoo-Icon.jpeg +0 -0
- package/build/assets/png/Facebook_Logo_Primary.png +0 -0
- package/build/assets/png/LI-In-Bug.png +0 -0
- package/build/assets/png/LINE_Brand_icon.png +0 -0
- package/build/assets/png/Okta_Wordmark_Black_S.png +0 -0
- package/build/assets/png/Polar_logo_black_web.png +0 -0
- package/build/assets/png/SLA-Slack-from-Salesforce-logo.png +0 -0
- package/build/assets/png/Synology_logo_Standard.png +0 -0
- package/build/assets/png/Tumblr_Logos_2018.03.06_t_Icon_Blue.png +0 -0
- package/build/assets/png/Zoom_Logo_Bloom_RGB.png +0 -0
- package/build/assets/png/logo_withings_black.png +0 -0
- package/build/assets/png/logomark_black.png +0 -0
- package/build/assets/png/naver-btnD_icon_circle.png +0 -0
- package/build/assets/png/naver-btnG_icon_circle.png +0 -0
- package/build/assets/png/osu!logo.png +0 -0
- package/build/assets/png/twitter-logo-black.png +0 -0
- package/build/assets/svg/42-logo.svg +0 -1
- package/build/assets/svg/DA_Alert_Color-Logo.svg +0 -27
- package/build/assets/svg/Figma-Icon-(Full-color).svg +0 -7
- package/build/assets/svg/GitHub_Invertocat_Dark.svg +0 -14
- package/build/assets/svg/Microsoft-Entra-ID-color-icon.svg +0 -9
- package/build/assets/svg/PATREON_SYMBOL_1_BLACK_RGB.svg +0 -8
- package/build/assets/svg/Reddit_Icon_FullColor.svg +0 -142
- package/build/assets/svg/amazoncognito-logo.svg +0 -1
- package/build/assets/svg/anilist-logo.svg +0 -1
- package/build/assets/svg/apple-logo.svg +0 -1
- package/build/assets/svg/atlassian-logo.svg +0 -1
- package/build/assets/svg/auth0-logo.svg +0 -1
- package/build/assets/svg/authentik-logo.svg +0 -1
- package/build/assets/svg/autodesk-logo.svg +0 -1
- package/build/assets/svg/battlenet-logo.svg +0 -1
- package/build/assets/svg/bitbucket-logo.svg +0 -1
- package/build/assets/svg/box-logo.svg +0 -1
- package/build/assets/svg/bun-logo.svg +0 -1
- package/build/assets/svg/bungie-logo.svg +0 -1
- package/build/assets/svg/coinbase-logo.svg +0 -1
- package/build/assets/svg/default-profile-icon-light.svg +0 -3
- package/build/assets/svg/default-profile-icon.svg +0 -3
- package/build/assets/svg/discord-logo.svg +0 -1
- package/build/assets/svg/dribbble-logo.svg +0 -1
- package/build/assets/svg/dropbox-logo.svg +0 -1
- package/build/assets/svg/elysia.svg +0 -11
- package/build/assets/svg/epicgames-logo.svg +0 -1
- package/build/assets/svg/etsy-logo.svg +0 -1
- package/build/assets/svg/gitea-logo.svg +0 -1
- package/build/assets/svg/gitlab-logo.svg +0 -1
- package/build/assets/svg/google-logo.svg +0 -7
- package/build/assets/svg/intuit-logo.svg +0 -4
- package/build/assets/svg/kakao-logo.svg +0 -1
- package/build/assets/svg/keycloak-logo.svg +0 -1
- package/build/assets/svg/kick-logo.svg +0 -1
- package/build/assets/svg/lichess-logo.svg +0 -1
- package/build/assets/svg/linear-logo.svg +0 -1
- package/build/assets/svg/logomark_black.svg +0 -25
- package/build/assets/svg/mastadon-logo-purple.svg +0 -10
- package/build/assets/svg/mercadopago-logo.svg +0 -1
- package/build/assets/svg/myanimelist-logo.svg +0 -1
- package/build/assets/svg/notion-logo.svg +0 -1
- package/build/assets/svg/rgb-tiltify22_mark_blue.svg +0 -3
- package/build/assets/svg/roblox-logo.svg +0 -1
- package/build/assets/svg/salesforce-logo.svg +0 -1
- package/build/assets/svg/shikimori-logo.svg +0 -1
- package/build/assets/svg/spotify-Primary_Logo_Green_RGB.svg +0 -1
- package/build/assets/svg/start.gg_Icon_RGB.svg +0 -15
- package/build/assets/svg/strava-logo.svg +0 -1
- package/build/assets/svg/tiktok-logo.svg +0 -1
- package/build/assets/svg/twitch-glitch_flat_purple.svg +0 -21
- package/build/assets/svg/vk-logo.svg +0 -1
- package/build/assets/svg/workos-logo-color.svg +0 -21
- package/build/assets/svg/yandex-icon_grad_circ.svg +0 -20
- /package/dist/src/{utils → build}/updateScriptTags.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateReactIndexFiles: (reactPagesDirectory: string, reactIndexesDirectory: string) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const scanEntryPoints: (dir: string, pattern: string) => Promise<string[]>;
|
package/dist/src/core/build.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BuildConfig } from "../types";
|
|
2
|
-
export declare const build: ({ buildDirectory, assetsDirectory, reactDirectory, htmlDirectory, htmxDirectory, tailwind }: BuildConfig) => Promise<Record<string, string> | null>;
|
|
2
|
+
export declare const build: ({ buildDirectory, assetsDirectory, reactDirectory, htmlDirectory, htmxDirectory, svelteDirectory, tailwind }: BuildConfig) => Promise<Record<string, string> | null>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
|
+
import { Component } from "svelte";
|
|
2
3
|
export declare const handleReactPageRequest: <P extends object>(pageComponent: ComponentType<P>, index: string, ...props: keyof P extends never ? [] : [props: P]) => Promise<Response>;
|
|
4
|
+
export declare const handleSveltePageRequest: <Props extends Record<string, unknown>>(pageComponent: Component<Props>, index: string, props: Props) => Response;
|
|
3
5
|
export declare const handleHTMLPageRequest: (html: string) => Bun.BunFile;
|
|
@@ -5,10 +5,11 @@ export declare const networkingPlugin: (app: Elysia) => Elysia<"", {
|
|
|
5
5
|
derive: {};
|
|
6
6
|
resolve: {};
|
|
7
7
|
}, {
|
|
8
|
-
typebox:
|
|
8
|
+
typebox: {};
|
|
9
9
|
error: {};
|
|
10
10
|
}, {
|
|
11
11
|
schema: {};
|
|
12
|
+
standaloneSchema: {};
|
|
12
13
|
macro: {};
|
|
13
14
|
macroFn: {};
|
|
14
15
|
parser: {};
|
|
@@ -16,8 +17,10 @@ export declare const networkingPlugin: (app: Elysia) => Elysia<"", {
|
|
|
16
17
|
derive: {};
|
|
17
18
|
resolve: {};
|
|
18
19
|
schema: {};
|
|
20
|
+
standaloneSchema: {};
|
|
19
21
|
}, {
|
|
20
22
|
derive: {};
|
|
21
23
|
resolve: {};
|
|
22
24
|
schema: {};
|
|
25
|
+
standaloneSchema: {};
|
|
23
26
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getDurationString: (duration: number) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./networking";
|
|
2
|
-
export * from "
|
|
2
|
+
export * from "../build/updateScriptTags";
|
package/eslint.config.mjs
CHANGED
|
@@ -38,26 +38,21 @@ export default defineConfig([
|
|
|
38
38
|
project: "./tsconfig.json",
|
|
39
39
|
tsconfigRootDir: __dirname
|
|
40
40
|
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
files: ["**/*.{ts,tsx}"],
|
|
41
|
+
},
|
|
46
42
|
plugins: { "@stylistic/ts": stylisticTs },
|
|
47
43
|
rules: {
|
|
48
44
|
"@stylistic/ts/padding-line-between-statements": [
|
|
49
45
|
"error",
|
|
50
46
|
{ blankLine: "always", next: "return", prev: "*" }
|
|
51
|
-
]
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "error"
|
|
52
50
|
}
|
|
53
51
|
},
|
|
54
52
|
|
|
55
53
|
{
|
|
56
54
|
files: ["**/*.{js,mjs,cjs,ts,tsx,jsx}"],
|
|
57
55
|
ignores: ["node_modules/**"],
|
|
58
|
-
languageOptions: {
|
|
59
|
-
globals: globals.browser
|
|
60
|
-
},
|
|
61
56
|
plugins: {
|
|
62
57
|
absolute: absolutePlugin,
|
|
63
58
|
import: importPlugin,
|
|
@@ -74,7 +69,6 @@ export default defineConfig([
|
|
|
74
69
|
{ allowedVars: ["_", "id", "db", "OK"], minLength: 3 }
|
|
75
70
|
],
|
|
76
71
|
"absolute/no-explicit-return-type": "error",
|
|
77
|
-
"absolute/no-type-cast": "error",
|
|
78
72
|
"absolute/no-useless-function": "error",
|
|
79
73
|
"absolute/sort-exports": [
|
|
80
74
|
"error",
|
|
@@ -175,6 +169,7 @@ export default defineConfig([
|
|
|
175
169
|
"promise/param-names": "error"
|
|
176
170
|
}
|
|
177
171
|
},
|
|
172
|
+
|
|
178
173
|
{
|
|
179
174
|
files: ["eslint.config.mjs", "src/constants.ts"],
|
|
180
175
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/absolute",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "A fullstack meta-framework for building web applications with TypeScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "rm -rf dist && bun build src/index.ts --outdir dist --sourcemap --target=bun --external react --external react-dom --external elysia && tsc --emitDeclarationOnly --project tsconfig.json",
|
|
15
15
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
16
|
-
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json,mjs,md}\"",
|
|
16
|
+
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json,mjs,md,svelte}\"",
|
|
17
17
|
"lint": "eslint ./",
|
|
18
18
|
"typecheck": "bun run tsc --noEmit",
|
|
19
19
|
"dev": "bun run --watch example/server.ts",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@elysiajs/static": "1.3.0",
|
|
29
|
+
"@stylistic/eslint-plugin-ts": "4.2.0",
|
|
29
30
|
"@tailwindcss/cli": "4.1.7",
|
|
30
31
|
"@types/bun": "1.2.14",
|
|
31
32
|
"@types/react": "19.1.5",
|
|
@@ -33,19 +34,19 @@
|
|
|
33
34
|
"@types/vue": "2.0.0",
|
|
34
35
|
"autoprefixer": "10.4.21",
|
|
35
36
|
"elysia": "1.3.1",
|
|
37
|
+
"eslint": "9.26.0",
|
|
38
|
+
"eslint-plugin-absolute": "0.1.4",
|
|
39
|
+
"eslint-plugin-import": "2.31.0",
|
|
40
|
+
"eslint-plugin-promise": "7.2.1",
|
|
41
|
+
"eslint-plugin-security": "3.0.1",
|
|
36
42
|
"postcss": "8.5.3",
|
|
37
43
|
"prettier": "3.5.3",
|
|
44
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
38
45
|
"react": "19.1.0",
|
|
39
|
-
"svelte": "
|
|
46
|
+
"svelte": "5.34.7",
|
|
40
47
|
"tailwindcss": "4.1.7",
|
|
41
48
|
"typescript": "5.8.3",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"eslint": "9.26.0",
|
|
45
|
-
"eslint-plugin-absolute": "0.1.0",
|
|
46
|
-
"eslint-plugin-import": "2.31.0",
|
|
47
|
-
"eslint-plugin-promise": "7.2.1",
|
|
48
|
-
"eslint-plugin-security": "3.0.1",
|
|
49
|
-
"typescript-eslint": "8.32.0"
|
|
49
|
+
"typescript-eslint": "8.32.0",
|
|
50
|
+
"vue": "3.4.26"
|
|
50
51
|
}
|
|
51
52
|
}
|