alepha 0.7.4 → 0.7.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.
Files changed (99) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -21
  3. package/cache/redis.cjs +4 -8
  4. package/cache/redis.d.ts +30 -91
  5. package/cache/redis.js +1 -1
  6. package/cache.cjs +4 -8
  7. package/cache.d.ts +190 -259
  8. package/cache.js +1 -1
  9. package/core.cjs +4 -8
  10. package/core.d.ts +950 -925
  11. package/core.js +1 -1
  12. package/datetime.cjs +4 -8
  13. package/datetime.d.ts +151 -140
  14. package/datetime.js +1 -1
  15. package/lock/redis.cjs +7 -49
  16. package/lock/redis.d.ts +17 -14
  17. package/lock/redis.js +1 -47
  18. package/lock.cjs +4 -8
  19. package/lock.d.ts +117 -170
  20. package/lock.js +1 -1
  21. package/package.json +70 -40
  22. package/postgres.cjs +4 -8
  23. package/postgres.d.ts +1314 -4400
  24. package/postgres.js +1 -1
  25. package/queue/redis.cjs +8 -0
  26. package/queue/redis.d.ts +31 -0
  27. package/queue/redis.js +1 -0
  28. package/queue.cjs +4 -8
  29. package/queue.d.ts +162 -205
  30. package/queue.js +1 -1
  31. package/react/auth.cjs +4 -8
  32. package/react/auth.d.ts +167 -280
  33. package/react/auth.js +1 -1
  34. package/react.cjs +4 -8
  35. package/react.d.ts +530 -570
  36. package/react.js +1 -1
  37. package/redis.cjs +4 -8
  38. package/redis.d.ts +59 -132
  39. package/redis.js +1 -1
  40. package/retry.cjs +4 -8
  41. package/retry.d.ts +34 -31
  42. package/retry.js +1 -1
  43. package/scheduler.cjs +4 -8
  44. package/scheduler.d.ts +128 -155
  45. package/scheduler.js +1 -1
  46. package/security.cjs +4 -8
  47. package/security.d.ts +472 -595
  48. package/security.js +1 -1
  49. package/server/cache.cjs +4 -8
  50. package/server/cache.d.ts +73 -39
  51. package/server/cache.js +1 -1
  52. package/server/cookies.cjs +4 -8
  53. package/server/cookies.d.ts +46 -41
  54. package/server/cookies.js +1 -1
  55. package/server/static.cjs +4 -8
  56. package/server/static.d.ts +98 -95
  57. package/server/static.js +1 -1
  58. package/server/swagger.cjs +4 -8
  59. package/server/swagger.d.ts +106 -92
  60. package/server/swagger.js +1 -1
  61. package/server.cjs +4 -8
  62. package/server.d.ts +754 -1025
  63. package/server.js +1 -1
  64. package/testing.cjs +8 -0
  65. package/testing.d.ts +1 -0
  66. package/testing.js +1 -0
  67. package/topic/redis.cjs +8 -0
  68. package/topic/redis.d.ts +45 -0
  69. package/topic/redis.js +1 -0
  70. package/topic.cjs +4 -8
  71. package/topic.d.ts +171 -163
  72. package/topic.js +1 -1
  73. package/vite.cjs +4 -8
  74. package/vite.d.ts +91 -84
  75. package/vite.js +1 -1
  76. package/assets/logo.png +0 -0
  77. package/src/cache/redis.ts +0 -1
  78. package/src/cache.ts +0 -1
  79. package/src/core.ts +0 -1
  80. package/src/datetime.ts +0 -1
  81. package/src/lock/redis.ts +0 -1
  82. package/src/lock.ts +0 -1
  83. package/src/postgres.ts +0 -1
  84. package/src/queue/redis.ts +0 -1
  85. package/src/queue.ts +0 -1
  86. package/src/react/auth.ts +0 -1
  87. package/src/react.ts +0 -1
  88. package/src/redis.ts +0 -1
  89. package/src/retry.ts +0 -1
  90. package/src/scheduler.ts +0 -1
  91. package/src/security.ts +0 -1
  92. package/src/server/cache.ts +0 -1
  93. package/src/server/cookies.ts +0 -1
  94. package/src/server/static.ts +0 -1
  95. package/src/server/swagger.ts +0 -1
  96. package/src/server.ts +0 -1
  97. package/src/topic/redis.ts +0 -1
  98. package/src/topic.ts +0 -1
  99. package/src/vite.ts +0 -1
