silgi 0.20.4 → 0.20.5

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.
@@ -1,4 +1,4 @@
1
- const version = "0.20.4";
1
+ const version = "0.20.5";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -252,7 +252,7 @@ const run = defineCommand({
252
252
  cleanHandler = `import { silgiCLICtx } from 'silgi/core'
253
253
 
254
254
  // Access from global scope
255
- const silgiObj = global.__silgi_temp_obj;
255
+ const silgiObj = globalThis.__silgi_temp_obj;
256
256
  if (silgiCLICtx.tryUse()) {
257
257
  silgiCLICtx.unset()
258
258
  silgiCLICtx.set(silgiObj)
@@ -263,16 +263,13 @@ const run = defineCommand({
263
263
  silgiObj.hook && silgiObj.hook('close', () => silgiCLICtx.unset())
264
264
  }
265
265
  ${cleanHandler}
266
-
267
- // Clean up global scope
268
- delete global.__silgi_temp_obj;`;
266
+ `;
269
267
  await jiti.evalModule(cleanHandler, {
270
268
  filename: import.meta.url,
271
269
  async: true,
272
270
  conditions: silgiConfig.conditions,
273
271
  forceTranspile: true
274
272
  });
275
- delete globalThis.__silgi_temp_obj;
276
273
  }
277
274
  }
278
275
  }
@@ -1,4 +1,4 @@
1
- const version = "0.20.4";
1
+ const version = "0.20.5";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.20.4";
1
+ const version = "0.20.5";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.20.4",
4
+ "version": "0.20.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {