Skip to content

Commit 8ab04aa

Browse files
committed
v0.12.0
1 parent 2e10c93 commit 8ab04aa

10 files changed

Lines changed: 3813 additions & 3539 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
node-version: [14.x, 16.x, 18.x, 20.x]
39+
node-version: [18.x, 20.x, 22.x]
4040
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4141
steps:
4242
- uses: actions/checkout@v3
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747
cache: 'npm'
48-
- run: npm i
48+
- run: npm ci
4949
- run: npm test
5050
# - run: npm run coveralls --if-present
5151
- run: npm run build --if-present

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint library
26+
run: npm run lint
27+
28+
- name: Test library
29+
run: npm run test
30+
31+
- name: Build library
32+
run: npm run build
33+
34+
- name: Publish to npm (Stable)
35+
uses: JS-DevTools/npm-publish@v3
36+
with:
37+
token: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
1-
# 变更日志
1+
# Changelog
2+
3+
## 0.12.0 / 2024-5-1
4+
5+
- Update jslib-base 3.0.6
26

37
## 0.11.0 / 2023-11-19
48

5-
- 升级 jslib-base 2.3.2
6-
- 支持 sourceMap
7-
- fix: 支持 node >=14.0.0
9+
- Upgrade jslib-base 2.3.2
10+
- Support sourceMap
11+
- Fix: Support node >=14.0.0
812

913
## 0.10.0 / 2023-09-23
1014

11-
- 升级最新版 jslib-base
12-
- 支持 Node.js ESM
15+
- Upgrade to the latest jslib-base
16+
- Support Node.js ESM
1317

1418
## 0.9.2 / 2019-10-10
1519

16-
- fix: 修复丢失d.ts的问题
20+
- Fix: Resolve the issue of missing d.ts
1721

1822
## 0.8.0 / 2019-6-11
1923

20-
- 严格模式下,`NaN`的返回值由`number`变更为`nan`
21-
- 严格模式下,`new Number(NaN)`的返回值由`Number`变更为`NaN`
24+
- In strict mode, return value of `NaN` changed from `number` to `nan`
25+
- In strict mode, return value of `new Number(NaN)` changed from `Number` to `NaN`
2226

2327
## 0.7.0 / 2019-3-2
2428

25-
- 增加.d.ts文件,支持ts调用
29+
- Add .d.ts file to support ts calls
2630

2731
## 0.6.0 / 2018-10-22
2832

29-
- 增加严格模式,区分数字,字符串,布尔类型的原始值和对象值
33+
- Add strict mode, distinguish between primitive values and object values for numbers, strings, and booleans
3034

3135
## 0.5.0 / 2018-10-22
3236

33-
- 添加`new A`的类型支持,由`unknow`变更为`A`
37+
- Add type support for `new A`, changed from `unknown` to `A`
3438

3539
## 0.4.1 / 2018-10-10
3640

37-
- 修复 `type(Object.create(null))` `unknown`的错误
41+
- Fix the error of `type(Object.create(null))` returning `unknown`
3842

3943
## 0.4.0 / 2018-4-6
4044

41-
- 迁移项目,更改名称
45+
- Migrate project and change name
4246

4347
## 0.3.0 / 2018-3-32
4448

45-
- 去掉babel,去掉对symbol的特殊处理
49+
- Remove babel and special handling for symbol
4650

4751
## 0.2.0 / 2018-3-31
4852

49-
- 原生支持ie6-8
53+
- Native support for IE6-8
5054

5155
## 0.1.0 / 2018-3-17
5256

53-
- 实现 type
57+
- Implement type

CHANGELOG.zh.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# 变更日志
2+
3+
## 0.12.0 / 2024-5-1
4+
5+
- update jslib-base 3.0.6
6+
7+
## 0.11.0 / 2023-11-19
8+
9+
- 升级 jslib-base 2.3.2
10+
- 支持 sourceMap
11+
- fix: 支持 node >=14.0.0
12+
13+
## 0.10.0 / 2023-09-23
14+
15+
- 升级最新版 jslib-base
16+
- 支持 Node.js ESM
17+
18+
## 0.9.2 / 2019-10-10
19+
20+
- fix: 修复丢失d.ts的问题
21+
22+
## 0.8.0 / 2019-6-11
23+
24+
- 严格模式下,`NaN`的返回值由`number`变更为`nan`
25+
- 严格模式下,`new Number(NaN)`的返回值由`Number`变更为`NaN`
26+
27+
## 0.7.0 / 2019-3-2
28+
29+
- 增加.d.ts文件,支持ts调用
30+
31+
## 0.6.0 / 2018-10-22
32+
33+
- 增加严格模式,区分数字,字符串,布尔类型的原始值和对象值
34+
35+
## 0.5.0 / 2018-10-22
36+
37+
- 添加`new A`的类型支持,由`unknow`变更为`A`
38+
39+
## 0.4.1 / 2018-10-10
40+
41+
- 修复 `type(Object.create(null))``unknown`的错误
42+
43+
## 0.4.0 / 2018-4-6
44+
45+
- 迁移项目,更改名称
46+
47+
## 0.3.0 / 2018-3-32
48+
49+
- 去掉babel,去掉对symbol的特殊处理
50+
51+
## 0.2.0 / 2018-3-31
52+
53+
- 原生支持ie6-8
54+
55+
## 0.1.0 / 2018-3-17
56+
57+
- 实现 type

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2017-2019 yanhaijing
1+
Copyright (C) 2017-2025 yanhaijing
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
44
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/type/blob/master/LICENSE)
55
[![CI](https://github.com/jsmini/type/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/type/actions/workflows/ci.yml)
6-
[![npm](https://img.shields.io/badge/npm-0.11.0-orange.svg)](https://www.npmjs.com/package/@jsmini/type)
6+
[![npm](https://img.shields.io/badge/npm-0.12.0-orange.svg)](https://www.npmjs.com/package/@jsmini/type)
77
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/type.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/type)
88
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/type.svg)](http://isitmaintained.com/project/jsmini/type 'Percentage of issues still open')
99

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](https://img.shields.io/badge/Powered%20by-jslib%20base-brightgreen.svg)](https://github.com/yanhaijing/jslib-base)
44
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jsmini/type/blob/master/LICENSE)
55
[![CI](https://github.com/jsmini/type/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jsmini/type/actions/workflows/ci.yml)
6-
[![npm](https://img.shields.io/badge/npm-0.11.0-orange.svg)](https://www.npmjs.com/package/@jsmini/type)
6+
[![npm](https://img.shields.io/badge/npm-0.12.0-orange.svg)](https://www.npmjs.com/package/@jsmini/type)
77
[![NPM downloads](http://img.shields.io/npm/dm/@jsmini/type.svg?style=flat-square)](http://www.npmtrends.com/@jsmini/type)
88
[![Percentage of issues still open](http://isitmaintained.com/badge/open/jsmini/type.svg)](http://isitmaintained.com/project/jsmini/type 'Percentage of issues still open')
99

jslib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "type",
33
"npmname": "@jsmini/type",
4+
"umdname": "jsmini_type",
45
"username": "jsmini",
5-
"type": "js",
6-
"lang": "zh"
6+
"type": "js"
77
}

0 commit comments

Comments
 (0)