@sonicjs-cms/core 2.16.0 → 2.16.1

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 (50) hide show
  1. package/dist/{app-COElO4Rm.d.cts → app-D9L3mrC-.d.cts} +1 -0
  2. package/dist/{app-COElO4Rm.d.ts → app-D9L3mrC-.d.ts} +1 -0
  3. package/dist/{chunk-CZ6BVQZX.cjs → chunk-7HHIZQNE.cjs} +8 -8
  4. package/dist/{chunk-CZ6BVQZX.cjs.map → chunk-7HHIZQNE.cjs.map} +1 -1
  5. package/dist/{chunk-WLSIUKNM.js → chunk-BAMJVG33.js} +9 -9
  6. package/dist/{chunk-WLSIUKNM.js.map → chunk-BAMJVG33.js.map} +1 -1
  7. package/dist/{chunk-OCLUXJ7E.cjs → chunk-HU4MN74Q.cjs} +48 -5
  8. package/dist/chunk-HU4MN74Q.cjs.map +1 -0
  9. package/dist/{chunk-MVSCB4E3.js → chunk-JF5RQXPN.js} +3 -3
  10. package/dist/{chunk-MVSCB4E3.js.map → chunk-JF5RQXPN.js.map} +1 -1
  11. package/dist/{chunk-Y5EH32F5.js → chunk-KYAF33AF.js} +4 -4
  12. package/dist/{chunk-Y5EH32F5.js.map → chunk-KYAF33AF.js.map} +1 -1
  13. package/dist/{chunk-6ENX7QSA.cjs → chunk-MZS33LLH.cjs} +114 -114
  14. package/dist/{chunk-6ENX7QSA.cjs.map → chunk-MZS33LLH.cjs.map} +1 -1
  15. package/dist/{chunk-VFQUULAV.js → chunk-PUZMLXOJ.js} +48 -5
  16. package/dist/chunk-PUZMLXOJ.js.map +1 -0
  17. package/dist/{chunk-Q5VFZUXV.cjs → chunk-U6FOL6EO.cjs} +2 -2
  18. package/dist/{chunk-Q5VFZUXV.cjs.map → chunk-U6FOL6EO.cjs.map} +1 -1
  19. package/dist/{chunk-YQW2GCJ3.cjs → chunk-V76ERLX6.cjs} +3 -3
  20. package/dist/{chunk-YQW2GCJ3.cjs.map → chunk-V76ERLX6.cjs.map} +1 -1
  21. package/dist/{chunk-INSDRCG3.js → chunk-W33MHOPA.js} +2 -2
  22. package/dist/{chunk-INSDRCG3.js.map → chunk-W33MHOPA.js.map} +1 -1
  23. package/dist/index.cjs +150 -134
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +26 -10
  28. package/dist/index.js.map +1 -1
  29. package/dist/middleware.cjs +29 -29
  30. package/dist/middleware.d.cts +1 -1
  31. package/dist/middleware.d.ts +1 -1
  32. package/dist/middleware.js +3 -3
  33. package/dist/migrations-MYQI2KAJ.cjs +13 -0
  34. package/dist/{migrations-SVQTT7NV.cjs.map → migrations-MYQI2KAJ.cjs.map} +1 -1
  35. package/dist/migrations-WCEBO5QQ.js +4 -0
  36. package/dist/{migrations-7HQ7LYAL.js.map → migrations-WCEBO5QQ.js.map} +1 -1
  37. package/dist/routes.cjs +28 -28
  38. package/dist/routes.d.cts +1 -1
  39. package/dist/routes.d.ts +1 -1
  40. package/dist/routes.js +5 -5
  41. package/dist/services.cjs +23 -23
  42. package/dist/services.js +2 -2
  43. package/dist/utils.cjs +11 -11
  44. package/dist/utils.js +1 -1
  45. package/migrations/035_user_profiles_data_column.sql +14 -15
  46. package/package.json +1 -1
  47. package/dist/chunk-OCLUXJ7E.cjs.map +0 -1
  48. package/dist/chunk-VFQUULAV.js.map +0 -1
  49. package/dist/migrations-7HQ7LYAL.js +0 -4
  50. package/dist/migrations-SVQTT7NV.cjs +0 -13
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkCZ6BVQZX_cjs = require('./chunk-CZ6BVQZX.cjs');
4
- require('./chunk-Q5VFZUXV.cjs');
5
- require('./chunk-OCLUXJ7E.cjs');
3
+ var chunk7HHIZQNE_cjs = require('./chunk-7HHIZQNE.cjs');
4
+ require('./chunk-U6FOL6EO.cjs');
5
+ require('./chunk-HU4MN74Q.cjs');
6
6
  require('./chunk-RCQ2HIQD.cjs');
7
7
  require('./chunk-IGJUBJBW.cjs');
8
8
 
@@ -10,107 +10,107 @@ require('./chunk-IGJUBJBW.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "AuthManager", {
12
12
  enumerable: true,
13
- get: function () { return chunkCZ6BVQZX_cjs.AuthManager; }
13
+ get: function () { return chunk7HHIZQNE_cjs.AuthManager; }
14
14
  });
