@at-field/utils 3.0.2 → 4.0.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 ADDED
@@ -0,0 +1,39 @@
1
+ # @at-field/utils
2
+
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#9](https://github.com/heavenly-zy/modern-monorepo-template/pull/9) [`db910db`](https://github.com/heavenly-zy/modern-monorepo-template/commit/db910dba04e8d654df024df48c26ca05418455bd) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新组件和工具包的 package.json,添加 exports 字段并修改主入口文件
8
+
9
+ ## 3.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 移除不必要的 changeset 命令
14
+
15
+ ## 3.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#4](https://github.com/heavenly-zy/modern-monorepo-template/pull/4) [`c8fa16b`](https://github.com/heavenly-zy/modern-monorepo-template/commit/c8fa16b126573ead0c826c5e87d66dee3777f8c5) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新 README 文档,添加快速开始和版本管理说明;重构 TODO 和 dev 文档,删除不必要的文件
20
+
21
+ ## 3.0.0
22
+
23
+ ### Major Changes
24
+
25
+ - 更新包名称为 @at-field,修改相关文档和配置
26
+
27
+ ## 3.0.0
28
+
29
+ ### Major Changes
30
+
31
+ - [`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新包名称为 @heavenly-zy,修改相关文档和配置
32
+
33
+ - [`3c0a5fd`](https://github.com/heavenly-zy/modern-monorepo-template/commit/3c0a5fd400d51babf5b59ff091ad21488de06d9c) Thanks [@heavenly-zy](https://github.com/heavenly-zy)! - 更新包名称为 @heavenly-zy,修改相关文档和配置
34
+
35
+ ## 2.0.0
36
+
37
+ ### Major Changes
38
+
39
+ - [`234e868`](https://github.com/heavenly-zy/modern-monorepo-template/commit/234e86844dd3596276feb9139d687810eacbda36) Thanks [@at-field](https://github.com/heavenly-zy)! - 测试
@@ -1,2 +1,2 @@
1
- var ModernMonorepoTemplateUtils=function(t){"use strict";return t.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.multiply=function(t,r){return t*r},t.subtract=function(t,r){return t-r},t.sum=function(t,r){return t+r},t.trim=function(t){return t.trim()},t}({});
1
+ var AtFieldUtils=function(t){"use strict";return t.capitalize=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.multiply=function(t,r){return t*r},t.subtract=function(t,r){return t-r},t.sum=function(t,r){return t+r},t.trim=function(t){return t.trim()},t}({});
2
2
  //# sourceMappingURL=index.iife.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.iife.js","sources":["../src/string.ts","../src/math.ts"],"sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function trim(str: string): string {\n return str.trim();\n}\n","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n"],"names":["str","charAt","toUpperCase","slice","a","b","trim"],"mappings":"6EAAM,SAAqBA,GACzB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,MAAM,EACjD,aCEM,SAAmBC,EAAWC,GAClC,OAAOD,EAAIC,CACb,aAEM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,QAVM,SAAcD,EAAWC,GAC7B,OAAOD,EAAIC,CACb,SDEM,SAAeL,GACnB,OAAOA,EAAIM,MACb"}
1
+ {"version":3,"file":"index.iife.js","sources":["../src/string.ts","../src/math.ts"],"sourcesContent":["export function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n\nexport function trim(str: string): string {\n return str.trim();\n}\n","export function sum(a: number, b: number): number {\n return a + b;\n}\n\nexport function multiply(a: number, b: number): number {\n return a * b;\n}\n\nexport function subtract(a: number, b: number): number {\n return a - b;\n}\n"],"names":["str","charAt","toUpperCase","slice","a","b","trim"],"mappings":"8DAAM,SAAqBA,GACzB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,MAAM,EACjD,aCEM,SAAmBC,EAAWC,GAClC,OAAOD,EAAIC,CACb,aAEM,SAAmBD,EAAWC,GAClC,OAAOD,EAAIC,CACb,QAVM,SAAcD,EAAWC,GAC7B,OAAOD,EAAIC,CACb,SDEM,SAAeL,GACnB,OAAOA,EAAIM,MACb"}
package/package.json CHANGED
@@ -1,16 +1,23 @@
1
1
  {
2
2
  "name": "@at-field/utils",
3
- "version": "3.0.2",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
- "main": "index.js",
6
5
  "type": "module",
6
+ "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
8
8
  "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs.js"
14
+ }
15
+ },
9
16
  "keywords": [],
10
17
  "author": "",
11
18
  "license": "ISC",
12
19
  "buildOptions": {
13
- "name": "ModernMonorepoTemplateUtils",
20
+ "name": "AtFieldUtils",
14
21
  "formats": [
15
22
  "esm",
16
23
  "cjs",
@@ -18,7 +25,8 @@
18
25
  ]
19
26
  },
20
27
  "files": [
21
- "dist"
28
+ "dist",
29
+ "CHANGELOG.md"
22
30
  ],
23
31
  "publishConfig": {
24
32
  "access": "public"