@modern-js/types 2.31.2 → 2.32.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,18 @@
1
1
  # @modern-js/types
2
2
 
3
+ ## 2.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4323e68: feat: support client-data file
8
+ feat: 支持 client-data 文件
9
+
10
+ ### Patch Changes
11
+
12
+ - 6076166: fix: packaging errors found by publint
13
+
14
+ fix: 修复 publint 检测到的 packaging 问题
15
+
3
16
  ## 2.31.2
4
17
 
5
18
  ## 2.31.1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Modern.js
3
+ Copyright (c) 2021-present Modern.js
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/cli/index.d.ts CHANGED
@@ -73,6 +73,8 @@ export type NestedRoute<T = string | (() => JSX.Element)> = Merge<
73
73
  {
74
74
  type: 'nested';
75
75
  parentId?: string;
76
+ data?: string;
77
+ clientData?: string;
76
78
  children?: NestedRoute<T>[];
77
79
  filename?: string;
78
80
  _component?: string;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.31.2",
18
+ "version": "2.32.0",
19
19
  "types": "./index.d.ts",
20
20
  "exports": {
21
21
  ".": {
@@ -23,8 +23,8 @@
23
23
  "default": "./index.d.ts"
24
24
  },
25
25
  "./server": {
26
- "jsnext:source": "./server/index.d.ts",
27
26
  "types": "./server/index.d.ts",
27
+ "jsnext:source": "./server/index.d.ts",
28
28
  "default": "./server/index.d.ts"
29
29
  }
30
30
  },
@@ -45,8 +45,8 @@
45
45
  "http-proxy-middleware": "^2.0.4",
46
46
  "jest": "^29",
47
47
  "type-fest": "2.15.0",
48
- "@scripts/jest-config": "2.31.1",
49
- "@scripts/build": "2.31.1"
48
+ "@scripts/build": "2.32.0",
49
+ "@scripts/jest-config": "2.32.0"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {
package/server/utils.d.ts CHANGED
@@ -23,10 +23,10 @@ export interface ServerTiming {
23
23
  addServeTiming: (name: string, dur: number, decs?: string) => this;
24
24
  }
25
25
 
26
- export type Reporter = {
26
+ export type Reporter<C = any> = {
27
27
  sessionId?: string;
28
28
  userId?: string;
29
- client?: any;
29
+ client?: C;
30
30
 
31
31
  init: (payload: { match: any }) => void | Promise<void>;
32
32