15
15
  Object.defineProperty(exports, "PermissionManager", {
16
16
  enumerable: true,
17
- get: function () { return chunkCZ6BVQZX_cjs.PermissionManager; }
17
+ get: function () { return chunk7HHIZQNE_cjs.PermissionManager; }
18
18
  });
19
19
  Object.defineProperty(exports, "bootstrapMiddleware", {
20
20
  enumerable: true,
21
- get: function () { return chunkCZ6BVQZX_cjs.bootstrapMiddleware; }
21
+ get: function () { return chunk7HHIZQNE_cjs.bootstrapMiddleware; }
22
22
  });
23
23
  Object.defineProperty(exports, "cacheHeaders", {
24
24
  enumerable: true,
25
- get: function () { return chunkCZ6BVQZX_cjs.cacheHeaders; }
25
+ get: function () { return chunk7HHIZQNE_cjs.cacheHeaders; }
26
26
  });
27
27
  Object.defineProperty(exports, "compressionMiddleware", {
28
28
  enumerable: true,
29
- get: function () { return chunkCZ6BVQZX_cjs.compressionMiddleware; }
29
+ get: function () { return chunk7HHIZQNE_cjs.compressionMiddleware; }
30
30
  });
31
31
  Object.defineProperty(exports, "csrfProtection", {
32
32
  enumerable: true,
33
- get: function () { return chunkCZ6BVQZX_cjs.csrfProtection; }
33
+ get: function () { return chunk7HHIZQNE_cjs.csrfProtection; }
34
34
  });
35
35
  Object.defineProperty(exports, "detailedLoggingMiddleware", {
36
36
  enumerable: true,
37
- get: function () { return chunkCZ6BVQZX_cjs.detailedLoggingMiddleware; }
37
+ get: function () { return chunk7HHIZQNE_cjs.detailedLoggingMiddleware; }
38
38
  });
39
39
  Object.defineProperty(exports, "generateCsrfToken", {
40
40
  enumerable: true,
41
- get: function () { return chunkCZ6BVQZX_cjs.generateCsrfToken; }
41
+ get: function () { return chunk7HHIZQNE_cjs.generateCsrfToken; }
42
42
  });
43
43
  Object.defineProperty(exports, "getActivePlugins", {
44
44
  enumerable: true,
45
- get: function () { return chunkCZ6BVQZX_cjs.getActivePlugins; }
45
+ get: function () { return chunk7HHIZQNE_cjs.getActivePlugins; }
46
46
  });
47
47
  Object.defineProperty(exports, "isPluginActive", {
48
48
  enumerable: true,
49
- get: function () { return chunkCZ6BVQZX_cjs.isPluginActive; }
49
+ get: function () { return chunk7HHIZQNE_cjs.isPluginActive; }
50
50
  });
51
51
  Object.defineProperty(exports, "logActivity", {
52
52
  enumerable: true,
53
- get: function () { return chunkCZ6BVQZX_cjs.logActivity; }
53
+ get: function () { return chunk7HHIZQNE_cjs.logActivity; }
54
54
  });
55
55
  Object.defineProperty(exports, "loggingMiddleware", {
56
56
  enumerable: true,
57
- get: function () { return chunkCZ6BVQZX_cjs.loggingMiddleware; }
57
+ get: function () { return chunk7HHIZQNE_cjs.loggingMiddleware; }
58
58
  });
59
59
  Object.defineProperty(exports, "metricsMiddleware", {
60
60
  enumerable: true,
61
- get: function () { return chunkCZ6BVQZX_cjs.metricsMiddleware; }
61
+ get: function () { return chunk7HHIZQNE_cjs.metricsMiddleware; }
62
62
  });
63
63
  Object.defineProperty(exports, "optionalAuth", {
64
64
  enumerable: true,
65
- get: function () { return chunkCZ6BVQZX_cjs.optionalAuth; }
65
+ get: function () { return chunk7HHIZQNE_cjs.optionalAuth; }
66
66
  });
67
67
  Object.defineProperty(exports, "performanceLoggingMiddleware", {
68
68
  enumerable: true,
69
- get: function () { return chunkCZ6BVQZX_cjs.performanceLoggingMiddleware; }
69
+ get: function () { return chunk7HHIZQNE_cjs.performanceLoggingMiddleware; }
70
70
  });
71
71
  Object.defineProperty(exports, "rateLimit", {
72
72
  enumerable: true,
73
- get: function () { return chunkCZ6BVQZX_cjs.rateLimit; }
73
+ get: function () { return chunk7HHIZQNE_cjs.rateLimit; }
74
74
  });
75
75
  Object.defineProperty(exports, "requireActivePlugin", {
76
76
  enumerable: true,
77
- get: function () { return chunkCZ6BVQZX_cjs.requireActivePlugin; }
77
+ get: function () { return chunk7HHIZQNE_cjs.requireActivePlugin; }
78
78
  });
79
79
  Object.defineProperty(exports, "requireActivePlugins", {
80
80
  enumerable: true,
81
- get: function () { return chunkCZ6BVQZX_cjs.requireActivePlugins; }
81
+ get: function () { return chunk7HHIZQNE_cjs.requireActivePlugins; }
82
82
  });
