@monbolc/lowcode-ignitor 2.1.3 → 2.1.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.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # `@monbolc/lowcode-ignitor` — **DEPRECATED**
2
+
3
+ > ⚠️ **This package is deprecated as of 2026-06-08 (v2.2.0-rc).** The `bootstrap()` function still works but prints a deprecation warning to the console. The package will be **removed in 2.3.0**.
4
+
5
+ ## Use `@monbolc/lowcode-engine` instead
6
+
7
+ ```ts
8
+ // ❌ Old way (still works, but warns)
9
+ import { bootstrap } from '@monbolc/lowcode-ignitor';
10
+ await bootstrap({ container: '#app', schema, components });
11
+
12
+ // ✅ New way
13
+ import { init } from '@monbolc/lowcode-engine';
14
+ const engine = await init('#app', { schema, components });
15
+ ```
16
+
17
+ `@monbolc/lowcode-engine` is the L7 composition root. It re-exports `SapuEngine` (L6), wires the default preset (L7.4), and provides a real `init(container, options)` that returns the live engine.
18
+
19
+ ## Why was this deprecated?
20
+
21
+ `lowcode-ignitor` was an L0 placeholder created in v2.0.x to fill the spot the L7 engine would eventually own. Once L7 ships, the placeholder becomes a maintenance burden (two packages doing the same job). The L7 `init()` is a strict superset of `ignitor.bootstrap()`, so the migration is a one-line import change.
22
+
23
+ ## When will it be removed?
24
+
25
+ 2.3.0 (target: end of June 2026). The package will be unpublished from npm and the directory deleted. If your project still imports from `@monbolc/lowcode-ignitor`, upgrade before then.
26
+
27
+ ## See also
28
+
29
+ - `@monbolc/lowcode-engine` — the replacement
30
+ - `docs/packages/ignitor.md` — full deprecation timeline
31
+ - `docs/ROADMAP.md` — L7.6 entry
package/lib/index.d.ts CHANGED
@@ -2,10 +2,18 @@
2
2
  * @monbolc/lowcode-ignitor
3
3
  *
4
4
  * Bootstrap entry for SapuLowcodeEngine development.
5
- * This package is the L0 "ignitor" — its only job is to start a dev server
6
- * and hand off to the engine proper (L7) once that is implemented.
7
5
  *
8
- * Currently a no-op placeholder. Subsequent layers will be wired in here.
6
+ * ⚠️ DEPRECATED since 2026-06-08 (v2.2.0-rc). The L7
7
+ * `@monbolc/lowcode-engine` package is the new home for the real
8
+ * `init()` composition root. `bootstrap()` is kept as a shim that
9
+ * prints a deprecation warning and falls through to a "SapuLowcodeEngine
10
+ * not implemented" banner — same behavior as before L7.
11
+ *
12
+ * Migration:
13
+ * import { bootstrap } from '@monbolc/lowcode-ignitor'; // ❌ deprecated
14
+ * import { init } from '@monbolc/lowcode-engine'; // ✅ new
15
+ *
16
+ * The `ignitor` package will be removed in 2.3.0.
9
17
  */
10
18
  import type { IPublicApiEngine, IPublicEngineOptions } from '@monbolc/lowcode-types';
11
19
  export type { IPublicApiEngine, IPublicEngineOptions };
