@lowdefy/server-dev 0.0.0-experimental-20260223134334 → 0.0.0-experimental-20260304094754
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/lib/client/App.js +23 -19
- package/lib/client/BuildingPage.js +74 -0
- package/lib/server/apiWrapper.js +1 -1
- package/lib/server/jitPageBuilder.js +16 -12
- package/lib/server/log/createLogger.js +1 -1
- package/lib/server/pageCache.mjs +0 -30
- package/lib/server/pageCache.test.mjs +0 -61
- package/manager/getContext.mjs +0 -2
- package/manager/processes/lowdefyBuild.mjs +20 -23
- package/manager/processes/nextBuild.mjs +7 -1
- package/manager/watchers/lowdefyBuildWatcher.mjs +7 -4
- package/package.json +29 -30
- package/package.original.json +29 -30
- package/pages/api/reload.js +4 -1
package/lib/client/App.js
CHANGED
|
@@ -14,16 +14,18 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import React from 'react';
|
|
17
|
+
import React, { Suspense } from 'react';
|
|
18
18
|
|
|
19
19
|
import { useRouter } from 'next/router';
|
|
20
20
|
|
|
21
21
|
import Head from 'next/head';
|
|
22
22
|
import Link from 'next/link';
|
|
23
23
|
|
|
24
|
+
import BuildingPage from './BuildingPage.js';
|
|
24
25
|
import Reload from './Reload.js';
|
|
25
26
|
import Page from './Page.js';
|
|
26
27
|
import setPageId from './setPageId.js';
|
|
28
|
+
import { getReloadVersion } from './utils/useMutateCache.js';
|
|
27
29
|
import useRootConfig from './utils/useRootConfig.js';
|
|
28
30
|
|
|
29
31
|
import actions from '../../build/plugins/actions.js';
|
|
@@ -44,24 +46,26 @@ const App = ({ auth, lowdefy }) => {
|
|
|
44
46
|
return (
|
|
45
47
|
<Reload basePath={router.basePath} lowdefy={lowdefy}>
|
|
46
48
|
{(resetContext) => (
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
<Suspense key={`${pageId}_${getReloadVersion()}`} fallback={<BuildingPage />}>
|
|
50
|
+
<Page
|
|
51
|
+
auth={auth}
|
|
52
|
+
Components={{ Head, Link }}
|
|
53
|
+
config={{
|
|
54
|
+
rootConfig,
|
|
55
|
+
}}
|
|
56
|
+
jsMap={staticJsMap}
|
|
57
|
+
lowdefy={lowdefy}
|
|
58
|
+
pageId={pageId}
|
|
59
|
+
resetContext={resetContext}
|
|
60
|
+
router={router}
|
|
61
|
+
types={{
|
|
62
|
+
actions,
|
|
63
|
+
blocks,
|
|
64
|
+
icons,
|
|
65
|
+
operators,
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
</Suspense>
|
|
65
69
|
)}
|
|
66
70
|
</Reload>
|
|
67
71
|
);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import React from 'react';
|
|
18
|
+
|
|
19
|
+
const BuildingPage = () => {
|
|
20
|
+
return (
|
|
21
|
+
<div
|
|
22
|
+
style={{
|
|
23
|
+
height: '100vh',
|
|
24
|
+
textAlign: 'center',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
fontFamily:
|
|
30
|
+
"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
<style>
|
|
34
|
+
{`
|
|
35
|
+
@keyframes building-progress {
|
|
36
|
+
0% { transform: translateX(-100%); }
|
|
37
|
+
100% { transform: translateX(100%); }
|
|
38
|
+
}
|
|
39
|
+
`}
|
|
40
|
+
</style>
|
|
41
|
+
<div
|
|
42
|
+
style={{
|
|
43
|
+
position: 'fixed',
|
|
44
|
+
top: 0,
|
|
45
|
+
left: 0,
|
|
46
|
+
width: '100%',
|
|
47
|
+
height: 3,
|
|
48
|
+
backgroundColor: '#f0f0f0',
|
|
49
|
+
overflow: 'hidden',
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
style={{
|
|
54
|
+
width: '40%',
|
|
55
|
+
height: '100%',
|
|
56
|
+
backgroundColor: '#1890ff',
|
|
57
|
+
animation: 'building-progress 1.5s ease-in-out infinite',
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
<div
|
|
62
|
+
style={{
|
|
63
|
+
verticalAlign: 'middle',
|
|
64
|
+
display: 'inline-block',
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
<h3>Building page...</h3>
|
|
68
|
+
<p>The page will appear when the build completes.</p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export default BuildingPage;
|
package/lib/server/apiWrapper.js
CHANGED
|
@@ -82,7 +82,7 @@ function apiWrapper(handler) {
|
|
|
82
82
|
secrets,
|
|
83
83
|
};
|
|
84
84
|
try {
|
|
85
|
-
context.logger = createLogger(
|
|
85
|
+
context.logger = createLogger();
|
|
86
86
|
context.handleError = createHandleError({ context });
|
|
87
87
|
context.authOptions = getAuthOptions(context);
|
|
88
88
|
if (!req.url.startsWith('/api/auth')) {
|
|
@@ -23,6 +23,11 @@ import createLogger from './log/createLogger.js';
|
|
|
23
23
|
import PageCache from './pageCache.mjs';
|
|
24
24
|
|
|
25
25
|
const jitLogger = createLogger({ name: 'jit-build' });
|
|
26
|
+
|
|
27
|
+
function formatDuration(ms) {
|
|
28
|
+
if (ms < 1000) return `${ms}ms`;
|
|
29
|
+
return `${(ms / 1000).toFixed(2)}s`;
|
|
30
|
+
}
|
|
26
31
|
const pageCache = new PageCache();
|
|
27
32
|
let cachedRegistryMtime = null;
|
|
28
33
|
let cachedRegistry = null;
|
|
@@ -39,21 +44,17 @@ function readJsonFile(filePath) {
|
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
function checkPageInvalidations(buildDirectory) {
|
|
42
|
-
const
|
|
47
|
+
const invalidatePath = path.join(buildDirectory, 'invalidatePages');
|
|
43
48
|
try {
|
|
44
|
-
const stat = fs.statSync(
|
|
49
|
+
const stat = fs.statSync(invalidatePath);
|
|
45
50
|
if (lastInvalidationMtime && stat.mtimeMs === lastInvalidationMtime) {
|
|
46
51
|
return;
|
|
47
52
|
}
|
|
48
53
|
lastInvalidationMtime = stat.mtimeMs;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (Array.isArray(pageIds) && pageIds.length > 0) {
|
|
52
|
-
pageCache.invalidatePages(pageIds);
|
|
53
|
-
cachedBuildContext = null;
|
|
54
|
-
}
|
|
54
|
+
pageCache.invalidateAll();
|
|
55
|
+
cachedBuildContext = null;
|
|
55
56
|
} catch {
|
|
56
|
-
// File doesn't exist yet
|
|
57
|
+
// File doesn't exist yet — nothing to invalidate
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -131,9 +132,10 @@ async function buildPageIfNeeded({ pageId, buildDirectory, configDirectory }) {
|
|
|
131
132
|
return true;
|
|
132
133
|
}
|
|
133
134
|
|
|
135
|
+
jitLogger.info({ spin: true }, `Building page "${pageId}"...`);
|
|
136
|
+
const startTime = Date.now();
|
|
134
137
|
try {
|
|
135
138
|
const context = getBuildContext(buildDirectory, configDirectory);
|
|
136
|
-
const startTime = Date.now();
|
|
137
139
|
const result = await buildPageJit({
|
|
138
140
|
pageId,
|
|
139
141
|
pageRegistry: registry,
|
|
@@ -147,7 +149,10 @@ async function buildPageIfNeeded({ pageId, buildDirectory, configDirectory }) {
|
|
|
147
149
|
return result;
|
|
148
150
|
}
|
|
149
151
|
pageCache.markCompiled(pageId);
|
|
150
|
-
jitLogger.info(
|
|
152
|
+
jitLogger.info(
|
|
153
|
+
{ succeed: true, color: 'white' },
|
|
154
|
+
`Built page "${pageId}" in ${formatDuration(Date.now() - startTime)}.`
|
|
155
|
+
);
|
|
151
156
|
return true;
|
|
152
157
|
} finally {
|
|
153
158
|
pageCache.releaseBuildLock(pageId);
|
|
@@ -155,4 +160,3 @@ async function buildPageIfNeeded({ pageId, buildDirectory, configDirectory }) {
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
export default buildPageIfNeeded;
|
|
158
|
-
export { pageCache };
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { createNodeLogger } from '@lowdefy/logger/node';
|
|
18
18
|
|
|
19
19
|
const logger = createNodeLogger({
|
|
20
|
-
name: '
|
|
20
|
+
name: 'lowdefy_server_dev',
|
|
21
21
|
level: process.env.LOWDEFY_LOG_LEVEL ?? 'info',
|
|
22
22
|
base: { pid: undefined, hostname: undefined },
|
|
23
23
|
});
|
package/lib/server/pageCache.mjs
CHANGED
|
@@ -18,7 +18,6 @@ class PageCache {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
this.compiledPages = new Set();
|
|
20
20
|
this.buildLocks = new Map();
|
|
21
|
-
this.skeletonLock = null;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
isCompiled(pageId) {
|
|
@@ -30,11 +29,6 @@ class PageCache {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
async acquireBuildLock(pageId) {
|
|
33
|
-
// Wait for any skeleton rebuild first
|
|
34
|
-
if (this.skeletonLock) {
|
|
35
|
-
await this.skeletonLock;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
32
|
// If page build already in progress, wait for it
|
|
39
33
|
if (this.buildLocks.has(pageId)) {
|
|
40
34
|
await this.buildLocks.get(pageId);
|
|
@@ -59,33 +53,9 @@ class PageCache {
|
|
|
59
53
|
}
|
|
60
54
|
}
|
|
61
55
|
|
|
62
|
-
async acquireSkeletonLock() {
|
|
63
|
-
// Wait for all in-progress page builds to complete
|
|
64
|
-
await Promise.all(this.buildLocks.values());
|
|
65
|
-
let resolve;
|
|
66
|
-
this.skeletonLock = new Promise((r) => {
|
|
67
|
-
resolve = r;
|
|
68
|
-
});
|
|
69
|
-
this.skeletonLock.resolve = resolve;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
releaseSkeletonLock() {
|
|
73
|
-
if (this.skeletonLock) {
|
|
74
|
-
this.skeletonLock.resolve();
|
|
75
|
-
this.skeletonLock = null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
56
|
invalidateAll() {
|
|
80
57
|
this.compiledPages.clear();
|
|
81
58
|
}
|
|
82
|
-
|
|
83
|
-
invalidatePages(pageIds) {
|
|
84
|
-
for (const pageId of pageIds) {
|
|
85
|
-
this.compiledPages.delete(pageId);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
59
|
}
|
|
90
60
|
|
|
91
61
|
export default PageCache;
|
|
@@ -36,17 +36,6 @@ test('invalidateAll clears all compiled pages', () => {
|
|
|
36
36
|
expect(cache.isCompiled('dashboard')).toBe(false);
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
test('invalidatePages removes specific pages', () => {
|
|
40
|
-
const cache = new PageCache();
|
|
41
|
-
cache.markCompiled('home');
|
|
42
|
-
cache.markCompiled('dashboard');
|
|
43
|
-
cache.markCompiled('settings');
|
|
44
|
-
cache.invalidatePages(['home', 'settings']);
|
|
45
|
-
expect(cache.isCompiled('home')).toBe(false);
|
|
46
|
-
expect(cache.isCompiled('dashboard')).toBe(true);
|
|
47
|
-
expect(cache.isCompiled('settings')).toBe(false);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
39
|
test('acquireBuildLock returns true for first request', async () => {
|
|
51
40
|
const cache = new PageCache();
|
|
52
41
|
const shouldBuild = await cache.acquireBuildLock('home');
|
|
@@ -89,53 +78,3 @@ test('releaseBuildLock does nothing for non-existent lock', () => {
|
|
|
89
78
|
// Should not throw
|
|
90
79
|
cache.releaseBuildLock('nonexistent');
|
|
91
80
|
});
|
|
92
|
-
|
|
93
|
-
test('acquireSkeletonLock waits for page builds', async () => {
|
|
94
|
-
const cache = new PageCache();
|
|
95
|
-
const buildOrder = [];
|
|
96
|
-
|
|
97
|
-
// Start a page build
|
|
98
|
-
await cache.acquireBuildLock('home');
|
|
99
|
-
|
|
100
|
-
// Start skeleton lock acquisition (should wait)
|
|
101
|
-
const skeletonPromise = cache.acquireSkeletonLock().then(() => {
|
|
102
|
-
buildOrder.push('skeleton-acquired');
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// Release page build
|
|
106
|
-
buildOrder.push('page-released');
|
|
107
|
-
cache.releaseBuildLock('home');
|
|
108
|
-
|
|
109
|
-
await skeletonPromise;
|
|
110
|
-
expect(buildOrder).toEqual(['page-released', 'skeleton-acquired']);
|
|
111
|
-
cache.releaseSkeletonLock();
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
test('acquireBuildLock waits for skeleton lock', async () => {
|
|
115
|
-
const cache = new PageCache();
|
|
116
|
-
const buildOrder = [];
|
|
117
|
-
|
|
118
|
-
// Acquire skeleton lock
|
|
119
|
-
await cache.acquireSkeletonLock();
|
|
120
|
-
|
|
121
|
-
// Start page build (should wait for skeleton)
|
|
122
|
-
const pagePromise = cache.acquireBuildLock('home').then((result) => {
|
|
123
|
-
buildOrder.push('page-acquired');
|
|
124
|
-
return result;
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
// Release skeleton
|
|
128
|
-
buildOrder.push('skeleton-released');
|
|
129
|
-
cache.releaseSkeletonLock();
|
|
130
|
-
|
|
131
|
-
const shouldBuild = await pagePromise;
|
|
132
|
-
expect(shouldBuild).toBe(true);
|
|
133
|
-
expect(buildOrder).toEqual(['skeleton-released', 'page-acquired']);
|
|
134
|
-
cache.releaseBuildLock('home');
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
test('releaseSkeletonLock does nothing when no lock exists', () => {
|
|
138
|
-
const cache = new PageCache();
|
|
139
|
-
// Should not throw
|
|
140
|
-
cache.releaseSkeletonLock();
|
|
141
|
-
});
|
package/manager/getContext.mjs
CHANGED
|
@@ -33,7 +33,6 @@ import shutdownServer from './processes/shutdownServer.mjs';
|
|
|
33
33
|
import startWatchers from './processes/startWatchers.mjs';
|
|
34
34
|
|
|
35
35
|
import getNextBin from './utils/getNextBin.mjs';
|
|
36
|
-
import PageCache from '../lib/server/pageCache.mjs';
|
|
37
36
|
|
|
38
37
|
const argv = yargs(hideBin(process.argv)).array('watch').array('watchIgnore').argv;
|
|
39
38
|
|
|
@@ -68,7 +67,6 @@ async function getContext() {
|
|
|
68
67
|
version: env.npm_package_version,
|
|
69
68
|
|
|
70
69
|
// JIT build state
|
|
71
|
-
pageCache: new PageCache(),
|
|
72
70
|
pageRegistry: null,
|
|
73
71
|
buildContext: null,
|
|
74
72
|
};
|
|
@@ -17,32 +17,29 @@
|
|
|
17
17
|
import { shallowBuild } from '@lowdefy/build/dev';
|
|
18
18
|
import createCustomPluginTypesMap from '../utils/createCustomPluginTypesMap.mjs';
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
function formatDuration(ms) {
|
|
21
|
+
if (ms < 1000) return `${ms}ms`;
|
|
22
|
+
return `${(ms / 1000).toFixed(2)}s`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function lowdefyBuild({ directories, logger, options }) {
|
|
21
26
|
return async () => {
|
|
22
|
-
logger.info(
|
|
27
|
+
logger.info('Building config...');
|
|
28
|
+
const startTime = Date.now();
|
|
23
29
|
const customTypesMap = await createCustomPluginTypesMap({ directories, logger });
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// Return result so getContext can store registries
|
|
38
|
-
logger.info('Built config.');
|
|
39
|
-
return result;
|
|
40
|
-
} finally {
|
|
41
|
-
if (pageCache) {
|
|
42
|
-
pageCache.invalidateAll();
|
|
43
|
-
pageCache.releaseSkeletonLock();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
31
|
+
const result = await shallowBuild({
|
|
32
|
+
customTypesMap,
|
|
33
|
+
directories,
|
|
34
|
+
logger,
|
|
35
|
+
refResolver: options.refResolver,
|
|
36
|
+
stage: 'dev',
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// Return result so getContext can store registries
|
|
40
|
+
const duration = Date.now() - startTime;
|
|
41
|
+
logger.info({ succeed: true }, `Built config in ${formatDuration(duration)}.`);
|
|
42
|
+
return result;
|
|
46
43
|
};
|
|
47
44
|
}
|
|
48
45
|
|
|
@@ -17,9 +17,15 @@
|
|
|
17
17
|
import { BuildError } from '@lowdefy/errors';
|
|
18
18
|
import { spawnProcess } from '@lowdefy/node-utils';
|
|
19
19
|
|
|
20
|
+
function formatDuration(ms) {
|
|
21
|
+
if (ms < 1000) return `${ms}ms`;
|
|
22
|
+
return `${(ms / 1000).toFixed(2)}s`;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
function nextBuild({ bin, logger }) {
|
|
21
26
|
return async () => {
|
|
22
27
|
logger.info({ spin: true }, 'Building app...');
|
|
28
|
+
const startTime = Date.now();
|
|
23
29
|
const errorLines = [];
|
|
24
30
|
try {
|
|
25
31
|
await spawnProcess({
|
|
@@ -37,7 +43,7 @@ function nextBuild({ bin, logger }) {
|
|
|
37
43
|
}
|
|
38
44
|
throw new BuildError('Next.js build failed. See above for details.');
|
|
39
45
|
}
|
|
40
|
-
logger.info(
|
|
46
|
+
logger.info({ succeed: true }, `Built app in ${formatDuration(Date.now() - startTime)}.`);
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import fs from 'fs';
|
|
17
18
|
import path from 'path';
|
|
18
19
|
import getLowdefyVersion from '../utils/getLowdefyVersion.mjs';
|
|
19
20
|
import setupWatcher from '../utils/setupWatcher.mjs';
|
|
@@ -44,16 +45,18 @@ function lowdefyBuildWatcher(context) {
|
|
|
44
45
|
lowdefyYamlModified ||
|
|
45
46
|
changedFiles.some((f) => !f.startsWith('pages/') && !f.startsWith('./'));
|
|
46
47
|
|
|
47
|
-
if (isSkeletonChange
|
|
48
|
+
if (isSkeletonChange) {
|
|
48
49
|
await context.lowdefyBuild();
|
|
49
50
|
} else {
|
|
50
|
-
// Page-only changes:
|
|
51
|
-
context.
|
|
51
|
+
// Page-only changes: write signal file so the server invalidates its page cache
|
|
52
|
+
const invalidatePath = path.join(context.directories.build, 'invalidatePages');
|
|
53
|
+
fs.writeFileSync(invalidatePath, String(Date.now()));
|
|
52
54
|
context.logger.info('Page files changed, invalidated all pages.');
|
|
53
55
|
}
|
|
54
|
-
context.reloadClients();
|
|
55
56
|
} catch (error) {
|
|
56
57
|
context.logger.error(error);
|
|
58
|
+
} finally {
|
|
59
|
+
await context.reloadClients();
|
|
57
60
|
}
|
|
58
61
|
};
|
|
59
62
|
return setupWatcher({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server-dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20260304094754",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -36,35 +36,34 @@
|
|
|
36
36
|
".npmrc"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
40
|
-
"@lowdefy/api": "0.0.0-experimental-
|
|
41
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
42
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
43
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
44
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
45
|
-
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-
|
|
46
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
47
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
48
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
49
|
-
"@lowdefy/blocks-qr": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/build": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/client": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/errors": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
55
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
56
|
-
"@lowdefy/logger": "0.0.0-experimental-
|
|
57
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
58
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
59
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
60
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
61
|
-
"@lowdefy/operators-moment": "0.0.0-experimental-
|
|
62
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/plugin-
|
|
67
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260223134334",
|
|
39
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20260304094754",
|
|
40
|
+
"@lowdefy/api": "0.0.0-experimental-20260304094754",
|
|
41
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20260304094754",
|
|
42
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20260304094754",
|
|
43
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20260304094754",
|
|
44
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20260304094754",
|
|
45
|
+
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-20260304094754",
|
|
46
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20260304094754",
|
|
47
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20260304094754",
|
|
48
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20260304094754",
|
|
49
|
+
"@lowdefy/blocks-qr": "0.0.0-experimental-20260304094754",
|
|
50
|
+
"@lowdefy/build": "0.0.0-experimental-20260304094754",
|
|
51
|
+
"@lowdefy/client": "0.0.0-experimental-20260304094754",
|
|
52
|
+
"@lowdefy/engine": "0.0.0-experimental-20260304094754",
|
|
53
|
+
"@lowdefy/errors": "0.0.0-experimental-20260304094754",
|
|
54
|
+
"@lowdefy/helpers": "0.0.0-experimental-20260304094754",
|
|
55
|
+
"@lowdefy/layout": "0.0.0-experimental-20260304094754",
|
|
56
|
+
"@lowdefy/logger": "0.0.0-experimental-20260304094754",
|
|
57
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20260304094754",
|
|
58
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20260304094754",
|
|
59
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20260304094754",
|
|
60
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20260304094754",
|
|
61
|
+
"@lowdefy/operators-moment": "0.0.0-experimental-20260304094754",
|
|
62
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20260304094754",
|
|
63
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20260304094754",
|
|
64
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20260304094754",
|
|
65
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20260304094754",
|
|
66
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260304094754",
|
|
68
67
|
"chokidar": "3.5.3",
|
|
69
68
|
"dotenv": "16.3.1",
|
|
70
69
|
"next": "13.5.4",
|
package/package.original.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server-dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-20260304094754",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -44,35 +44,34 @@
|
|
|
44
44
|
"prepublishOnly": "pnpm build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lowdefy/actions-core": "0.0.0-experimental-
|
|
48
|
-
"@lowdefy/api": "0.0.0-experimental-
|
|
49
|
-
"@lowdefy/block-utils": "0.0.0-experimental-
|
|
50
|
-
"@lowdefy/blocks-aggrid": "0.0.0-experimental-
|
|
51
|
-
"@lowdefy/blocks-antd": "0.0.0-experimental-
|
|
52
|
-
"@lowdefy/blocks-basic": "0.0.0-experimental-
|
|
53
|
-
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-
|
|
54
|
-
"@lowdefy/blocks-echarts": "0.0.0-experimental-
|
|
55
|
-
"@lowdefy/blocks-loaders": "0.0.0-experimental-
|
|
56
|
-
"@lowdefy/blocks-markdown": "0.0.0-experimental-
|
|
57
|
-
"@lowdefy/blocks-qr": "0.0.0-experimental-
|
|
58
|
-
"@lowdefy/build": "0.0.0-experimental-
|
|
59
|
-
"@lowdefy/client": "0.0.0-experimental-
|
|
60
|
-
"@lowdefy/engine": "0.0.0-experimental-
|
|
61
|
-
"@lowdefy/errors": "0.0.0-experimental-
|
|
62
|
-
"@lowdefy/helpers": "0.0.0-experimental-
|
|
63
|
-
"@lowdefy/layout": "0.0.0-experimental-
|
|
64
|
-
"@lowdefy/logger": "0.0.0-experimental-
|
|
65
|
-
"@lowdefy/node-utils": "0.0.0-experimental-
|
|
66
|
-
"@lowdefy/operators-change-case": "0.0.0-experimental-
|
|
67
|
-
"@lowdefy/operators-diff": "0.0.0-experimental-
|
|
68
|
-
"@lowdefy/operators-js": "0.0.0-experimental-
|
|
69
|
-
"@lowdefy/operators-moment": "0.0.0-experimental-
|
|
70
|
-
"@lowdefy/operators-mql": "0.0.0-experimental-
|
|
71
|
-
"@lowdefy/operators-nunjucks": "0.0.0-experimental-
|
|
72
|
-
"@lowdefy/operators-uuid": "0.0.0-experimental-
|
|
73
|
-
"@lowdefy/operators-yaml": "0.0.0-experimental-
|
|
74
|
-
"@lowdefy/plugin-
|
|
75
|
-
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260223134334",
|
|
47
|
+
"@lowdefy/actions-core": "0.0.0-experimental-20260304094754",
|
|
48
|
+
"@lowdefy/api": "0.0.0-experimental-20260304094754",
|
|
49
|
+
"@lowdefy/block-utils": "0.0.0-experimental-20260304094754",
|
|
50
|
+
"@lowdefy/blocks-aggrid": "0.0.0-experimental-20260304094754",
|
|
51
|
+
"@lowdefy/blocks-antd": "0.0.0-experimental-20260304094754",
|
|
52
|
+
"@lowdefy/blocks-basic": "0.0.0-experimental-20260304094754",
|
|
53
|
+
"@lowdefy/blocks-color-selectors": "0.0.0-experimental-20260304094754",
|
|
54
|
+
"@lowdefy/blocks-echarts": "0.0.0-experimental-20260304094754",
|
|
55
|
+
"@lowdefy/blocks-loaders": "0.0.0-experimental-20260304094754",
|
|
56
|
+
"@lowdefy/blocks-markdown": "0.0.0-experimental-20260304094754",
|
|
57
|
+
"@lowdefy/blocks-qr": "0.0.0-experimental-20260304094754",
|
|
58
|
+
"@lowdefy/build": "0.0.0-experimental-20260304094754",
|
|
59
|
+
"@lowdefy/client": "0.0.0-experimental-20260304094754",
|
|
60
|
+
"@lowdefy/engine": "0.0.0-experimental-20260304094754",
|
|
61
|
+
"@lowdefy/errors": "0.0.0-experimental-20260304094754",
|
|
62
|
+
"@lowdefy/helpers": "0.0.0-experimental-20260304094754",
|
|
63
|
+
"@lowdefy/layout": "0.0.0-experimental-20260304094754",
|
|
64
|
+
"@lowdefy/logger": "0.0.0-experimental-20260304094754",
|
|
65
|
+
"@lowdefy/node-utils": "0.0.0-experimental-20260304094754",
|
|
66
|
+
"@lowdefy/operators-change-case": "0.0.0-experimental-20260304094754",
|
|
67
|
+
"@lowdefy/operators-diff": "0.0.0-experimental-20260304094754",
|
|
68
|
+
"@lowdefy/operators-js": "0.0.0-experimental-20260304094754",
|
|
69
|
+
"@lowdefy/operators-moment": "0.0.0-experimental-20260304094754",
|
|
70
|
+
"@lowdefy/operators-mql": "0.0.0-experimental-20260304094754",
|
|
71
|
+
"@lowdefy/operators-nunjucks": "0.0.0-experimental-20260304094754",
|
|
72
|
+
"@lowdefy/operators-uuid": "0.0.0-experimental-20260304094754",
|
|
73
|
+
"@lowdefy/operators-yaml": "0.0.0-experimental-20260304094754",
|
|
74
|
+
"@lowdefy/plugin-next-auth": "0.0.0-experimental-20260304094754",
|
|
76
75
|
"chokidar": "3.5.3",
|
|
77
76
|
"dotenv": "16.3.1",
|
|
78
77
|
"next": "13.5.4",
|
package/pages/api/reload.js
CHANGED
|
@@ -36,7 +36,10 @@ const handler = async (req, res) => {
|
|
|
36
36
|
};
|
|
37
37
|
watcher.on('add', () => reload());
|
|
38
38
|
watcher.on('change', () => reload());
|
|
39
|
-
|
|
39
|
+
// Do not reload on unlink — cleanBuildDirectory deletes build/reload during
|
|
40
|
+
// skeleton rebuilds, which would send a premature SSE event before the new
|
|
41
|
+
// build artifacts are written. The real reload comes via add/change when
|
|
42
|
+
// reloadClients() creates the file after the build completes.
|
|
40
43
|
|
|
41
44
|
// TODO: This isn't working.
|
|
42
45
|
req.on('close', () => {
|