@lowdefy/build 0.0.0-experimental-20251203202233 → 0.0.0-experimental-20251203205559

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.
@@ -49,9 +49,11 @@
49
49
  * @param {string[]} options.changedFiles - Array of file paths that changed
50
50
  * @param {Map<string, Set<string>>} options.dependencyGraph - Dependency graph
51
51
  * @param {Map<string, any>} options.parsedContentCache - Cache of parsed file content
52
+ * @param {Map<string, any>} options.refCache - Cache of resolved refs
53
+ * @param {Map<string, Set<string>>} options.pathToRefHashes - Maps file path to ref hashes
52
54
  * @param {Object} options.logger - Logger instance
53
55
  * @returns {Set<string>} - Set of affected file paths that were invalidated
54
- */ function invalidateChangedFiles({ changedFiles, dependencyGraph, parsedContentCache, logger }) {
56
+ */ function invalidateChangedFiles({ changedFiles, dependencyGraph, parsedContentCache, refCache, pathToRefHashes, logger }) {
55
57
  if (!changedFiles || changedFiles.length === 0) {
56
58
  return new Set();
57
59
  }
@@ -64,6 +66,19 @@
64
66
  parsedContentCache.delete(cacheKey);
65
67
  }
66
68
  }
69
+ // Invalidate refCache entries for affected files using pathToRefHashes mapping
70
+ if (refCache && pathToRefHashes) {
71
+ for (const filePath of affectedFiles){
72
+ const hashes = pathToRefHashes.get(filePath);
73
+ if (hashes) {
74
+ for (const hash of hashes){
75
+ refCache.delete(hash);
76
+ }
77
+ // Also clear the path mapping since it will be rebuilt
78
+ pathToRefHashes.delete(filePath);
79
+ }
80
+ }
81
+ }
67
82
  if (logger?.level === 'debug' && affectedFiles.size > 0) {
68
83
  logger.debug(`Incremental build: ${changedFiles.length} file(s) changed`);
69
84
  logger.debug(`Incremental build: ${affectedFiles.size} file(s) affected`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/build",
3
- "version": "0.0.0-experimental-20251203202233",
3
+ "version": "0.0.0-experimental-20251203205559",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -44,14 +44,14 @@
44
44
  "dist/*"
45
45
  ],
46
46
  "dependencies": {
47
- "@lowdefy/ajv": "0.0.0-experimental-20251203202233",
48
- "@lowdefy/blocks-basic": "0.0.0-experimental-20251203202233",
49
- "@lowdefy/blocks-loaders": "0.0.0-experimental-20251203202233",
50
- "@lowdefy/helpers": "0.0.0-experimental-20251203202233",
51
- "@lowdefy/node-utils": "0.0.0-experimental-20251203202233",
52
- "@lowdefy/nunjucks": "0.0.0-experimental-20251203202233",
53
- "@lowdefy/operators": "0.0.0-experimental-20251203202233",
54
- "@lowdefy/operators-js": "0.0.0-experimental-20251203202233",
47
+ "@lowdefy/ajv": "0.0.0-experimental-20251203205559",
48
+ "@lowdefy/blocks-basic": "0.0.0-experimental-20251203205559",
49
+ "@lowdefy/blocks-loaders": "0.0.0-experimental-20251203205559",
50
+ "@lowdefy/helpers": "0.0.0-experimental-20251203205559",
51
+ "@lowdefy/node-utils": "0.0.0-experimental-20251203205559",
52
+ "@lowdefy/nunjucks": "0.0.0-experimental-20251203205559",
53
+ "@lowdefy/operators": "0.0.0-experimental-20251203205559",
54
+ "@lowdefy/operators-js": "0.0.0-experimental-20251203205559",
55
55
  "ajv": "8.12.0",
56
56
  "json5": "2.2.3",
57
57
  "yaml": "2.3.4",
@@ -59,36 +59,36 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@jest/globals": "28.1.3",
62
- "@lowdefy/actions-core": "0.0.0-experimental-20251203202233",
63
- "@lowdefy/actions-pdf-make": "0.0.0-experimental-20251203202233",
64
- "@lowdefy/blocks-aggrid": "0.0.0-experimental-20251203202233",
65
- "@lowdefy/blocks-algolia": "0.0.0-experimental-20251203202233",
66
- "@lowdefy/blocks-antd": "0.0.0-experimental-20251203202233",
67
- "@lowdefy/blocks-color-selectors": "0.0.0-experimental-20251203202233",
68
- "@lowdefy/blocks-echarts": "0.0.0-experimental-20251203202233",
69
- "@lowdefy/blocks-google-maps": "0.0.0-experimental-20251203202233",
70
- "@lowdefy/blocks-markdown": "0.0.0-experimental-20251203202233",
71
- "@lowdefy/blocks-qr": "0.0.0-experimental-20251203202233",
72
- "@lowdefy/connection-axios-http": "0.0.0-experimental-20251203202233",
73
- "@lowdefy/connection-elasticsearch": "0.0.0-experimental-20251203202233",
74
- "@lowdefy/connection-google-sheets": "0.0.0-experimental-20251203202233",
75
- "@lowdefy/connection-knex": "0.0.0-experimental-20251203202233",
76
- "@lowdefy/connection-mongodb": "0.0.0-experimental-20251203202233",
77
- "@lowdefy/connection-redis": "0.0.0-experimental-20251203202233",
78
- "@lowdefy/connection-sendgrid": "0.0.0-experimental-20251203202233",
79
- "@lowdefy/connection-stripe": "0.0.0-experimental-20251203202233",
80
- "@lowdefy/operators-change-case": "0.0.0-experimental-20251203202233",
81
- "@lowdefy/operators-diff": "0.0.0-experimental-20251203202233",
82
- "@lowdefy/operators-jsonata": "0.0.0-experimental-20251203202233",
83
- "@lowdefy/operators-moment": "0.0.0-experimental-20251203202233",
84
- "@lowdefy/operators-mql": "0.0.0-experimental-20251203202233",
85
- "@lowdefy/operators-nunjucks": "0.0.0-experimental-20251203202233",
86
- "@lowdefy/operators-uuid": "0.0.0-experimental-20251203202233",
87
- "@lowdefy/operators-yaml": "0.0.0-experimental-20251203202233",
88
- "@lowdefy/plugin-auth0": "0.0.0-experimental-20251203202233",
89
- "@lowdefy/plugin-aws": "0.0.0-experimental-20251203202233",
90
- "@lowdefy/plugin-csv": "0.0.0-experimental-20251203202233",
91
- "@lowdefy/plugin-next-auth": "0.0.0-experimental-20251203202233",
62
+ "@lowdefy/actions-core": "0.0.0-experimental-20251203205559",
63
+ "@lowdefy/actions-pdf-make": "0.0.0-experimental-20251203205559",
64
+ "@lowdefy/blocks-aggrid": "0.0.0-experimental-20251203205559",
65
+ "@lowdefy/blocks-algolia": "0.0.0-experimental-20251203205559",
66
+ "@lowdefy/blocks-antd": "0.0.0-experimental-20251203205559",
67
+ "@lowdefy/blocks-color-selectors": "0.0.0-experimental-20251203205559",
68
+ "@lowdefy/blocks-echarts": "0.0.0-experimental-20251203205559",
69
+ "@lowdefy/blocks-google-maps": "0.0.0-experimental-20251203205559",
70
+ "@lowdefy/blocks-markdown": "0.0.0-experimental-20251203205559",
71
+ "@lowdefy/blocks-qr": "0.0.0-experimental-20251203205559",
72
+ "@lowdefy/connection-axios-http": "0.0.0-experimental-20251203205559",
73
+ "@lowdefy/connection-elasticsearch": "0.0.0-experimental-20251203205559",
74
+ "@lowdefy/connection-google-sheets": "0.0.0-experimental-20251203205559",
75
+ "@lowdefy/connection-knex": "0.0.0-experimental-20251203205559",
76
+ "@lowdefy/connection-mongodb": "0.0.0-experimental-20251203205559",
77
+ "@lowdefy/connection-redis": "0.0.0-experimental-20251203205559",
78
+ "@lowdefy/connection-sendgrid": "0.0.0-experimental-20251203205559",
79
+ "@lowdefy/connection-stripe": "0.0.0-experimental-20251203205559",
80
+ "@lowdefy/operators-change-case": "0.0.0-experimental-20251203205559",
81
+ "@lowdefy/operators-diff": "0.0.0-experimental-20251203205559",
82
+ "@lowdefy/operators-jsonata": "0.0.0-experimental-20251203205559",
83
+ "@lowdefy/operators-moment": "0.0.0-experimental-20251203205559",
84
+ "@lowdefy/operators-mql": "0.0.0-experimental-20251203205559",
85
+ "@lowdefy/operators-nunjucks": "0.0.0-experimental-20251203205559",
86
+ "@lowdefy/operators-uuid": "0.0.0-experimental-20251203205559",
87
+ "@lowdefy/operators-yaml": "0.0.0-experimental-20251203205559",
88
+ "@lowdefy/plugin-auth0": "0.0.0-experimental-20251203205559",
89
+ "@lowdefy/plugin-aws": "0.0.0-experimental-20251203205559",
90
+ "@lowdefy/plugin-csv": "0.0.0-experimental-20251203205559",
91
+ "@lowdefy/plugin-next-auth": "0.0.0-experimental-20251203205559",
92
92
  "@swc/cli": "0.1.63",
93
93
  "@swc/core": "1.3.99",
94
94
  "@swc/jest": "0.2.29",