package/vite.d.ts CHANGED
@@ -1,103 +1,110 @@
1
- import { Alepha } from '@alepha/core';
2
- import { Plugin } from 'vite';
3
- import { BrotliOptions, ZlibOptions } from 'node:zlib';
1
+ import { BrotliOptions, ZlibOptions } from "node:zlib";
2
+ import { Alepha } from "@alepha/core";
3
+ import { Plugin } from "vite";
4
4
 
5
+ //#region src/viteAlephaBuild.d.ts
5
6
  interface ViteAlephaBuildOptions {
6
- /**
7
- * Path to the entry file for the server build.
8
- * If empty, SSR build will be skipped.
9
- */
10
- serverEntry?: string;
11
- /**
12
- * Set false to skip the client build.
13
- * This is useful if you only want to build the server-side application.
14
- */
15
- client?: false;
16
- /**
17
- * If true, the build will be optimized for Vercel deployment.
18
- *
19
- * If `VERCEL_PROJECT_ID` and `VERCEL_ORG_ID` environment variables are set, .vercel will be generated with the correct configuration.
20
- *
21
- * @default false
22
- */
23
- vercel?: boolean;
7
+ /**
8
+ * Path to the entry file for the server build.
9
+ * If empty, SSR build will be skipped.
10
+ */
11
+ serverEntry?: string;
12
+ /**
13
+ * Set false to skip the client build.
14
+ * This is useful if you only want to build the server-side application.
15
+ */
16
+ client?: false;
17
+ /**
18
+ * If true, the build will be optimized for Vercel deployment.
19
+ *
20
+ * If `VERCEL_PROJECT_ID` and `VERCEL_ORG_ID` environment variables are set, .vercel will be generated with the correct configuration.
21
+ *
22
+ * @default false
23
+ */
24
+ vercel?: boolean;
24
25
  }
25
26
  declare function viteAlephaBuild(options?: ViteAlephaBuildOptions): Promise<Plugin>;
26
-
27
+ //#endregion
28
+ //#region src/viteAlephaDev.d.ts
27
29
  interface ViteAlephaDevOptions {
28
- /**
29
- * Path to the entry file for the server build.
30
- * If empty, plugin will be disabled.
31
- */
32
- serverEntry?: string;
33
- /**
34
- * Enable or disable debug mode
35
- *
36
- * @default false
37
- */
38
- debug?: boolean;
30
+ /**
31
+ * Path to the entry file for the server build.
32
+ * If empty, plugin will be disabled.
33
+ */
34
+ serverEntry?: string;
35
+ /**
36
+ * Enable or disable debug mode
37
+ *
38
+ * @default false
39
+ */
40
+ debug?: boolean;
39
41
  }
40
42
  /**
41
43
  * Plug Alepha into Vite development server.
42
44
  */
43
45
  declare function viteAlephaDev(options?: ViteAlephaDevOptions): Promise<Plugin>;
44
-
46
+ //#endregion
47
+ //#region src/viteAlepha.d.ts
45
48
  type ViteAlephaOptions = ViteAlephaDevOptions & ViteAlephaBuildOptions;
46
49
  declare function viteAlepha(options?: ViteAlephaOptions): (Plugin | Promise<Plugin>)[];
47
-
50
+ //#endregion
51
+ //#region src/viteAlephaBuildVercel.d.ts
48
52
  interface ViteAlephaBuildVercelOptions {
49
- /**
50
- * The directory where the build output will be placed.
51
- *
52
- * @default "dist"
53
- */
54
- distDir?: string;
55
- /**
56
- * The name of the client directory.
57
- *
58
- * @default "public"
59
- */
60
- clientDir?: string;
53
+ /**
54
+ * The directory where the build output will be placed.
55
+ *
56
+ * @default "dist"
57
+ */
58
+ distDir?: string;
59
+ /**
60
+ * The name of the client directory.
61
+ *
62
+ * @default "public"
63
+ */
64
+ clientDir?: string;
61
65
  }
