@lingui/macro 4.0.0-next.8 → 4.0.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/dist/index.cjs CHANGED
@@ -434,6 +434,9 @@ class MacroJSX {
434
434
  );
435
435
  };
436
436
  this.replacePath = (path) => {
437
+ if (!path.isJSXElement()) {
438
+ return path;
439
+ }
437
440
  const tokens = this.tokenizeNode(path);
438
441
  const messageFormat = new ICUMessageFormat();
439
442
  const {
package/dist/index.mjs CHANGED
@@ -432,6 +432,9 @@ class MacroJSX {
432
432
  );
433
433
  };
434
434
  this.replacePath = (path) => {
435
+ if (!path.isJSXElement()) {
436
+ return path;
437
+ }
435
438
  const tokens = this.tokenizeNode(path);
436
439
  const messageFormat = new ICUMessageFormat();
437
440
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/macro",
3
- "version": "4.0.0-next.8",
3
+ "version": "4.0.0",
4
4
  "description": "Macro for generating messages in ICU MessageFormat syntax",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -58,12 +58,12 @@
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7.20.13",
60
60
  "@babel/types": "^7.20.7",
61
- "@lingui/conf": "^4.0.0-next.8",
62
- "@lingui/core": "^4.0.0-next.8",
63
- "@lingui/message-utils": "^4.0.0-next.8"
61
+ "@lingui/conf": "4.0.0",
62
+ "@lingui/core": "4.0.0",
63
+ "@lingui/message-utils": "4.0.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "@lingui/react": "4.0.0-next.8",
66
+ "@lingui/react": "4.0.0",
67
67
  "babel-plugin-macros": "2 || 3"
68
68
  },
69
69
  "devDependencies": {
@@ -75,5 +75,5 @@
75
75
  "tsd": "^0.26.1",
76
76
  "unbuild": "^1.1.2"
77
77
  },
78
- "gitHead": "c9104b3227327030db3f1c684acba65ea2c0d03f"
78
+ "gitHead": "998996381f5e5a458c2eccf650f949d8c5d8ac89"
79
79
  }