@yumerijs/loader 2.2.1 → 3.0.0-alpha.1

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -171,11 +171,6 @@ export class PluginLoader {
171
171
  return false;
172
172
  }
173
173
  this.plugins[pluginName] = pluginInstance;
174
- const depend = pluginInstance.depend || [];
175
- let injections = {};
176
- for (const injection of depend) {
177
- injections[injection] = this.core.getComponent(injection);
178
- }
179
174
  // ### NEW CONFIG LOGIC ###
180
175
  const rawConfig = (this.config.plugins && this.config.plugins[pluginName]) || {};
181
176
  const schema = pluginInstance.config; // The schema is exported as 'config'
@@ -183,8 +178,10 @@ export class PluginLoader {
183
178
  // Update the in-memory config with the fully resolved one
184
179
  this.config.plugins[pluginName] = finalConfig;
185
180
  // ### END NEW CONFIG LOGIC ###
186
- const context = this.getContext(pluginName, injections);
187
- context.renderer = this.core.renderers.get(pluginName);
181
+ const context = this.getContext(pluginName, {});
182
+ if (pluginInstance.render) {
183
+ context.renderer = this.core.renderers.get(pluginInstance.render || '');
184
+ }
188
185
  await this.core.plugin(pluginInstance, context, finalConfig);
189
186
  this.pluginStatus[pluginName] = "enabled" /* PluginStatus.ENABLED */;
190
187
  if (triggerPendingCheck) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yumerijs/loader",
3
- "version": "2.2.1",
3
+ "version": "3.0.0-alpha.1",
4
4
  "description": "Module loader for yumeri",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@types/js-yaml": "^4.0.9",
31
31
  "@types/node": "^22.13.10",
32
- "@yumerijs/core": "^2.0.1",
32
+ "@yumerijs/core": "^3.0.0-alpha.1",
33
33
  "esbuild-register": "^3.6.0",
34
34
  "typescript": "^5.8.2"
35
35
  },
@@ -41,6 +41,6 @@
41
41
  "js-yaml": "^4.1.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@yumerijs/core": "^2.2.1"
44
+ "@yumerijs/core": "^3.0.0-alpha.1"
45
45
  }
46
46
  }