@punica/editor 1.0.8 → 1.2.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
|
@@ -499,6 +499,35 @@ declare module 'punica' {
|
|
|
499
499
|
*/
|
|
500
500
|
deactivate(extensionName: string): Promise<void>;
|
|
501
501
|
|
|
502
|
+
/**
|
|
503
|
+
* Unload an extension — the inverse of `load()`. Removes all
|
|
504
|
+
* analysis-phase registrations (metadata, runtime state, capability
|
|
505
|
+
* index, instruction classes, command-activation map, startup sets)
|
|
506
|
+
* so the manager fully forgets the name.
|
|
507
|
+
*
|
|
508
|
+
* Does NOT run runtime disposal — call `deactivate()` first.
|
|
509
|
+
* Precondition: runtime state is `loaded` or `failed` (unknown names
|
|
510
|
+
* are a no-op); rejects while `active`/`activating`/`deactivating`.
|
|
511
|
+
* The dynamically imported ES module is not evicted (inert until the
|
|
512
|
+
* next restart).
|
|
513
|
+
*/
|
|
514
|
+
unload(extensionName: string): Promise<void>;
|
|
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
|
+
|
|
502
531
|
/**
|
|
503
532
|
* Current runtime state of an extension, or undefined when not
|
|
504
533
|
* loaded.
|