@@ -23,6 +31,8 @@ export interface IIgnitorContext {
23
31
  /**
24
32
  * Bootstrap the engine.
25
33
  *
34
+ * ⚠️ DEPRECATED. See the file header for the migration path.
35
+ *
26
36
  * In the current L0 state, this just creates a placeholder div.
27
37
  * Once L7 (`engine`) ships, this will hand off to the real engine.
28
38
  */
package/lib/index.js CHANGED
@@ -3,20 +3,39 @@
3
3
  * @monbolc/lowcode-ignitor
4
4
  *
5
5
  * Bootstrap entry for SapuLowcodeEngine development.
6
- * This package is the L0 "ignitor" — its only job is to start a dev server
7
- * and hand off to the engine proper (L7) once that is implemented.
8
6
  *
9
- * Currently a no-op placeholder. Subsequent layers will be wired in here.
7
+ * ⚠️ DEPRECATED since 2026-06-08 (v2.2.0-rc). The L7
8
+ * `@monbolc/lowcode-engine` package is the new home for the real
9
+ * `init()` composition root. `bootstrap()` is kept as a shim that
10
+ * prints a deprecation warning and falls through to a "SapuLowcodeEngine
11
+ * not implemented" banner — same behavior as before L7.
12
+ *
13
+ * Migration:
14
+ * import { bootstrap } from '@monbolc/lowcode-ignitor'; // ❌ deprecated
15
+ * import { init } from '@monbolc/lowcode-engine'; // ✅ new
16
+ *
17
+ * The `ignitor` package will be removed in 2.3.0.
10
18
  */
11
19
  Object.defineProperty(exports, "__esModule", { value: true });
12
20
  exports.bootstrap = bootstrap;
21
+ let hasWarnedDeprecated = false;
22
+ function warnDeprecated() {
23
+ if (hasWarnedDeprecated)
24
+ return;
25
+ hasWarnedDeprecated = true;
26
+ // eslint-disable-next-line no-console
27
+ console.warn('[lowcode-ignitor] DEPRECATED in 2.2.0. Use `import { init } from "@monbolc/lowcode-engine"` instead. The ignitor package will be removed in 2.3.0.');
28
+ }
13
29
  /**
14
30
  * Bootstrap the engine.
15
31
  *
32
+ * ⚠️ DEPRECATED. See the file header for the migration path.
33
+ *
16
34
  * In the current L0 state, this just creates a placeholder div.
17
35
  * Once L7 (`engine`) ships, this will hand off to the real engine.
18
36
  */
19
37
  async function bootstrap(options) {
38
+ warnDeprecated();
20
39
  const container = typeof options.container === 'string'
21
40
  ? document.querySelector(options.container)
22
41
  : options.container;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AA0BH,8BAoCC;AA1CD;;;;;GAKG;AACI,KAAK,UAAU,SAAS,CAAC,OAA6B;IAC3D,MAAM,SAAS,GACb,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QACnC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAc,OAAO,CAAC,SAAS,CAAC;QACxD,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAExB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,kCACE,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,eAC9D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,2CAA2C;IAC3C,+DAA+D;IAC/D,SAAS,CAAC,SAAS,GAAG;;;;;;;;;;;;;yBAaC,OAAO,CAAC,KAAK,IAAI,OAAO;;;;GAI9C,CAAC;IAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,kBAAe,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAuCH,8BAsCC;AAzED,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAEhC,SAAS,cAAc;IACrB,IAAI,mBAAmB;QAAE,OAAO;IAChC,mBAAmB,GAAG,IAAI,CAAC;IAC3B,sCAAsC;IACtC,OAAO,CAAC,IAAI,CACV,oJAAoJ,CACrJ,CAAC;AACJ,CAAC;AAkBD;;;;;;;GAOG;AACI,KAAK,UAAU,SAAS,CAAC,OAA6B;IAC3D,cAAc,EAAE,CAAC;IAEjB,MAAM,SAAS,GACb,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ;QACnC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAc,OAAO,CAAC,SAAS,CAAC;QACxD,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAExB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,kCACE,OAAO,OAAO,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,eAC9D,EAAE,CACH,CAAC;IACJ,CAAC;IAED,2CAA2C;IAC3C,+DAA+D;IAC/D,SAAS,CAAC,SAAS,GAAG;;;;;;;;;;;;;yBAaC,OAAO,CAAC,KAAK,IAAI,OAAO;;;;GAI9C,CAAC;IAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,kBAAe,EAAE,SAAS,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monbolc/lowcode-ignitor",
3
- "version": "2.1.3",
4
- "description": "SapuLowcodeEngine bootstrap dev entry (L0)",
3
+ "version": "2.1.5",
4
+ "description": "⚠️ DEPRECATED in 2.2.0 — Use @monbolc/lowcode-engine instead. Bootstrap dev entry (L0). Will be removed in 2.3.0.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.js",
@@ -22,7 +22,7 @@
22
22
  "clean": "rimraf lib es"
23
23
  },
24
24
  "dependencies": {
25
- "@monbolc/lowcode-types": "^2.1.3"
25
+ "@monbolc/lowcode-types": "^2.1.5"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.11.0",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "git@github.com:monbolc/sapu-lowcode-engine.git",
39
+ "url": "git@github.com:lir-navcoo/lowcode-engine.git",
40
40
  "directory": "packages/ignitor"
41
41
  },
42
42
  "keywords": [
@@ -45,5 +45,5 @@
45
45
  "ignitor",
46
46
  "bootstrap"
47
47
  ],
48
- "gitHead": "38941db23420bfcf36f6b58b72d7b52a5780cc3e"
48
+ "gitHead": "b23c688931a9afae9f3fc05308d587a2c053f983"
49
49
  }