@kirill.konshin/utils 0.0.11 → 0.0.13

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.
@@ -1,12 +1,12 @@
1
1
  vite v6.0.11 building SSR bundle for production...
2
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/core
3
2
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/bootstrap
4
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron
5
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/mui
6
3
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron-builder
4
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/core
5
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/next
7
6
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/react-native
8
7
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/tailwind
9
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/next
8
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/mui
9
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron
10
10
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/react
11
11
  transforming...
12
12
  ✓ 50 modules transformed.
@@ -35,7 +35,7 @@ rendering chunks...
35
35
  dist/core/index.js 0.56 kB │ map: 0.09 kB
36
36
  dist/react/useFetch.js 0.56 kB │ map: 1.70 kB
37
37
  dist/mui/formControlFieldset.js 0.64 kB │ map: 1.23 kB
38
- dist/next/appLink.js 0.75 kB │ map: 1.55 kB
38
+ dist/next/appLink.js 0.75 kB │ map: 1.58 kB
39
39
  dist/core/mutex.js 0.76 kB │ map: 1.19 kB
40
40
  dist/bootstrap/error.js 0.78 kB │ map: 1.66 kB
41
41
  dist/bootstrap/field.js 0.79 kB │ map: 1.56 kB
@@ -61,7 +61,7 @@ rendering chunks...
61
61
  dist/bootstrap/screen.js 3.37 kB │ map: 7.04 kB
62
62
  dist/electron/createWindow.js 5.39 kB │ map: 10.88 kB
63
63
  dist/core/worker.js 7.45 kB │ map: 15.67 kB
64
- [vite:dts] Declaration files built in 5157ms.
64
+ [vite:dts] Declaration files built in 5191ms.
65
65
 
66
- ✓ built in 5.43s
66
+ ✓ built in 5.46s
67
67
  Updated package.json with exports
@@ -1,11 +1,11 @@
1
- [?25lcreate succeeded: /home/runner/work/utils/utils/packages/utils/src/core
2
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/bootstrap
3
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron-builder
1
+ [?25lcreate succeeded: /home/runner/work/utils/utils/packages/utils/src/bootstrap
4
2
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron
5
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/next
3
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/electron-builder
6
4
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/mui
7
- create succeeded: /home/runner/work/utils/utils/packages/utils/src/tailwind
5
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/next
8
6
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/react-native
7
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/tailwind
8
+ create succeeded: /home/runner/work/utils/utils/packages/utils/src/core
9
9
  create succeeded: /home/runner/work/utils/utils/packages/utils/src/react
10
10
 
11
11
   RUN  v3.0.4 /home/runner/work/utils/utils/packages/utils
@@ -24,8 +24,8 @@ create succeeded: /home/runner/work/utils/utils/packages/utils/src/react
24
24
 
25
25
   Test Files  1 passed (1)
26
26
   Tests  4 passed (4)
27
-  Start at  05:56:21
28
-  Duration  884ms (transform 44ms, setup 0ms, collect 44ms, tests 10ms, environment 0ms, prepare 69ms)
27
+  Start at  06:11:35
28
+  Duration  866ms (transform 48ms, setup 0ms, collect 43ms, tests 10ms, environment 0ms, prepare 73ms)
29
29
 
30
30
   % Coverage report from v8
31
31
  -------------------|---------|----------|---------|---------|-------------------
@@ -88,7 +88,7 @@ All files | 3.28 | 63.82 | 53.08 | 3.28 |
88
88
  index.ts | 0 | 0 | 0 | 0 | 1-4
89
89
  readOnly.tsx | 0 | 100 | 100 | 0 | 2-5
90
90
  utils/src/next | 0 | 66.66 | 66.66 | 0 |
91
- appLink.tsx | 0 | 100 | 100 | 0 | 4-39
91
+ appLink.tsx | 0 | 100 | 100 | 0 | 4-40
92
92
  index.ts | 0 | 0 | 0 | 0 | 1-5
93
93
  measure.ts | 0 | 0 | 0 | 0 | 1-7
94
94
  noSSR.tsx | 0 | 100 | 100 | 0 | 3-17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @kirill.konshin/utils
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Exports
8
+
9
+ ## 0.0.12
10
+
11
+ ### Patch Changes
12
+
13
+ - AppLink types
14
+
3
15
  ## 0.0.11
4
16
 
5
17
  ### Patch Changes
@@ -1,8 +1,8 @@
1
1
  import { ComponentProps, FC } from 'react';
2
- import { default as Link } from 'next/link';
2
+ import { default as Link, LinkProps } from 'next/link';
3
3
  export declare const AppLink: FC<{
4
4
  children: any;
5
5
  exact?: boolean;
6
6
  activeClassName?: any;
7
- } & ComponentProps<typeof Link>>;
7
+ } & LinkProps & ComponentProps<typeof Link>>;
8
8
  //# sourceMappingURL=appLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"appLink.d.ts","sourceRoot":"","sources":["../../src/next/appLink.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,eAAO,MAAM,OAAO,EAAE,EAAE,CACpB;IACI,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,GAAG,CAAC;CACzB,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAyBlC,CAAC"}
1
+ {"version":3,"file":"appLink.d.ts","sourceRoot":"","sources":["../../src/next/appLink.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAI5C,eAAO,MAAM,OAAO,EAAE,EAAE,CACpB;IACI,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,GAAG,CAAC;CACzB,GAAG,SAAS,GACT,cAAc,CAAC,OAAO,IAAI,CAAC,CAyBlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"appLink.js","sources":["../../src/next/appLink.tsx"],"sourcesContent":["'use client';\n\nimport React, { ComponentProps, FC } from 'react';\nimport { usePathname } from 'next/navigation';\nimport Link from 'next/link';\nimport clsx from 'clsx';\n\n//TODO Test this\nexport const AppLink: FC<\n {\n children: any;\n exact?: boolean;\n activeClassName?: any;\n } & ComponentProps<typeof Link>\n> = function AppLink({\n href,\n children,\n className = '',\n activeClassName = '',\n prefetch = false, // set explicit default\n exact = false,\n ...props\n}) {\n const pathname = usePathname();\n const hrefPath = typeof href === 'string' ? href : href.pathname || '/';\n\n return (\n <Link\n {...props}\n href={href}\n className={clsx(className, {\n [activeClassName]: (!exact && pathname.startsWith(hrefPath)) || (exact && pathname === hrefPath),\n })}\n prefetch={prefetch}\n >\n {children}\n </Link>\n );\n};\n"],"names":["AppLink"],"mappings":";;;;AAQa,MAAA,UAMT,SAASA,SAAQ;AAAA,EACjB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,WAAW;AAAA;AAAA,EACX,QAAQ;AAAA,EACR,GAAG;AACP,GAAG;AACC,QAAM,WAAW,YAAY;AAC7B,QAAM,WAAW,OAAO,SAAS,WAAW,OAAO,KAAK,YAAY;AAGhE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACvB,CAAC,eAAe,GAAI,CAAC,SAAS,SAAS,WAAW,QAAQ,KAAO,SAAS,aAAa;AAAA,MAAA,CAC1F;AAAA,MACD;AAAA,MAEC;AAAA,IAAA;AAAA,EACL;AAER;"}
1
+ {"version":3,"file":"appLink.js","sources":["../../src/next/appLink.tsx"],"sourcesContent":["'use client';\n\nimport React, { ComponentProps, FC } from 'react';\nimport { usePathname } from 'next/navigation';\nimport Link, { LinkProps } from 'next/link';\nimport clsx from 'clsx';\n\n//TODO Test this\nexport const AppLink: FC<\n {\n children: any;\n exact?: boolean;\n activeClassName?: any;\n } & LinkProps &\n ComponentProps<typeof Link>\n> = function AppLink({\n href,\n children,\n className = '',\n activeClassName = '',\n prefetch = false, // set explicit default\n exact = false,\n ...props\n}) {\n const pathname = usePathname();\n const hrefPath = typeof href === 'string' ? href : href.pathname || '/';\n\n return (\n <Link\n {...props}\n href={href}\n className={clsx(className, {\n [activeClassName]: (!exact && pathname.startsWith(hrefPath)) || (exact && pathname === hrefPath),\n })}\n prefetch={prefetch}\n >\n {children}\n </Link>\n );\n};\n"],"names":["AppLink"],"mappings":";;;;AAQa,MAAA,UAOT,SAASA,SAAQ;AAAA,EACjB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,WAAW;AAAA;AAAA,EACX,QAAQ;AAAA,EACR,GAAG;AACP,GAAG;AACC,QAAM,WAAW,YAAY;AAC7B,QAAM,WAAW,OAAO,SAAS,WAAW,OAAO,KAAK,YAAY;AAGhE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACvB,CAAC,eAAe,GAAI,CAAC,SAAS,SAAS,WAAW,QAAQ,KAAO,SAAS,aAAa;AAAA,MAAA,CAC1F;AAAA,MACD;AAAA,MAEC;AAAA,IAAA;AAAA,EACL;AAER;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kirill.konshin/utils",
3
3
  "description": "Utilities",
4
- "version": "0.0.11",
4
+ "version": "0.0.13",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "----- BUILD -----": "",
@@ -10,7 +10,7 @@
10
10
  "build:index": "cti create ./src/*",
11
11
  "build:check-types": "attw --pack .",
12
12
  "start": "yarn build --watch",
13
- "wait": "wait-on ./dist/core/index.mjs",
13
+ "wait": "wait-on ./dist/core/index.js",
14
14
  "----- TEST -----": "",
15
15
  "test": "vitest run --coverage",
16
16
  "test:watch": "vitest watch --coverage",
@@ -116,66 +116,66 @@
116
116
  "exports": {
117
117
  "./tailwind": {
118
118
  "import": {
119
- "import": "./dist/tailwind/index.mjs",
119
+ "import": "./dist/tailwind/index.js",
120
120
  "types": "./dist/tailwind/index.d.ts"
121
121
  }
122
122
  },
123
123
  "./react-native": {
124
124
  "import": {
125
- "import": "./dist/react-native/index.mjs",
125
+ "import": "./dist/react-native/index.js",
126
126
  "types": "./dist/react-native/index.d.ts"
127
127
  }
128
128
  },
129
129
  "./react": {
130
130
  "import": {
131
- "import": "./dist/react/index.mjs",
131
+ "import": "./dist/react/index.js",
132
132
  "types": "./dist/react/index.d.ts"
133
133
  }
134
134
  },
135
135
  "./next": {
136
136
  "import": {
137
- "import": "./dist/next/index.mjs",
137
+ "import": "./dist/next/index.js",
138
138
  "types": "./dist/next/index.d.ts"
139
139
  }
140
140
  },
141
141
  "./mui": {
142
142
  "import": {
143
- "import": "./dist/mui/index.mjs",
143
+ "import": "./dist/mui/index.js",
144
144
  "types": "./dist/mui/index.d.ts"
145
145
  }
146
146
  },
147
147
  "./electron-builder": {
148
148
  "import": {
149
- "import": "./dist/electron-builder/index.mjs",
149
+ "import": "./dist/electron-builder/index.js",
150
150
  "types": "./dist/electron-builder/index.d.ts"
151
151
  }
152
152
  },
153
153
  "./electron": {
154
154
  "import": {
155
- "import": "./dist/electron/index.mjs",
155
+ "import": "./dist/electron/index.js",
156
156
  "types": "./dist/electron/index.d.ts"
157
157
  }
158
158
  },
159
159
  "./core": {
160
160
  "import": {
161
- "import": "./dist/core/index.mjs",
161
+ "import": "./dist/core/index.js",
162
162
  "types": "./dist/core/index.d.ts"
163
163
  }
164
164
  },
165
165
  "./bootstrap": {
166
166
  "import": {
167
- "import": "./dist/bootstrap/index.mjs",
167
+ "import": "./dist/bootstrap/index.js",
168
168
  "types": "./dist/bootstrap/index.d.ts"
169
169
  }
170
170
  },
171
171
  ".": {
172
172
  "import": {
173
- "import": "./dist/core/index.mjs",
173
+ "import": "./dist/core/index.js",
174
174
  "types": "./dist/core/index.d.ts"
175
175
  }
176
176
  }
177
177
  },
178
- "main": "./dist/core/index.mjs",
179
- "module": "./dist/core/index.mjs",
178
+ "main": "./dist/core/index.js",
179
+ "module": "./dist/core/index.js",
180
180
  "types": "./dist/core/index.d.ts"
181
181
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React, { ComponentProps, FC } from 'react';
4
4
  import { usePathname } from 'next/navigation';
5
- import Link from 'next/link';
5
+ import Link, { LinkProps } from 'next/link';
6
6
  import clsx from 'clsx';
7
7
 
8
8
  //TODO Test this
@@ -11,7 +11,8 @@ export const AppLink: FC<
11
11
  children: any;
12
12
  exact?: boolean;
13
13
  activeClassName?: any;
14
- } & ComponentProps<typeof Link>
14
+ } & LinkProps &
15
+ ComponentProps<typeof Link>
15
16
  > = function AppLink({
16
17
  href,
17
18
  children,
package/vite.exports.ts CHANGED
@@ -16,8 +16,8 @@ export const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
16
16
  export const rootPkg = JSON.parse(fs.readFileSync(path.resolve('../../package.json'), 'utf-8'));
17
17
 
18
18
  export const formats = {
19
- // cjs: ['require', 'js', 'd.ts'],
20
- esm: ['import', 'mjs', 'd.ts'],
19
+ // cjs: ['require', 'cjs', 'd.ts'],
20
+ esm: ['import', 'js', 'd.ts'],
21
21
  };
22
22
 
23
23
  export const entryGlob = 'src/*/index.ts';