62
- declare function viteAlephaBuildVercel(opts?: ViteAlephaBuildVercelOptions): {
63
- name: string;
64
- apply: string;
65
- writeBundle(): void;
66
- };
67
-
66
+ declare function viteAlephaBuildVercel(opts?: ViteAlephaBuildVercelOptions): Promise<{
67
+ name: string;
68
+ apply: string;
69
+ writeBundle(): void;
70
+ }>;
71
+ //#endregion
72
+ //#region src/viteCompress.d.ts
68
73
  interface ViteCompressOptions {
69
- /**
70
- * If true, the plugin will not compress the files.
71
- *
72
- * @default false
73
- */
74
- disabled?: boolean;
75
- /**
76
- * If true, the plugin will compress the files using brotli.
77
- * Can also be an object with brotli options.
78
- *
79
- * @default true
80
- */
81
- brotli?: boolean | BrotliOptions;
82
- /**
83
- * If true, the plugin will compress the files using gzip.
84
- * Can also be an object with gzip options.
85
- *
86
- * @default true
87
- */
88
- gzip?: boolean | ZlibOptions;
89
- /**
90
- * A filter to determine which files to compress.
91
- * Can be a RegExp or a function that returns true for files to compress.
92
- *
93
- * @default /\.(js|mjs|cjs|css|wasm|svg)$/
94
- */
95
- filter?: RegExp | ((fileName: string) => boolean);
74
+ /**
75
+ * If true, the plugin will not compress the files.
76
+ *
77
+ * @default false
78
+ */
79
+ disabled?: boolean;
80
+ /**
81
+ * If true, the plugin will compress the files using brotli.
82
+ * Can also be an object with brotli options.
83
+ *
84
+ * @default true
85
+ */
86
+ brotli?: boolean | BrotliOptions;
87
+ /**
88
+ * If true, the plugin will compress the files using gzip.
89
+ * Can also be an object with gzip options.
90
+ *
91
+ * @default true
92
+ */
93
+ gzip?: boolean | ZlibOptions;
94
+ /**
95
+ * A filter to determine which files to compress.
96
+ * Can be a RegExp or a function that returns true for files to compress.
97
+ *
98
+ * @default /\.(js|mjs|cjs|css|wasm|svg)$/
99
+ */
100
+ filter?: RegExp | ((fileName: string) => boolean);
96
101
  }
97
102
  declare function viteCompress(options?: ViteCompressOptions): Plugin;
98
-
103
+ //#endregion
104
+ //#region src/index.d.ts
99
105
  declare global {
100
- var __alepha: Alepha;
106
+ var __alepha: Alepha;
101
107
  }
102
-
103
- export { type ViteAlephaBuildOptions, type ViteAlephaBuildVercelOptions, type ViteAlephaDevOptions, type ViteAlephaOptions, type ViteCompressOptions, viteAlepha, viteAlephaBuild, viteAlephaBuildVercel, viteAlephaDev, viteCompress };
108
+ //#endregion
109
+ export { ViteAlephaBuildOptions, ViteAlephaBuildVercelOptions, ViteAlephaDevOptions, ViteAlephaOptions, ViteCompressOptions, viteAlepha, viteAlephaBuild, viteAlephaBuildVercel, viteAlephaDev, viteCompress };
110
+ //# sourceMappingURL=index.d.ts.map
package/vite.js CHANGED
@@ -1 +1 @@
1
- export * from '@alepha/vite';
1
+ export * from '@alepha/vite'
package/assets/logo.png DELETED
Binary file
@@ -1 +0,0 @@
1
- export * from "@alepha/cache-redis";
package/src/cache.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/cache";
package/src/core.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/core";
package/src/datetime.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/datetime";
package/src/lock/redis.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/lock-redis";
package/src/lock.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/lock";
package/src/postgres.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/postgres";
@@ -1 +0,0 @@
1
- export * from "@alepha/queue-redis";
package/src/queue.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/queue";
package/src/react/auth.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/react-auth";
package/src/react.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/react";
package/src/redis.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/redis";
package/src/retry.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/retry";
package/src/scheduler.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/scheduler";
package/src/security.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/security";
@@ -1 +0,0 @@
1
- export * from "@alepha/server-cache";
@@ -1 +0,0 @@
1
- export * from "@alepha/server-cookies";
@@ -1 +0,0 @@
1
- export * from "@alepha/server-static";
@@ -1 +0,0 @@
1
- export * from "@alepha/server-swagger";
package/src/server.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/server";
@@ -1 +0,0 @@
1
- export * from "@alepha/topic-redis";
package/src/topic.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/topic";
package/src/vite.ts DELETED
@@ -1 +0,0 @@
1
- export * from "@alepha/vite";