@modern-js/utils 2.14.0 → 2.15.1-alpha.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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @modern-js/utils
2
2
 
3
+ ## 2.15.0
4
+
3
5
  ## 2.14.0
4
6
 
5
7
  ### Minor Changes
@@ -49,7 +49,7 @@ const getRouteId = (componentPath, routesDir, entryName) => {
49
49
  } else {
50
50
  id = `${entryName}_${pathWithoutExt}`;
51
51
  }
52
- return id;
52
+ return id.replace(/\[(.*?)\]/g, "($1)");
53
53
  };
54
54
  // Annotate the CommonJS export names for ESM import in node:
55
55
  0 && (module.exports = {
@@ -16,7 +16,7 @@ const getRouteId = (componentPath, routesDir, entryName) => {
16
16
  } else {
17
17
  id = `${entryName}_${pathWithoutExt}`;
18
18
  }
19
- return id;
19
+ return id.replace(/\[(.*?)\]/g, "($1)");
20
20
  };
21
21
  export {
22
22
  getPathWithoutExt,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.14.0",
14
+ "version": "2.15.1-alpha.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -230,9 +230,9 @@
230
230
  "typescript": "^4",
231
231
  "webpack": "^5.76.2",
232
232
  "@types/serialize-javascript": "^5.0.1",
233
- "@modern-js/types": "2.14.0",
234
- "@scripts/build": "2.14.0",
235
- "@scripts/jest-config": "2.14.0"
233
+ "@modern-js/types": "2.15.0",
234
+ "@scripts/build": "2.15.0",
235
+ "@scripts/jest-config": "2.15.0"
236
236
  },
237
237
  "sideEffects": false,
238
238
  "scripts": {