83
83
  Object.defineProperty(exports, "requireAnyPermission", {
84
84
  enumerable: true,
85
- get: function () { return chunkCZ6BVQZX_cjs.requireAnyPermission; }
85
+ get: function () { return chunk7HHIZQNE_cjs.requireAnyPermission; }
86
86
  });
87
87
  Object.defineProperty(exports, "requireAuth", {
88
88
  enumerable: true,
89
- get: function () { return chunkCZ6BVQZX_cjs.requireAuth; }
89
+ get: function () { return chunk7HHIZQNE_cjs.requireAuth; }
90
90
  });
91
91
  Object.defineProperty(exports, "requirePermission", {
92
92
  enumerable: true,
93
- get: function () { return chunkCZ6BVQZX_cjs.requirePermission; }
93
+ get: function () { return chunk7HHIZQNE_cjs.requirePermission; }
94
94
  });
95
95
  Object.defineProperty(exports, "requireRole", {
96
96
  enumerable: true,
97
- get: function () { return chunkCZ6BVQZX_cjs.requireRole; }
97
+ get: function () { return chunk7HHIZQNE_cjs.requireRole; }
98
98
  });
99
99
  Object.defineProperty(exports, "securityHeaders", {
100
100
  enumerable: true,
101
- get: function () { return chunkCZ6BVQZX_cjs.securityHeadersMiddleware; }
101
+ get: function () { return chunk7HHIZQNE_cjs.securityHeadersMiddleware; }
102
102
  });
103
103
  Object.defineProperty(exports, "securityLoggingMiddleware", {
104
104
  enumerable: true,
105
- get: function () { return chunkCZ6BVQZX_cjs.securityLoggingMiddleware; }
105
+ get: function () { return chunk7HHIZQNE_cjs.securityLoggingMiddleware; }
106
106
  });
107
107
  Object.defineProperty(exports, "validateCsrfToken", {
108
108
  enumerable: true,
109
- get: function () { return chunkCZ6BVQZX_cjs.validateCsrfToken; }
109
+ get: function () { return chunk7HHIZQNE_cjs.validateCsrfToken; }
110
110
  });
111
111
  Object.defineProperty(exports, "verifySecurityConfig", {
112
112
  enumerable: true,
113
- get: function () { return chunkCZ6BVQZX_cjs.verifySecurityConfig; }
113
+ get: function () { return chunk7HHIZQNE_cjs.verifySecurityConfig; }
114
114
  });
115
115
  //# sourceMappingURL=middleware.cjs.map
116
116
  //# sourceMappingURL=middleware.cjs.map
@@ -1,6 +1,6 @@
1
1
  import * as hono from 'hono';
2
2
  import { Context, Next, MiddlewareHandler } from 'hono';
3
- import { S as SonicJSConfig } from './app-COElO4Rm.cjs';
3
+ import { S as SonicJSConfig } from './app-D9L3mrC-.cjs';
4
4
  import '@cloudflare/workers-types';
5
5
 
6
6
  type Bindings = {
@@ -1,6 +1,6 @@
1
1
  import * as hono from 'hono';
2
2
  import { Context, Next, MiddlewareHandler } from 'hono';
3
- import { S as SonicJSConfig } from './app-COElO4Rm.js';
3
+ import { S as SonicJSConfig } from './app-D9L3mrC-.js';
4
4
  import '@cloudflare/workers-types';
5
5
 
6
6
  type Bindings = {
@@ -1,6 +1,6 @@
1
- export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, rateLimit, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware, validateCsrfToken, verifySecurityConfig } from './chunk-Y5EH32F5.js';
2
- import './chunk-INSDRCG3.js';
3
- import './chunk-VFQUULAV.js';
1
+ export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, rateLimit, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware, validateCsrfToken, verifySecurityConfig } from './chunk-KYAF33AF.js';
2
+ import './chunk-W33MHOPA.js';
3
+ import './chunk-PUZMLXOJ.js';
4
4
  import './chunk-FICTAGD4.js';
5
5
  import './chunk-V4OQ3NZ2.js';
6
6
  //# sourceMappingURL=middleware.js.map
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkHU4MN74Q_cjs = require('./chunk-HU4MN74Q.cjs');
4
+ require('./chunk-IGJUBJBW.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "MigrationService", {
9
+ enumerable: true,
10
+ get: function () { return chunkHU4MN74Q_cjs.MigrationService; }
11
+ });
12
+ //# sourceMappingURL=migrations-MYQI2KAJ.cjs.map
13
+ //# sourceMappingURL=migrations-MYQI2KAJ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-SVQTT7NV.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-MYQI2KAJ.cjs"}
@@ -0,0 +1,4 @@
1
+ export { MigrationService } from './chunk-PUZMLXOJ.js';
2
+ import './chunk-V4OQ3NZ2.js';
3
+ //# sourceMappingURL=migrations-WCEBO5QQ.js.map
4
+ //# sourceMappingURL=migrations-WCEBO5QQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-7HQ7LYAL.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-WCEBO5QQ.js"}
package/dist/routes.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk6ENX7QSA_cjs = require('./chunk-6ENX7QSA.cjs');
3
+ var chunkMZS33LLH_cjs = require('./chunk-MZS33LLH.cjs');
4
4
  require('./chunk-NZWFCUDA.cjs');
