@eventcatalog/core 3.0.0-beta.16 → 3.0.0-beta.18

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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.0.0-beta.16";
40
+ var version = "3.0.0-beta.18";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-KW5ZUJJD.js";
4
- import "../chunk-MBZDIUXZ.js";
3
+ } from "../chunk-NUF7T4KS.js";
4
+ import "../chunk-TIBH2HFY.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "3.0.0-beta.16";
109
+ var version = "3.0.0-beta.18";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-EQMIHCA5.js";
4
- import "../chunk-KW5ZUJJD.js";
5
- import "../chunk-MBZDIUXZ.js";
3
+ } from "../chunk-I4ZR6UIR.js";
4
+ import "../chunk-NUF7T4KS.js";
5
+ import "../chunk-TIBH2HFY.js";
6
6
  import "../chunk-UPONRQSN.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-KW5ZUJJD.js";
3
+ } from "./chunk-NUF7T4KS.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-MBZDIUXZ.js";
3
+ } from "./chunk-TIBH2HFY.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.0.0-beta.16";
2
+ var version = "3.0.0-beta.18";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-QTR7XW2A.js";
3
+ } from "./chunk-ZOH72FV2.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-MBZDIUXZ.js";
3
+ } from "./chunk-TIBH2HFY.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.0.0-beta.16";
28
+ var version = "3.0.0-beta.18";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-MBZDIUXZ.js";
3
+ } from "./chunk-TIBH2HFY.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
109
109
  var import_picocolors = __toESM(require("picocolors"), 1);
110
110
 
111
111
  // package.json
112
- var version = "3.0.0-beta.16";
112
+ var version = "3.0.0-beta.18";
113
113
 
114
114
  // src/constants.ts
115
115
  var VERSION = version;
@@ -743,6 +743,25 @@ var clearCore = () => {
743
743
  var checkForUpdate = () => {
744
744
  const installedVersion = getInstalledEventCatalogVersion();
745
745
  if (!installedVersion) return;
746
+ const majorVersion = parseInt(installedVersion.replace(/[^0-9.]/g, "").split(".")[0], 10);
747
+ if (majorVersion < 3) {
748
+ const v3Message = `\u{1F680} EventCatalog V3 is now available in beta!
749
+
750
+ You are currently on version ${installedVersion}.
751
+ V3 brings exciting new features and improvements.
752
+
753
+ Upgrade now: npm i @eventcatalog/core@beta`;
754
+ console.log(
755
+ (0, import_boxen.default)(v3Message, {
756
+ padding: 1,
757
+ margin: 1,
758
+ align: "center",
759
+ borderColor: "magenta",
760
+ borderStyle: "round"
761
+ })
762
+ );
763
+ return;
764
+ }
746
765
  const pkg = { name: "@eventcatalog/core", version: installedVersion };
747
766
  const notifier = (0, import_update_notifier.default)({ pkg, updateCheckInterval: 0 });
748
767
  if (notifier.update) {
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-EQMIHCA5.js";
10
- import "./chunk-KW5ZUJJD.js";
9
+ } from "./chunk-I4ZR6UIR.js";
10
+ import "./chunk-NUF7T4KS.js";
11
11
  import {
12
12
  runMigrations
13
13
  } from "./chunk-BH3JMNAV.js";
@@ -23,13 +23,13 @@ import {
23
23
  } from "./chunk-5VBIXL6C.js";
24
24
  import {
25
25
  generate
26
- } from "./chunk-QL7M5WVN.js";
26
+ } from "./chunk-XT7O6IKS.js";
27
27
  import {
28
28
  logger
29
- } from "./chunk-QTR7XW2A.js";
29
+ } from "./chunk-ZOH72FV2.js";
30
30
  import {
31
31
  VERSION
32
- } from "./chunk-MBZDIUXZ.js";
32
+ } from "./chunk-TIBH2HFY.js";
33
33
  import "./chunk-UPONRQSN.js";
34
34
 
35
35
  // src/eventcatalog.ts
@@ -117,6 +117,25 @@ var clearCore = () => {
117
117
  var checkForUpdate = () => {
118
118
  const installedVersion = getInstalledEventCatalogVersion();
119
119
  if (!installedVersion) return;
120
+ const majorVersion = parseInt(installedVersion.replace(/[^0-9.]/g, "").split(".")[0], 10);
121
+ if (majorVersion < 3) {
122
+ const v3Message = `\u{1F680} EventCatalog V3 is now available in beta!
123
+
124
+ You are currently on version ${installedVersion}.
125
+ V3 brings exciting new features and improvements.
126
+
127
+ Upgrade now: npm i @eventcatalog/core@beta`;
128
+ console.log(
129
+ boxen(v3Message, {
130
+ padding: 1,
131
+ margin: 1,
132
+ align: "center",
133
+ borderColor: "magenta",
134
+ borderStyle: "round"
135
+ })
136
+ );
137
+ return;
138
+ }
120
139
  const pkg = { name: "@eventcatalog/core", version: installedVersion };
121
140
  const notifier = updateNotifier({ pkg, updateCheckInterval: 0 });
122
141
  if (notifier.update) {
package/dist/generate.cjs CHANGED
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
73
73
  var import_picocolors = __toESM(require("picocolors"), 1);
74
74
 
75
75
  // package.json
76
- var version = "3.0.0-beta.16";
76
+ var version = "3.0.0-beta.18";
77
77
 
78
78
  // src/constants.ts
79
79
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-QL7M5WVN.js";
4
- import "./chunk-QTR7XW2A.js";
5
- import "./chunk-MBZDIUXZ.js";
3
+ } from "./chunk-XT7O6IKS.js";
4
+ import "./chunk-ZOH72FV2.js";
5
+ import "./chunk-TIBH2HFY.js";
6
6
  import "./chunk-UPONRQSN.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.0.0-beta.16";
39
+ var version = "3.0.0-beta.18";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-QTR7XW2A.js";
4
- import "../chunk-MBZDIUXZ.js";
3
+ } from "../chunk-ZOH72FV2.js";
4
+ import "../chunk-TIBH2HFY.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -232,10 +232,21 @@ const NodeGraphBuilder = ({
232
232
  };
233
233
 
234
234
  // animate messages, between views
235
+ // URL parameter takes priority over localStorage
235
236
  useEffect(() => {
236
- const storedAnimateMessages = localStorage.getItem('EventCatalog:animateMessages');
237
- if (storedAnimateMessages !== null) {
238
- setAnimateMessages(storedAnimateMessages === 'true');
237
+ const urlParams = new URLSearchParams(window.location.search);
238
+ const animateParam = urlParams.get('animate');
239
+
240
+ if (animateParam === 'true') {
241
+ setAnimateMessages(true);
242
+ } else if (animateParam === 'false') {
243
+ setAnimateMessages(false);
244
+ } else {
245
+ // Fall back to localStorage if no URL parameter
246
+ const storedAnimateMessages = localStorage.getItem('EventCatalog:animateMessages');
247
+ if (storedAnimateMessages !== null) {
248
+ setAnimateMessages(storedAnimateMessages === 'true');
249
+ }
239
250
  }
240
251
  }, []);
241
252
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "3.0.0-beta.16",
9
+ "version": "3.0.0-beta.18",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },