every-plugin 2.2.2 → 2.2.3

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.
@@ -3,8 +3,8 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  let node_module = require("node:module");
4
4
 
5
5
  //#region src/runtime/mf-config.ts
6
- const pkg = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("../../package.json");
7
- const PLUGIN_VERSION = pkg.version;
6
+ (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
7
+ const PLUGIN_VERSION = "2.2.3";
8
8
  const SHARE_CONFIG = {
9
9
  singleton: true,
10
10
  requiredVersion: false,
@@ -1 +1 @@
1
- {"version":3,"file":"mf-config.cjs","names":[],"sources":["../../src/runtime/mf-config.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\nexport const PLUGIN_VERSION = pkg.version;\n\nexport const SHARE_CONFIG = {\n singleton: true,\n requiredVersion: false,\n strictVersion: false,\n eager: false,\n} as const;\n\nexport const MF_SHARED_DEPS = {\n \"every-plugin\": {\n version: PLUGIN_VERSION,\n shareConfig: SHARE_CONFIG,\n },\n effect: {\n version: \"^3.21.0\",\n shareConfig: SHARE_CONFIG,\n },\n zod: {\n version: \"^4.3.6\",\n shareConfig: SHARE_CONFIG,\n },\n} as const;\n\nexport type SharedDepName = keyof typeof MF_SHARED_DEPS;\n"],"mappings":";;;;;AAGA,MAAM,mFADwC,CAC1B,qBAAqB;AACzC,MAAa,iBAAiB,IAAI;AAElC,MAAa,eAAe;CAC1B,WAAW;CACX,iBAAiB;CACjB,eAAe;CACf,OAAO;CACR;AAED,MAAa,iBAAiB;CAC5B,gBAAgB;EACd,SAAS;EACT,aAAa;EACd;CACD,QAAQ;EACN,SAAS;EACT,aAAa;EACd;CACD,KAAK;EACH,SAAS;EACT,aAAa;EACd;CACF"}
1
+ {"version":3,"file":"mf-config.cjs","names":[],"sources":["../../src/runtime/mf-config.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\ndeclare const __EVERY_PLUGIN_VERSION__: string | undefined;\n\nfunction readPackageVersion(): string {\n try {\n return (require(\"../../package.json\") as { version: string }).version;\n } catch {\n return \"0.0.0\";\n }\n}\n\nexport const PLUGIN_VERSION =\n typeof __EVERY_PLUGIN_VERSION__ === \"string\" ? __EVERY_PLUGIN_VERSION__ : readPackageVersion();\n\nexport const SHARE_CONFIG = {\n singleton: true,\n requiredVersion: false,\n strictVersion: false,\n eager: false,\n} as const;\n\nexport const MF_SHARED_DEPS = {\n \"every-plugin\": {\n version: PLUGIN_VERSION,\n shareConfig: SHARE_CONFIG,\n },\n effect: {\n version: \"^3.21.0\",\n shareConfig: SHARE_CONFIG,\n },\n zod: {\n version: \"^4.3.6\",\n shareConfig: SHARE_CONFIG,\n },\n} as const;\n\nexport type SharedDepName = keyof typeof MF_SHARED_DEPS;\n"],"mappings":";;;;;6EAE8C;AAW9C,MAAa;AAGb,MAAa,eAAe;CAC1B,WAAW;CACX,iBAAiB;CACjB,eAAe;CACf,OAAO;CACR;AAED,MAAa,iBAAiB;CAC5B,gBAAgB;EACd,SAAS;EACT,aAAa;EACd;CACD,QAAQ;EACN,SAAS;EACT,aAAa;EACd;CACD,KAAK;EACH,SAAS;EACT,aAAa;EACd;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"mf-config.d.cts","names":[],"sources":["../../src/runtime/mf-config.ts"],"mappings":";cAIa,cAAA;AAAA,cAEA,YAAA;EAAA;;;;;cAOA,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeD,aAAA,gBAA6B,cAAA"}
1
+ {"version":3,"file":"mf-config.d.cts","names":[],"sources":["../../src/runtime/mf-config.ts"],"mappings":";cAaa,cAAA;AAAA,cAGA,YAAA;EAAA;;;;;cAOA,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeD,aAAA,gBAA6B,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"mf-config.d.mts","names":[],"sources":["../../src/runtime/mf-config.ts"],"mappings":";cAIa,cAAA;AAAA,cAEA,YAAA;EAAA;;;;;cAOA,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeD,aAAA,gBAA6B,cAAA"}
1
+ {"version":3,"file":"mf-config.d.mts","names":[],"sources":["../../src/runtime/mf-config.ts"],"mappings":";cAaa,cAAA;AAAA,cAGA,YAAA;EAAA;;;;;cAOA,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAeD,aAAA,gBAA6B,cAAA"}
@@ -1,8 +1,8 @@
1
1
  import { createRequire } from "node:module";
2
2
 
3
3
  //#region src/runtime/mf-config.ts
4
- const pkg = createRequire(import.meta.url)("../../package.json");
5
- const PLUGIN_VERSION = pkg.version;
4
+ createRequire(import.meta.url);
5
+ const PLUGIN_VERSION = "2.2.3";
6
6
  const SHARE_CONFIG = {
7
7
  singleton: true,
8
8
  requiredVersion: false,
@@ -1 +1 @@
1
- {"version":3,"file":"mf-config.mjs","names":[],"sources":["../../src/runtime/mf-config.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\nconst pkg = require(\"../../package.json\") as { version: string };\nexport const PLUGIN_VERSION = pkg.version;\n\nexport const SHARE_CONFIG = {\n singleton: true,\n requiredVersion: false,\n strictVersion: false,\n eager: false,\n} as const;\n\nexport const MF_SHARED_DEPS = {\n \"every-plugin\": {\n version: PLUGIN_VERSION,\n shareConfig: SHARE_CONFIG,\n },\n effect: {\n version: \"^3.21.0\",\n shareConfig: SHARE_CONFIG,\n },\n zod: {\n version: \"^4.3.6\",\n shareConfig: SHARE_CONFIG,\n },\n} as const;\n\nexport type SharedDepName = keyof typeof MF_SHARED_DEPS;\n"],"mappings":";;;AAGA,MAAM,MADU,cAAc,OAAO,KAAK,IAAI,CAC1B,qBAAqB;AACzC,MAAa,iBAAiB,IAAI;AAElC,MAAa,eAAe;CAC1B,WAAW;CACX,iBAAiB;CACjB,eAAe;CACf,OAAO;CACR;AAED,MAAa,iBAAiB;CAC5B,gBAAgB;EACd,SAAS;EACT,aAAa;EACd;CACD,QAAQ;EACN,SAAS;EACT,aAAa;EACd;CACD,KAAK;EACH,SAAS;EACT,aAAa;EACd;CACF"}
1
+ {"version":3,"file":"mf-config.mjs","names":[],"sources":["../../src/runtime/mf-config.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\n\nconst require = createRequire(import.meta.url);\ndeclare const __EVERY_PLUGIN_VERSION__: string | undefined;\n\nfunction readPackageVersion(): string {\n try {\n return (require(\"../../package.json\") as { version: string }).version;\n } catch {\n return \"0.0.0\";\n }\n}\n\nexport const PLUGIN_VERSION =\n typeof __EVERY_PLUGIN_VERSION__ === \"string\" ? __EVERY_PLUGIN_VERSION__ : readPackageVersion();\n\nexport const SHARE_CONFIG = {\n singleton: true,\n requiredVersion: false,\n strictVersion: false,\n eager: false,\n} as const;\n\nexport const MF_SHARED_DEPS = {\n \"every-plugin\": {\n version: PLUGIN_VERSION,\n shareConfig: SHARE_CONFIG,\n },\n effect: {\n version: \"^3.21.0\",\n shareConfig: SHARE_CONFIG,\n },\n zod: {\n version: \"^4.3.6\",\n shareConfig: SHARE_CONFIG,\n },\n} as const;\n\nexport type SharedDepName = keyof typeof MF_SHARED_DEPS;\n"],"mappings":";;;AAEgB,cAAc,OAAO,KAAK,IAAI;AAW9C,MAAa;AAGb,MAAa,eAAe;CAC1B,WAAW;CACX,iBAAiB;CACjB,eAAe;CACf,OAAO;CACR;AAED,MAAa,iBAAiB;CAC5B,gBAAgB;EACd,SAAS;EACT,aAAa;EACd;CACD,QAAQ;EACN,SAAS;EACT,aAAa;EACd;CACD,KAAK;EACH,SAAS;EACT,aAAa;EACd;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "every-plugin",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -138,7 +138,6 @@
138
138
  "scripts": {
139
139
  "build": "tsdown",
140
140
  "build:test": "cd tests/fixtures/test-plugin && bun run build",
141
- "prepublishOnly": "tsdown",
142
141
  "test": "vitest run --config vitest.config.ts",
143
142
  "test:unit": "vitest run --config vitest.config.ts",
144
143
  "test:integration": "bun run build:test && vitest run --config vitest.integration.config.ts",
@@ -174,9 +173,9 @@
174
173
  "vitest": "^4.0.18"
175
174
  },
176
175
  "dependencies": {
177
- "@module-federation/enhanced": "catalog:",
178
- "@module-federation/node": "catalog:",
179
- "@module-federation/runtime-core": "catalog:",
176
+ "@module-federation/enhanced": "^2.3.2",
177
+ "@module-federation/node": "^2.7.40",
178
+ "@module-federation/runtime-core": "^2.3.2",
180
179
  "@orpc/contract": "^1.13.4",
181
180
  "@orpc/experimental-publisher": "^1.13.4",
182
181
  "@orpc/server": "^1.13.4",
@@ -199,8 +198,5 @@
199
198
  "bugs": {
200
199
  "url": "https://github.com/nearbuilders/everything-dev/issues"
201
200
  },
202
- "homepage": "https://everything.dev",
203
- "workspaces": [
204
- "tests/fixtures/*"
205
- ]
201
+ "homepage": "https://everything.dev"
206
202
  }
@@ -1,8 +1,18 @@
1
1
  import { createRequire } from "node:module";
2
2
 
3
3
  const require = createRequire(import.meta.url);
4
- const pkg = require("../../package.json") as { version: string };
5
- export const PLUGIN_VERSION = pkg.version;
4
+ declare const __EVERY_PLUGIN_VERSION__: string | undefined;
5
+
6
+ function readPackageVersion(): string {
7
+ try {
8
+ return (require("../../package.json") as { version: string }).version;
9
+ } catch {
10
+ return "0.0.0";
11
+ }
12
+ }
13
+
14
+ export const PLUGIN_VERSION =
15
+ typeof __EVERY_PLUGIN_VERSION__ === "string" ? __EVERY_PLUGIN_VERSION__ : readPackageVersion();
6
16
 
7
17
  export const SHARE_CONFIG = {
8
18
  singleton: true,