5
- require('./chunk-CZ6BVQZX.cjs');
6
- require('./chunk-Q5VFZUXV.cjs');
7
- require('./chunk-OCLUXJ7E.cjs');
5
+ require('./chunk-7HHIZQNE.cjs');
6
+ require('./chunk-U6FOL6EO.cjs');
7
+ require('./chunk-HU4MN74Q.cjs');
8
8
  require('./chunk-OHYBNCVL.cjs');
9
9
  require('./chunk-UYJ6TJHX.cjs');
10
10
  require('./chunk-635JAMSE.cjs');
11
- require('./chunk-YQW2GCJ3.cjs');
11
+ require('./chunk-V76ERLX6.cjs');
12
12
  require('./chunk-P3XDZL6Q.cjs');
13
13
  require('./chunk-RCQ2HIQD.cjs');
14
14
  require('./chunk-MNWKYY5E.cjs');
@@ -18,95 +18,95 @@ require('./chunk-IGJUBJBW.cjs');
18
18
 
19
19
  Object.defineProperty(exports, "ROUTES_INFO", {
20
20
  enumerable: true,
21
- get: function () { return chunk6ENX7QSA_cjs.ROUTES_INFO; }
21
+ get: function () { return chunkMZS33LLH_cjs.ROUTES_INFO; }
22
22
  });
23
23
  Object.defineProperty(exports, "adminApiReferenceRoutes", {
24
24
  enumerable: true,
25
- get: function () { return chunk6ENX7QSA_cjs.router2; }
25
+ get: function () { return chunkMZS33LLH_cjs.router2; }
26
26
  });
27
27
  Object.defineProperty(exports, "adminApiRoutes", {
28
28
  enumerable: true,
29
- get: function () { return chunk6ENX7QSA_cjs.admin_api_default; }
29
+ get: function () { return chunkMZS33LLH_cjs.admin_api_default; }
30
30
  });
31
31
  Object.defineProperty(exports, "adminCheckboxRoutes", {
32
32
  enumerable: true,
33
- get: function () { return chunk6ENX7QSA_cjs.adminCheckboxRoutes; }
33
+ get: function () { return chunkMZS33LLH_cjs.adminCheckboxRoutes; }
34
34
  });
35
35
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
36
36
  enumerable: true,
37
- get: function () { return chunk6ENX7QSA_cjs.admin_code_examples_default; }
37
+ get: function () { return chunkMZS33LLH_cjs.admin_code_examples_default; }
38
38
  });
39
39
  Object.defineProperty(exports, "adminCollectionsRoutes", {
40
40
  enumerable: true,
41
- get: function () { return chunk6ENX7QSA_cjs.adminCollectionsRoutes; }
41
+ get: function () { return chunkMZS33LLH_cjs.adminCollectionsRoutes; }
42
42
  });
43
43
  Object.defineProperty(exports, "adminContentRoutes", {
44
44
  enumerable: true,
45
- get: function () { return chunk6ENX7QSA_cjs.admin_content_default; }
45
+ get: function () { return chunkMZS33LLH_cjs.admin_content_default; }
46
46
  });
47
47
  Object.defineProperty(exports, "adminDashboardRoutes", {
48
48
  enumerable: true,
49
- get: function () { return chunk6ENX7QSA_cjs.router; }
49
+ get: function () { return chunkMZS33LLH_cjs.router; }
50
50
  });
51
51
  Object.defineProperty(exports, "adminDesignRoutes", {
52
52
  enumerable: true,
53
- get: function () { return chunk6ENX7QSA_cjs.adminDesignRoutes; }
53
+ get: function () { return chunkMZS33LLH_cjs.adminDesignRoutes; }
54
54
  });
55
55
  Object.defineProperty(exports, "adminFormsRoutes", {
56
56
  enumerable: true,
57
- get: function () { return chunk6ENX7QSA_cjs.adminFormsRoutes; }
57
+ get: function () { return chunkMZS33LLH_cjs.adminFormsRoutes; }
58
58
  });
59
59
  Object.defineProperty(exports, "adminLogsRoutes", {
60
60
  enumerable: true,
61
- get: function () { return chunk6ENX7QSA_cjs.adminLogsRoutes; }
61
+ get: function () { return chunkMZS33LLH_cjs.adminLogsRoutes; }
62
62
  });
63
63
  Object.defineProperty(exports, "adminMediaRoutes", {
64
64
  enumerable: true,
65
- get: function () { return chunk6ENX7QSA_cjs.adminMediaRoutes; }
65
+ get: function () { return chunkMZS33LLH_cjs.adminMediaRoutes; }
66
66
  });
