@hairy/uni-lib 1.49.0 → 1.50.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.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025-PRESENT Hairyf <https://github.com/antfu>
3
+ Copyright (c) 2025-PRESENT Hairyf <https://github.com/hairyf>
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/README.md CHANGED
@@ -1,36 +1,133 @@
1
- # @hairy/vue-lib
1
+ # @hairy/uni-lib
2
2
 
3
- [![npm version][npm-version-src]][npm-version-href]
4
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
- [![bundle][bundle-src]][bundle-href]
6
- [![JSDocs][jsdocs-src]][jsdocs-href]
7
- [![License][license-src]][license-href]
3
+ <!-- automd:badges name="@hairy/uni-lib" github="hairyf/hairylib" license bundlephobia -->
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@hairy/uni-lib)](https://npmjs.com/package/@hairy/uni-lib)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@hairy/uni-lib)](https://npm.chart.dev/@hairy/uni-lib)
7
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/@hairy/uni-lib)](https://bundlephobia.com/package/@hairy/uni-lib)
8
+ [![license](https://img.shields.io/github/license/hairyf/hairylib)](https://github.com/hairyf/hairylib/blob/main/LICENSE)
9
+
10
+ <!-- /automd -->
11
+
12
+ Shared utilities targeting Uni-app / Vue runtimes.
8
13
 
9
14
  ## Install
10
15
 
16
+ <!-- automd:pm-install name="@hairy/uni-lib" -->
17
+
18
+ ```sh
19
+ # ✨ Auto-detect
20
+ npx nypm install @hairy/uni-lib
21
+
22
+ # npm
23
+ npm install @hairy/uni-lib
24
+
25
+ # yarn
26
+ yarn add @hairy/uni-lib
27
+
28
+ # pnpm
29
+ pnpm add @hairy/uni-lib
30
+
31
+ # bun
32
+ bun install @hairy/uni-lib
33
+
34
+ # deno
35
+ deno install npm:@hairy/uni-lib
11
36
  ```
12
- ni @hairy/vue-lib
37
+
38
+ <!-- /automd -->
39
+
40
+ ## API
41
+
42
+ <!-- automd:jsdocs src="./src/index.ts" -->
43
+
44
+ ### `createQuerySelector(type, mode)`
45
+
46
+ ### `useQuerySelector()`
47
+
48
+ ### `useQuerySelectorAll()`
49
+
50
+ <!-- /automd -->
51
+
52
+ ## Directory structure
53
+
54
+ <!-- automd:dir-tree imports=""maxDepth=2 -->
55
+
56
+ ```
57
+ ├── src/
58
+ │ ├── hooks/
59
+ │ │ ├── index.ts
60
+ │ │ ├── useQuerySelector.ts
61
+ │ │ └── useQuerySelectorAll.ts
62
+ │ ├── utils/
63
+ │ │ └── index.ts
64
+ │ └── index.ts
65
+ ├── test/
66
+ │ └── index.test.ts
67
+ ├── package.json
68
+ ├── README.md
69
+ ├── tsconfig.json
70
+ └── tsdown.config.ts
13
71
  ```
14
72
 
15
- ## CDN
73
+ <!-- /automd -->
74
+
75
+ ## Source
16
76
 
17
- ```html
18
- <script src="https://unpkg.com/@hairy/vue-lib"></script>
77
+ <!-- automd:file src="./src/index.ts" code lang="ts" -->
78
+
79
+ ```ts [index.ts]
80
+ export * from './hooks'
81
+ export * from './utils'
19
82
  ```
20
83
 
84
+ <!-- /automd -->
85
+
86
+ ## Contributors
87
+
88
+ <!-- automd:contributors github="hairyf/hairylib" author="Hairyf" license="MIT" -->
89
+
90
+ Published under the [MIT](https://github.com/hairyf/hairylib/blob/main/LICENSE) license.
91
+ Made by [@Hairyf](https://github.com/Hairyf) and [community](https://github.com/hairyf/hairylib/graphs/contributors) 💛
92
+ <br><br>
93
+ <a href="https://github.com/hairyf/hairylib/graphs/contributors">
94
+ <img src="https://contrib.rocks/image?repo=hairyf/hairylib" />
95
+ </a>
96
+
97
+ <!-- /automd -->
98
+
21
99
  ## License
22
100
 
23
- [MIT](./LICENSE) License © [Hairyf](https://github.com/hairyf)
101
+ <!-- automd:fetch url="gh:hairyf/hairylib/main/LICENSE" -->
102
+
103
+ MIT License
104
+
105
+ Copyright (c) 2025-PRESENT Hairyf <https://github.com/hairyf>
106
+
107
+ Permission is hereby granted, free of charge, to any person obtaining a copy
108
+ of this software and associated documentation files (the "Software"), to deal
109
+ in the Software without restriction, including without limitation the rights
110
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
111
+ copies of the Software, and to permit persons to whom the Software is
112
+ furnished to do so, subject to the following conditions:
113
+
114
+ The above copyright notice and this permission notice shall be included in all
115
+ copies or substantial portions of the Software.
116
+
117
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
118
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
119
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
120
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
121
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
122
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
123
+ SOFTWARE.
124
+
125
+ <!-- /automd -->
126
+
127
+ <!-- automd:with-automd -->
128
+
129
+ ---
24
130
 
25
- <!-- Badges -->
131
+ _🤖 auto updated with [automd](https://automd.unjs.io)_
26
132
 
27
- [npm-version-src]: https://img.shields.io/npm/v/@hairy/vue-lib?style=flat&colorA=080f12&colorB=1fa669
28
- [npm-version-href]: https://npmjs.com/package/@hairy/vue-lib
29
- [npm-downloads-src]: https://img.shields.io/npm/dm/@hairy/vue-lib?style=flat&colorA=080f12&colorB=1fa669
30
- [npm-downloads-href]: https://npmjs.com/package/@hairy/vue-lib
31
- [bundle-src]: https://img.shields.io/bundlephobia/minzip/@hairy/vue-lib?style=flat&colorA=080f12&colorB=1fa669&label=minzip
32
- [bundle-href]: https://bundlephobia.com/result?p=@hairy/vue-lib
33
- [license-src]: https://img.shields.io/github/license/hairyf/hairylib.svg?style=flat&colorA=080f12&colorB=1fa669
34
- [license-href]: https://github.com/hairyf/hairylib/blob/main/LICENSE
35
- [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
36
- [jsdocs-href]: https://www.jsdocs.io/package/@hairy/vue-lib
133
+ <!-- /automd -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hairy/uni-lib",
3
3
  "type": "module",
4
- "version": "1.49.0",
4
+ "version": "1.50.0",
5
5
  "description": "Library for vue",
6
6
  "author": "Hairyf <wwu710632@gmail.com>",
7
7
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "css-render": "^0.15.14",
45
45
  "lodash": "^4.17.21",
46
46
  "vue-demi": "latest",
47
- "@hairy/utils": "1.49.0"
47
+ "@hairy/utils": "1.50.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@dcloudio/types": "^3.4.28",