@punica/editor 1.1.0 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "type": "module",
@@ -513,6 +513,21 @@ declare module 'punica' {
513
513
  */
514
514
  unload(extensionName: string): Promise<void>;
515
515
 
516
+ /**
517
+ * Hot-swap an extension to a new version WITHOUT a process restart.
518
+ * Runs `deactivate → unload → load(newVersionUrl) → activate`. Because
519
+ * every version is served from a distinct, version-scoped URL, the fresh
520
+ * load imports new module code.
521
+ *
522
+ * Fail-safe: rejects if teardown, load, or activation fails — the caller
523
+ * must fall back to a full restart. An extension must not reload itself.
524
+ */
525
+ reload(
526
+ extensionName: string,
527
+ newVersionUrl: string,
528
+ options?: ActivationOptions
529
+ ): Promise<void>;
530
+
516
531
  /**
517
532
  * Current runtime state of an extension, or undefined when not
518
533
  * loaded.