67
67
  Object.defineProperty(exports, "adminPluginRoutes", {
68
68
  enumerable: true,
69
- get: function () { return chunk6ENX7QSA_cjs.adminPluginRoutes; }
69
+ get: function () { return chunkMZS33LLH_cjs.adminPluginRoutes; }
70
70
  });
71
71
  Object.defineProperty(exports, "adminSettingsRoutes", {
72
72
  enumerable: true,
73
- get: function () { return chunk6ENX7QSA_cjs.adminSettingsRoutes; }
73
+ get: function () { return chunkMZS33LLH_cjs.adminSettingsRoutes; }
74
74
  });
75
75
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
76
76
  enumerable: true,
77
- get: function () { return chunk6ENX7QSA_cjs.admin_testimonials_default; }
77
+ get: function () { return chunkMZS33LLH_cjs.admin_testimonials_default; }
78
78
  });
79
79
  Object.defineProperty(exports, "adminUsersRoutes", {
80
80
  enumerable: true,
81
- get: function () { return chunk6ENX7QSA_cjs.userRoutes; }
81
+ get: function () { return chunkMZS33LLH_cjs.userRoutes; }
82
82
  });
83
83
  Object.defineProperty(exports, "apiContentCrudRoutes", {
84
84
  enumerable: true,
85
- get: function () { return chunk6ENX7QSA_cjs.api_content_crud_default; }
85
+ get: function () { return chunkMZS33LLH_cjs.api_content_crud_default; }
86
86
  });
87
87
  Object.defineProperty(exports, "apiMediaRoutes", {
88
88
  enumerable: true,
89
- get: function () { return chunk6ENX7QSA_cjs.api_media_default; }
89
+ get: function () { return chunkMZS33LLH_cjs.api_media_default; }
90
90
  });
91
91
  Object.defineProperty(exports, "apiRoutes", {
92
92
  enumerable: true,
93
- get: function () { return chunk6ENX7QSA_cjs.api_default; }
93
+ get: function () { return chunkMZS33LLH_cjs.api_default; }
94
94
  });
95
95
  Object.defineProperty(exports, "apiSystemRoutes", {
96
96
  enumerable: true,
97
- get: function () { return chunk6ENX7QSA_cjs.api_system_default; }
97
+ get: function () { return chunkMZS33LLH_cjs.api_system_default; }
98
98
  });
99
99
  Object.defineProperty(exports, "authRoutes", {
100
100
  enumerable: true,
101
- get: function () { return chunk6ENX7QSA_cjs.auth_default; }
101
+ get: function () { return chunkMZS33LLH_cjs.auth_default; }
102
102
  });
103
103
  Object.defineProperty(exports, "publicFormsRoutes", {
104
104
  enumerable: true,
105
- get: function () { return chunk6ENX7QSA_cjs.public_forms_default; }
105
+ get: function () { return chunkMZS33LLH_cjs.public_forms_default; }
106
106
  });
107
107
  Object.defineProperty(exports, "testCleanupRoutes", {
108
108
  enumerable: true,
109
- get: function () { return chunk6ENX7QSA_cjs.test_cleanup_default; }
109
+ get: function () { return chunkMZS33LLH_cjs.test_cleanup_default; }
110
110
  });
111
111
  //# sourceMappingURL=routes.cjs.map
112
112
  //# sourceMappingURL=routes.cjs.map
package/dist/routes.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as hono_types from 'hono/types';
2
2
  import { Hono } from 'hono';
3
- import { B as Bindings$a, V as Variables$b } from './app-COElO4Rm.cjs';
3
+ import { B as Bindings$a, V as Variables$b } from './app-D9L3mrC-.cjs';
4
4
  import { D1Database as D1Database$1, KVNamespace as KVNamespace$1, R2Bucket as R2Bucket$1 } from '@cloudflare/workers-types';
5
5
 
6
6
  interface Variables$a extends Variables$b {
package/dist/routes.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as hono_types from 'hono/types';
2
2
  import { Hono } from 'hono';
3
- import { B as Bindings$a, V as Variables$b } from './app-COElO4Rm.js';
3
+ import { B as Bindings$a, V as Variables$b } from './app-D9L3mrC-.js';
4
4
  import { D1Database as D1Database$1, KVNamespace as KVNamespace$1, R2Bucket as R2Bucket$1 } from '@cloudflare/workers-types';
5
5
 
6
6
  interface Variables$a extends Variables$b {
package/dist/routes.js CHANGED
@@ -1,12 +1,12 @@
1
- export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-WLSIUKNM.js';
1
+ export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-BAMJVG33.js';
2
2
  import './chunk-TBJY2FF7.js';
3
- import './chunk-Y5EH32F5.js';
4
- import './chunk-INSDRCG3.js';
5
- import './chunk-VFQUULAV.js';
3
+ import './chunk-KYAF33AF.js';
4
+ import './chunk-W33MHOPA.js';
5
+ import './chunk-PUZMLXOJ.js';
6
6
  import './chunk-XWIA3HVX.js';
7
7
  import './chunk-55RDMDOP.js';
8
8
  import './chunk-EXNEW5US.js';
9
- import './chunk-MVSCB4E3.js';
9
+ import './chunk-JF5RQXPN.js';
10
10
  import './chunk-X7ZAEI5S.js';
11
11
  import './chunk-FICTAGD4.js';
12
12
  import './chunk-TQABQWOP.js';
package/dist/services.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkNZWFCUDA_cjs = require('./chunk-NZWFCUDA.cjs');
4
- var chunkQ5VFZUXV_cjs = require('./chunk-Q5VFZUXV.cjs');
5
- var chunkOCLUXJ7E_cjs = require('./chunk-OCLUXJ7E.cjs');
4
+ var chunkU6FOL6EO_cjs = require('./chunk-U6FOL6EO.cjs');
5
+ var chunkHU4MN74Q_cjs = require('./chunk-HU4MN74Q.cjs');
6
6
  require('./chunk-P3XDZL6Q.cjs');
7
7
  require('./chunk-IGJUBJBW.cjs');
8
8
 
@@ -70,87 +70,87 @@ Object.defineProperty(exports, "setAppInstance", {
70
70
  });
71
71
  Object.defineProperty(exports, "PluginBootstrapService", {
72
72
  enumerable: true,
73
- get: function () { return chunkQ5VFZUXV_cjs.PluginBootstrapService; }
73
+ get: function () { return chunkU6FOL6EO_cjs.PluginBootstrapService; }
74
74
  });
75
75
  Object.defineProperty(exports, "PluginService", {
76
76
  enumerable: true,
77
- get: function () { return chunkQ5VFZUXV_cjs.PluginService; }
77
+ get: function () { return chunkU6FOL6EO_cjs.PluginService; }
78
78
  });
79
79
  Object.defineProperty(exports, "backfillFormSubmissions", {
80
80
  enumerable: true,
81
- get: function () { return chunkQ5VFZUXV_cjs.backfillFormSubmissions; }
81
+ get: function () { return chunkU6FOL6EO_cjs.backfillFormSubmissions; }
82
82
  });
83
83
  Object.defineProperty(exports, "cleanupRemovedCollections", {
84
84
  enumerable: true,
85
- get: function () { return chunkQ5VFZUXV_cjs.cleanupRemovedCollections; }
85
+ get: function () { return chunkU6FOL6EO_cjs.cleanupRemovedCollections; }
86
86
  });
87
87
  Object.defineProperty(exports, "createContentFromSubmission", {
88
88
  enumerable: true,
89
- get: function () { return chunkQ5VFZUXV_cjs.createContentFromSubmission; }
89
+ get: function () { return chunkU6FOL6EO_cjs.createContentFromSubmission; }
90
90
  });
91
91
  Object.defineProperty(exports, "deriveCollectionSchemaFromFormio", {
92
92
  enumerable: true,
93
- get: function () { return chunkQ5VFZUXV_cjs.deriveCollectionSchemaFromFormio; }
93
+ get: function () { return chunkU6FOL6EO_cjs.deriveCollectionSchemaFromFormio; }
94
94
  });
95
95
  Object.defineProperty(exports, "deriveSubmissionTitle", {
96
96
  enumerable: true,
97
- get: function () { return chunkQ5VFZUXV_cjs.deriveSubmissionTitle; }
97
+ get: function () { return chunkU6FOL6EO_cjs.deriveSubmissionTitle; }
98
98
  });
99
99
  Object.defineProperty(exports, "fullCollectionSync", {
100
100
  enumerable: true,
101
- get: function () { return chunkQ5VFZUXV_cjs.fullCollectionSync; }
101
+ get: function () { return chunkU6FOL6EO_cjs.fullCollectionSync; }
102
102
  });
103
103
  Object.defineProperty(exports, "getAvailableCollectionNames", {
104
104
  enumerable: true,
105
- get: function () { return chunkQ5VFZUXV_cjs.getAvailableCollectionNames; }
105
+ get: function () { return chunkU6FOL6EO_cjs.getAvailableCollectionNames; }
106
106
  });
107
107
  Object.defineProperty(exports, "getManagedCollections", {
108
108
  enumerable: true,
109
- get: function () { return chunkQ5VFZUXV_cjs.getManagedCollections; }
109
+ get: function () { return chunkU6FOL6EO_cjs.getManagedCollections; }
110
110
  });
111
111
  Object.defineProperty(exports, "isCollectionManaged", {
112
112
  enumerable: true,
113
- get: function () { return chunkQ5VFZUXV_cjs.isCollectionManaged; }
113
+ get: function () { return chunkU6FOL6EO_cjs.isCollectionManaged; }
114
114
  });
115
115
  Object.defineProperty(exports, "loadCollectionConfig", {
116
116
  enumerable: true,
117
- get: function () { return chunkQ5VFZUXV_cjs.loadCollectionConfig; }
117
+ get: function () { return chunkU6FOL6EO_cjs.loadCollectionConfig; }
118
118
  });
119
119
  Object.defineProperty(exports, "loadCollectionConfigs", {
120
120
  enumerable: true,
121
- get: function () { return chunkQ5VFZUXV_cjs.loadCollectionConfigs; }
121
+ get: function () { return chunkU6FOL6EO_cjs.loadCollectionConfigs; }
122
122
  });
123
123
  Object.defineProperty(exports, "mapFormStatusToContentStatus", {
124
124
  enumerable: true,
125
- get: function () { return chunkQ5VFZUXV_cjs.mapFormStatusToContentStatus; }
125
+ get: function () { return chunkU6FOL6EO_cjs.mapFormStatusToContentStatus; }
126
126
  });
127
127
  Object.defineProperty(exports, "registerCollections", {
128
128
  enumerable: true,
129
- get: function () { return chunkQ5VFZUXV_cjs.registerCollections; }
129
+ get: function () { return chunkU6FOL6EO_cjs.registerCollections; }
130
130
  });
131
131
  Object.defineProperty(exports, "syncAllFormCollections", {
132
132
  enumerable: true,
133
- get: function () { return chunkQ5VFZUXV_cjs.syncAllFormCollections; }
133
+ get: function () { return chunkU6FOL6EO_cjs.syncAllFormCollections; }
134
134
  });
135
135
  Object.defineProperty(exports, "syncCollection", {
136
136
  enumerable: true,
137
- get: function () { return chunkQ5VFZUXV_cjs.syncCollection; }
137
+ get: function () { return chunkU6FOL6EO_cjs.syncCollection; }
138
138
  });
139
139
  Object.defineProperty(exports, "syncCollections", {
140
140
  enumerable: true,
141
- get: function () { return chunkQ5VFZUXV_cjs.syncCollections; }
141
+ get: function () { return chunkU6FOL6EO_cjs.syncCollections; }
142
142
  });
143
143
  Object.defineProperty(exports, "syncFormCollection", {
144
144
  enumerable: true,
145
- get: function () { return chunkQ5VFZUXV_cjs.syncFormCollection; }
145
+ get: function () { return chunkU6FOL6EO_cjs.syncFormCollection; }
146
146
  });
147
147
  Object.defineProperty(exports, "validateCollectionConfig", {
148
148
  enumerable: true,
149
- get: function () { return chunkQ5VFZUXV_cjs.validateCollectionConfig; }
149
+ get: function () { return chunkU6FOL6EO_cjs.validateCollectionConfig; }
150
150
  });
151
151
  Object.defineProperty(exports, "MigrationService", {
152
152
  enumerable: true,
153
- get: function () { return chunkOCLUXJ7E_cjs.MigrationService; }
153
+ get: function () { return chunkHU4MN74Q_cjs.MigrationService; }
154
154
  });
155
155
  //# sourceMappingURL=services.cjs.map
156
156
  //# sourceMappingURL=services.cjs.map
package/dist/services.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { CACHE_CONFIGS, CATEGORY_INFO, CacheService, Logger, SettingsService, TelemetryService, buildRouteList, createInstallationIdentity, getAppInstance, getCacheService, getLogger, getTelemetryService, initLogger, initTelemetry, setAppInstance } from './chunk-TBJY2FF7.js';
2
- export { PluginBootstrapService, PluginService, backfillFormSubmissions, cleanupRemovedCollections, createContentFromSubmission, deriveCollectionSchemaFromFormio, deriveSubmissionTitle, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, mapFormStatusToContentStatus, registerCollections, syncAllFormCollections, syncCollection, syncCollections, syncFormCollection, validateCollectionConfig } from './chunk-INSDRCG3.js';
3
- export { MigrationService } from './chunk-VFQUULAV.js';
2
+ export { PluginBootstrapService, PluginService, backfillFormSubmissions, cleanupRemovedCollections, createContentFromSubmission, deriveCollectionSchemaFromFormio, deriveSubmissionTitle, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, mapFormStatusToContentStatus, registerCollections, syncAllFormCollections, syncCollection, syncCollections, syncFormCollection, validateCollectionConfig } from './chunk-W33MHOPA.js';
3
+ export { MigrationService } from './chunk-PUZMLXOJ.js';
4
4
  import './chunk-X7ZAEI5S.js';
5
5
  import './chunk-V4OQ3NZ2.js';
6
6
  //# sourceMappingURL=services.js.map
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkYQW2GCJ3_cjs = require('./chunk-YQW2GCJ3.cjs');
3
+ var chunkV76ERLX6_cjs = require('./chunk-V76ERLX6.cjs');
4
4
  var chunkP3XDZL6Q_cjs = require('./chunk-P3XDZL6Q.cjs');
5
5
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
6
6
  var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
@@ -10,43 +10,43 @@ require('./chunk-IGJUBJBW.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "QueryFilterBuilder", {
12
12
  enumerable: true,
13
- get: function () { return chunkYQW2GCJ3_cjs.QueryFilterBuilder; }
13
+ get: function () { return chunkV76ERLX6_cjs.QueryFilterBuilder; }
14
14
  });
15
15
  Object.defineProperty(exports, "SONICJS_VERSION", {
16
16
  enumerable: true,
17
- get: function () { return chunkYQW2GCJ3_cjs.SONICJS_VERSION; }
17
+ get: function () { return chunkV76ERLX6_cjs.SONICJS_VERSION; }
18
18
  });
19
19
  Object.defineProperty(exports, "TemplateRenderer", {
20
20
  enumerable: true,
21
- get: function () { return chunkYQW2GCJ3_cjs.TemplateRenderer; }
21
+ get: function () { return chunkV76ERLX6_cjs.TemplateRenderer; }
22
22
  });
23
23
  Object.defineProperty(exports, "buildQuery", {
24
24
  enumerable: true,
25
- get: function () { return chunkYQW2GCJ3_cjs.buildQuery; }
25
+ get: function () { return chunkV76ERLX6_cjs.buildQuery; }
26
26
  });
27
27
  Object.defineProperty(exports, "generateSlug", {
28
28
  enumerable: true,
29
- get: function () { return chunkYQW2GCJ3_cjs.generateSlug; }
29
+ get: function () { return chunkV76ERLX6_cjs.generateSlug; }
30
30
  });
31
31
  Object.defineProperty(exports, "getBlocksFieldConfig", {
32
32
  enumerable: true,
33
- get: function () { return chunkYQW2GCJ3_cjs.getBlocksFieldConfig; }
33
+ get: function () { return chunkV76ERLX6_cjs.getBlocksFieldConfig; }
34
34
  });
35
35
  Object.defineProperty(exports, "getCoreVersion", {
36
36
  enumerable: true,
37
- get: function () { return chunkYQW2GCJ3_cjs.getCoreVersion; }
37
+ get: function () { return chunkV76ERLX6_cjs.getCoreVersion; }
38
38
  });
39
39
  Object.defineProperty(exports, "parseBlocksValue", {
40
40
  enumerable: true,
41
- get: function () { return chunkYQW2GCJ3_cjs.parseBlocksValue; }
41
+ get: function () { return chunkV76ERLX6_cjs.parseBlocksValue; }
42
42
  });
43
43
  Object.defineProperty(exports, "renderTemplate", {
44
44
  enumerable: true,
45
- get: function () { return chunkYQW2GCJ3_cjs.renderTemplate; }
45
+ get: function () { return chunkV76ERLX6_cjs.renderTemplate; }
46
46
  });
47
47
  Object.defineProperty(exports, "templateRenderer", {
48
48
  enumerable: true,
49
- get: function () { return chunkYQW2GCJ3_cjs.templateRenderer; }
49
+ get: function () { return chunkV76ERLX6_cjs.templateRenderer; }
50
50
  });
51
51
  Object.defineProperty(exports, "generateInstallationId", {
52
52
  enumerable: true,
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, getCoreVersion, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-MVSCB4E3.js';
1
+ export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, getCoreVersion, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-JF5RQXPN.js';
2
2
  export { generateInstallationId, generateProjectId, getDefaultTelemetryConfig, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-X7ZAEI5S.js';
3
3
  export { metricsTracker } from './chunk-FICTAGD4.js';
4
4
  export { escapeHtml, sanitizeInput, sanitizeObject } from './chunk-TQABQWOP.js';
@@ -1,17 +1,16 @@
1
- -- Migration 035: Add data column to user_profiles
2
- -- Stores custom profile fields as JSON (used by user-profiles plugin)
1
+ -- Migration 035: Add data column to user_profiles (no-op)
3
2
  --
4
- -- The data column was missing from migration 032 when the user-profiles plugin
5
- -- was added in PR #747. The ALTER TABLE migration was placed in the wrong
6
- -- directory (src/db/migrations/) so it was never bundled or executed.
7
- -- This caused the user edit page to crash with a 500 error because the route
8
- -- queries SELECT ... data FROM user_profiles.
3
+ -- This migration originally added a missing 'data' column to user_profiles.
4
+ -- Migration 032 has since been updated to include the column in the CREATE TABLE,
5
+ -- so on fresh installs the column already exists by the time this runs.
9
6
  --
10
- -- Migration 032 has been updated to include the column for fresh installs.
11
- -- This migration handles existing databases that already ran 032 without it.
12
-
13
- -- SQLite does not support IF NOT EXISTS for ALTER TABLE ADD COLUMN,
14
- -- but re-adding an existing column is a no-op error that we catch at the
15
- -- application level. The migration runner skips already-applied migrations
16
- -- by ID, so this only runs on databases missing the column.
17
- ALTER TABLE user_profiles ADD COLUMN data TEXT DEFAULT '{}';
7
+ -- The ALTER TABLE has been removed to prevent "duplicate column name: data" errors
8
+ -- during fresh installs (GitHub issue #771). Wrangler's migration runner does not
9
+ -- gracefully handle duplicate column errors like the runtime MigrationService does.
10
+ --
11
+ -- Existing databases that ran the old 032 (without the data column) get the column
12
+ -- added at runtime by the core MigrationService, which skips duplicate-column errors.
13
+ --
14
+ -- This file is kept as a no-op so that wrangler's migration tracking remains
15
+ -- consistent (it tracks migrations by filename).
16
+ SELECT 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonicjs-cms/core",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "Core framework for SonicJS headless CMS - Edge-first, TypeScript-native CMS built for Cloudflare Workers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",