@modern-js/server 1.0.0-rc.3 → 1.0.0-rc.8

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,6 +1,82 @@
1
1
  # @modern-js/server
2
2
 
3
+ ## 1.0.0-rc.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+ - Updated dependencies [224f7fe]
10
+ - Updated dependencies [204c626]
11
+ - @modern-js/core@1.0.0-rc.8
12
+ - @modern-js/hmr-client@1.0.0-rc.8
13
+ - @modern-js/server-plugin@1.0.0-rc.8
14
+ - @modern-js/plugin-polyfill@1.0.0-rc.8
15
+ - @modern-js/server-utils@1.0.0-rc.8
16
+ - @modern-js/utils@1.0.0-rc.8
17
+
18
+ ## 1.0.0-rc.7
19
+
20
+ ### Patch Changes
21
+
22
+ - 224f7fe: fix server route match
23
+ - 204c626: feat: initial
24
+ - Updated dependencies [224f7fe]
25
+ - Updated dependencies [204c626]
26
+ - @modern-js/core@1.0.0-rc.7
27
+ - @modern-js/hmr-client@1.0.0-rc.7
28
+ - @modern-js/server-plugin@1.0.0-rc.7
29
+ - @modern-js/plugin-polyfill@1.0.0-rc.7
30
+ - @modern-js/server-utils@1.0.0-rc.7
31
+ - @modern-js/utils@1.0.0-rc.7
32
+
33
+ ## 1.0.0-rc.6
34
+
35
+ ### Patch Changes
36
+
37
+ - 224f7fe: fix server route match
38
+ - 204c626: feat: initial
39
+ - Updated dependencies [224f7fe]
40
+ - Updated dependencies [204c626]
41
+ - @modern-js/core@1.0.0-rc.6
42
+ - @modern-js/hmr-client@1.0.0-rc.6
43
+ - @modern-js/server-plugin@1.0.0-rc.6
44
+ - @modern-js/plugin-polyfill@1.0.0-rc.6
45
+ - @modern-js/server-utils@1.0.0-rc.6
46
+ - @modern-js/utils@1.0.0-rc.6
47
+
48
+ ## 1.0.0-rc.5
49
+
50
+ ### Patch Changes
51
+
52
+ - 224f7fe: fix server route match
53
+ - 204c626: feat: initial
54
+ - Updated dependencies [224f7fe]
55
+ - Updated dependencies [204c626]
56
+ - @modern-js/core@1.0.0-rc.5
57
+ - @modern-js/hmr-client@1.0.0-rc.5
58
+ - @modern-js/server-plugin@1.0.0-rc.5
59
+ - @modern-js/plugin-polyfill@1.0.0-rc.5
60
+ - @modern-js/server-utils@1.0.0-rc.5
61
+ - @modern-js/utils@1.0.0-rc.5
62
+
63
+ ## 1.0.0-rc.4
64
+
65
+ ### Patch Changes
66
+
67
+ - fix server route match
68
+ - 204c626: feat: initial
69
+ - Updated dependencies [undefined]
70
+ - Updated dependencies [204c626]
71
+ - @modern-js/core@1.0.0-rc.4
72
+ - @modern-js/hmr-client@1.0.0-rc.4
73
+ - @modern-js/server-plugin@1.0.0-rc.4
74
+ - @modern-js/plugin-polyfill@1.0.0-rc.4
75
+ - @modern-js/server-utils@1.0.0-rc.4
76
+ - @modern-js/utils@1.0.0-rc.4
77
+
3
78
  ## 1.0.0-rc.3
79
+
4
80
  ### Patch Changes
5
81
 
6
82
  - feat: initial
@@ -64,7 +64,7 @@ export class RouteMatcher {
64
64
  const {
65
65
  urlPath
66
66
  } = this.spec;
67
- this.urlPath = urlPath === '/' ? urlPath : removeTailSlash('/');
67
+ this.urlPath = urlPath === '/' ? urlPath : removeTailSlash(urlPath);
68
68
  const useReg = regCharsDetector.test(urlPath);
69
69
 
70
70
  if (useReg) {
@@ -75,7 +75,7 @@ class RouteMatcher {
75
75
  const {
76
76
  urlPath
77
77
  } = this.spec;
78
- this.urlPath = urlPath === '/' ? urlPath : (0, _utils.removeTailSlash)('/');
78
+ this.urlPath = urlPath === '/' ? urlPath : (0, _utils.removeTailSlash)(urlPath);
79
79
  const useReg = regCharsDetector.test(urlPath);
80
80
 
81
81
  if (useReg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/server",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.8",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/js/node/index.js",
@@ -21,12 +21,12 @@
21
21
  "@babel/preset-typescript": "^7.15.0",
22
22
  "@babel/register": "^7.15.3",
23
23
  "@babel/runtime": "^7",
24
- "@modern-js/core": "^1.0.0-rc.3",
25
- "@modern-js/hmr-client": "^1.0.0-rc.3",
26
- "@modern-js/plugin-polyfill": "^1.0.0-rc.3",
27
- "@modern-js/server-plugin": "^1.0.0-rc.3",
28
- "@modern-js/server-utils": "^1.0.0-rc.3",
29
- "@modern-js/utils": "^1.0.0-rc.3",
24
+ "@modern-js/core": "^1.0.0-rc.8",
25
+ "@modern-js/hmr-client": "^1.0.0-rc.8",
26
+ "@modern-js/plugin-polyfill": "^1.0.0-rc.8",
27
+ "@modern-js/server-plugin": "^1.0.0-rc.8",
28
+ "@modern-js/server-utils": "^1.0.0-rc.8",
29
+ "@modern-js/utils": "^1.0.0-rc.8",
30
30
  "axios": "^0.21.4",
31
31
  "babel-plugin-module-resolver": "^4.1.0",
32
32
  "chokidar": "^3.5.2",
@@ -47,7 +47,7 @@
47
47
  "ws": "^8.2.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@modern-js/types": "^1.0.0-rc.3",
50
+ "@modern-js/types": "^1.0.0-rc.8",
51
51
  "@types/jest": "^26",
52
52
  "@types/lru-cache": "^5.1.1",
53
53
  "@types/mime-types": "^2.1.0",
@@ -63,8 +63,8 @@
63
63
  "@types/ws": "^7.4.7",
64
64
  "typescript": "^4",
65
65
  "webpack": "^5.54.0",
66
- "@modern-js/plugin-testing": "^1.0.0-rc.3",
67
- "@modern-js/module-tools": "^1.0.0-rc.3"
66
+ "@modern-js/plugin-testing": "^1.0.0-rc.8",
67
+ "@modern-js/module-tools": "^1.0.0-rc.8"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "webpack": "^5.54.0"
@@ -75,7 +75,7 @@
75
75
  "packageMode": "node-js"
76
76
  }
77
77
  },
78
- "publicCnfig": {
78
+ "publishConfig": {
79
79
  "registry": "https://registry.npmjs.org/",
80
80
  "access": "public"
81
81
  },
@@ -78,7 +78,7 @@ export class RouteMatcher {
78
78
  // compiler urlPath to regexp if necessary
79
79
  private setupUrlPath() {
80
80
  const { urlPath } = this.spec;
81
- this.urlPath = urlPath === '/' ? urlPath : removeTailSlash('/');
81
+ this.urlPath = urlPath === '/' ? urlPath : removeTailSlash(urlPath);
82
82
 
83
83
  const useReg = regCharsDetector.test(urlPath);
84
84
  if (useReg) {