shelving 1.285.1 → 1.285.2
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.
|
@@ -89,7 +89,10 @@ export class CacheDBProvider extends ThroughDBProvider {
|
|
|
89
89
|
*/
|
|
90
90
|
async transact(callback) {
|
|
91
91
|
let transaction;
|
|
92
|
-
const result = await this.source.transact(provider =>
|
|
92
|
+
const result = await this.source.transact(provider => {
|
|
93
|
+
transaction = new RecordingDBProvider(this.cloneWith(provider));
|
|
94
|
+
return callback(transaction);
|
|
95
|
+
});
|
|
93
96
|
if (transaction)
|
|
94
97
|
await transaction.replayWrites(this.memory); // Commit the recorded writes into the cache.
|
|
95
98
|
return result;
|
|
@@ -89,7 +89,7 @@ function _getServer() {
|
|
|
89
89
|
return _server;
|
|
90
90
|
}
|
|
91
91
|
/** Close the shared compiler server after a short idle, so the process can exit without callers managing the lifecycle. */
|
|
92
|
-
function _scheduleClose() {
|
|
92
|
+
async function _scheduleClose() {
|
|
93
93
|
if (_timer)
|
|
94
94
|
clearTimeout(_timer);
|
|
95
95
|
_timer = setTimeout(() => {
|
|
@@ -98,7 +98,7 @@ function _scheduleClose() {
|
|
|
98
98
|
_previous = undefined;
|
|
99
99
|
_timer = undefined;
|
|
100
100
|
try {
|
|
101
|
-
server?.api.close();
|
|
101
|
+
void server?.api.close();
|
|
102
102
|
}
|
|
103
103
|
catch {
|
|
104
104
|
// Closing can reject in-flight bookkeeping requests — harmless on shutdown.
|
|
@@ -135,8 +135,8 @@ function _parseSourceFile(text) {
|
|
|
135
135
|
return source;
|
|
136
136
|
}
|
|
137
137
|
finally {
|
|
138
|
-
snapshot.dispose();
|
|
139
|
-
_scheduleClose();
|
|
138
|
+
await snapshot.dispose();
|
|
139
|
+
await _scheduleClose();
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
const result = _queue.then(task, task);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shelving",
|
|
3
|
-
"version": "1.285.
|
|
3
|
+
"version": "1.285.2",
|
|
4
4
|
"author": "Dave Houlbrooke <dave@shax.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,21 +9,17 @@
|
|
|
9
9
|
"main": "./index.js",
|
|
10
10
|
"module": "./index.js",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@biomejs/biome": "^2.5.
|
|
12
|
+
"@biomejs/biome": "^2.5.13",
|
|
13
13
|
"@heroicons/react": "^2.2.0",
|
|
14
|
-
"@types/bun": "^1.
|
|
15
|
-
"@types/react": "^19.
|
|
16
|
-
"@types/react-dom": "^19.
|
|
17
|
-
"
|
|
18
|
-
"react-dom": "^19.3.0-canary-fef12a01-20260413",
|
|
19
|
-
"stylelint": "^17.14.1",
|
|
14
|
+
"@types/bun": "^1.4.2",
|
|
15
|
+
"@types/react": "^19.3.0",
|
|
16
|
+
"@types/react-dom": "^19.3.0",
|
|
17
|
+
"stylelint": "^17.15.0",
|
|
20
18
|
"stylelint-config-standard": "^40.0.0",
|
|
21
19
|
"typescript": "^7.0.2"
|
|
22
20
|
},
|
|
23
21
|
"peerDependencies": {
|
|
24
|
-
"@heroicons/react": ">=2.0.0"
|
|
25
|
-
"react": ">=19.0.0",
|
|
26
|
-
"react-dom": ">=19.0.0"
|
|
22
|
+
"@heroicons/react": ">=2.0.0"
|
|
27
23
|
},
|
|
28
24
|
"exports": {
|
|
29
25
|
".": "./index.js",
|
|
@@ -83,5 +79,9 @@
|
|
|
83
79
|
"*.css"
|
|
84
80
|
],
|
|
85
81
|
"type": "module",
|
|
86
|
-
"types": "./index.d.ts"
|
|
82
|
+
"types": "./index.d.ts",
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"react": "^19.3.0",
|
|
85
|
+
"react-dom": "^19.3.0"
|
|
86
|
+
}
|
|
87
87
|
}
|