backlog-js 0.16.0 → 0.17.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/package.json CHANGED
@@ -1,24 +1,42 @@
1
1
  {
2
2
  "name": "backlog-js",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Backlog API v2 client for browser and node",
5
- "main": "dist/backlog.min.js",
6
- "types": "dist/types/index.d.ts",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.cts",
8
+ "browser": "dist/backlog.iife.min.js",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.mts",
13
+ "default": "./dist/index.mjs"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
7
24
  "repository": {
8
25
  "type": "git",
9
26
  "url": "git://github.com/nulab/backlog-js.git"
10
27
  },
11
28
  "scripts": {
12
- "test": "mocha --timeout 10000 --require espower-typescript/guess test/test*.ts",
13
- "test-cov": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec dist/test/**/test*.js",
14
- "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
29
+ "lint": "oxlint",
30
+ "lint:fix": "oxlint --fix",
31
+ "fmt": "oxfmt --write \"src/**/*.ts\" \"test/**/*.ts\"",
32
+ "fmt:check": "oxfmt --check \"src/**/*.ts\" \"test/**/*.ts\"",
33
+ "typecheck": "tsc --noEmit",
34
+ "test": "vitest run",
35
+ "test:watch": "vitest",
36
+ "test:coverage": "vitest run --coverage",
15
37
  "clean": "/bin/rm -rf dist",
16
- "build": "npm run clean && npm run build-tsc && npm run copy-dts && npm run build-dist && npm run build-minify",
17
- "build-dist": "browserify --standalone Backlog dist/src/index.js -o dist/backlog.js",
18
- "build-minify": "uglifyjs dist/backlog.js -o dist/backlog.min.js",
19
- "build-tsc": "tsc --declaration",
20
- "copy-dts": "mkdir -p dist/types && cp -r dist/src/*.d.ts dist/types",
21
- "changelog": "ghch -w -F markdown -N ${VERSION}"
38
+ "build": "npm run clean && tsdown",
39
+ "postbuild": "cp dist/backlog.iife.js dist/backlog.js && cp dist/backlog.iife.min.js dist/backlog.min.js"
22
40
  },
23
41
  "author": "vvatanabe",
24
42
  "license": "MIT",
@@ -26,28 +44,15 @@
26
44
  "qs": "^6.12.1"
27
45
  },
28
46
  "devDependencies": {
29
- "@types/dotenv": "^6.1.1",
30
- "@types/empower": "^1.2.35",
31
- "@types/isomorphic-fetch": "0.0.39",
32
- "@types/mocha": "^10.0.7",
33
- "@types/nock": "^10.0.3",
34
- "@types/node": "^18",
35
- "@types/power-assert": "^1.5.12",
36
- "@types/power-assert-formatter": "^1.4.33",
47
+ "@types/node": "^25.2.3",
37
48
  "@types/qs": "^6.9.15",
38
- "browserify": "^17.0.0",
39
- "coveralls": "^3.1.1",
40
49
  "dotenv": "^16.4.5",
41
- "espower-typescript": "^10.0.1",
42
- "isomorphic-fetch": "^3.0.0",
43
- "isomorphic-form-data": "^2.0.0",
44
- "istanbul": "^0.4.5",
45
- "mocha": "^10.5.2",
46
- "nock": "^13.5.4",
47
- "power-assert": "^1.6.1",
50
+ "oxfmt": "^0.57.0",
51
+ "oxlint": "^1.72.0",
52
+ "tsdown": "^0.21.1",
48
53
  "typescript": "^5.5.2",
49
- "uglify-js": "^3.18.0",
50
- "undici": "^6.19.2"
54
+ "undici": "^6.19.2",
55
+ "vitest": "^4.0.18"
51
56
  },
52
57
  "keywords": [
53
58
  "nulab",
package/CHANGELOG.md DELETED
@@ -1,142 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.16.0](https://github.com/nulab/backlog-js/compare/0.15.0...0.16.0) (2026-02-09)
4
-
5
- * add document [#127](https://github.com/nulab/backlog-js/pull/127) ([katayama8000](https://github.com/katayama8000))
6
- * delete document [#128](https://github.com/nulab/backlog-js/pull/128) ([katayama8000](https://github.com/katayama8000))
7
- * Bump qs from 6.12.1 to 6.14.1 [#126](https://github.com/nulab/backlog-js/pull/126) ([dependabot[bot]](https://github.com/apps/dependabot))
8
- * Bump js-yaml [#125](https://github.com/nulab/backlog-js/pull/125) ([dependabot[bot]](https://github.com/apps/dependabot))
9
-
10
- ## [0.15.0](https://github.com/nulab/backlog-js/compare/0.14.2...0.15.0) (2025-10-28)
11
-
12
- * Update parameters to add a team [#123](https://github.com/nulab/backlog-js/pull/123) ([gamisachi](https://github.com/gamisachi))
13
-
14
- ## [0.14.2](https://github.com/nulab/backlog-js/compare/0.14.1...0.14.2) (2025-10-23)
15
-
16
- * Ensure custom-field query parameters use explicit indices [#121](https://github.com/nulab/backlog-js/pull/121) ([trknhr](https://github.com/trknhr))
17
-
18
- ## [0.14.1](https://github.com/nulab/backlog-js/compare/0.14.0...0.14.1) (2025-09-18)
19
-
20
- * Add `Remove star` [#119](https://github.com/nulab/backlog-js/pull/119) ([katayama8000](https://github.com/katayama8000))
21
-
22
- ## [0.14.0](https://github.com/nulab/backlog-js/compare/0.13.7...0.14.0) (2025-09-12)
23
-
24
- * Remove deprected methods [#117](https://github.com/nulab/backlog-js/pull/117) ([mmktomato](https://github.com/mmktomato))
25
- * Bump sha.js from 2.4.11 to 2.4.12 [#116](https://github.com/nulab/backlog-js/pull/116) ([dependabot[bot]](https://github.com/apps/dependabot))
26
- * Bump cipher-base from 1.0.4 to 1.0.6 [#115](https://github.com/nulab/backlog-js/pull/115) ([dependabot[bot]](https://github.com/apps/dependabot))
27
-
28
- ## [0.13.7](https://github.com/nulab/backlog-js/compare/0.13.6...0.13.7) (2025-08-21)
29
-
30
- * Add hasDueDate params [#113](https://github.com/nulab/backlog-js/pull/113) ([katayama8000](https://github.com/katayama8000))
31
-
32
- ## [0.13.6](https://github.com/nulab/backlog-js/compare/0.13.5...0.13.6) (2025-07-01)
33
-
34
- * Bump pbkdf2 from 3.1.1 to 3.1.3 [#110](https://github.com/nulab/backlog-js/pull/110) ([dependabot[bot]](https://github.com/apps/dependabot))
35
- * Bump undici from 6.21.1 to 6.21.2 [#105](https://github.com/nulab/backlog-js/pull/105) ([dependabot[bot]](https://github.com/apps/dependabot))
36
- * feat(api): add support for document-related endpoints [#109](https://github.com/nulab/backlog-js/pull/109) ([trknhr](https://github.com/trknhr))
37
-
38
- ## [0.13.5](https://github.com/nulab/backlog-js/compare/0.13.4...0.13.5) (2025-06-17)
39
-
40
- * Add missing params for watching list [#106](https://github.com/nulab/backlog-js/pull/106) ([takuji](https://github.com/takuji))
41
-
42
- ## [0.13.4](https://github.com/nulab/backlog-js/compare/0.13.3...0.13.4) (2025-05-07)
43
-
44
- * Bump undici from 6.19.2 to 6.21.1 [#101](https://github.com/nulab/backlog-js/pull/101) ([dependabot[bot]](https://github.com/apps/dependabot))
45
- * Bump elliptic from 6.6.0 to 6.6.1 [#103](https://github.com/nulab/backlog-js/pull/103) ([dependabot[bot]](https://github.com/apps/dependabot))
46
- * Bump serialize-javascript and mocha [#102](https://github.com/nulab/backlog-js/pull/102) ([dependabot[bot]](https://github.com/apps/dependabot))
47
- * Bump elliptic from 6.5.4 to 6.6.0 [#98](https://github.com/nulab/backlog-js/pull/98) ([dependabot[bot]](https://github.com/apps/dependabot))
48
- * Handle 204 No Content responses safely in parseJSON [#100](https://github.com/nulab/backlog-js/pull/100) ([trknhr](https://github.com/trknhr))
49
-
50
- ## [0.13.3](https://github.com/nulab/backlog-js/compare/0.13.2...0.13.3) (2024-07-18)
51
-
52
- * Add type annotation for parameters [#93](https://github.com/nulab/backlog-js/pull/93) ([mmktomato](https://github.com/mmktomato))
53
-
54
- ## [0.13.2](https://github.com/nulab/backlog-js/compare/0.13.1...0.13.2) (2024-07-01)
55
-
56
- * Rename `deleteIssuesCount` to `deleteIssue` [#91](https://github.com/nulab/backlog-js/pull/91) ([mmktomato](https://github.com/mmktomato))
57
- * Bump undici from 5.19.1 to 5.26.2 [#82](https://github.com/nulab/backlog-js/pull/82) ([dependabot[bot]](https://github.com/apps/dependabot))
58
- * Bump browserify-sign from 4.2.1 to 4.2.2 [#83](https://github.com/nulab/backlog-js/pull/83) ([dependabot[bot]](https://github.com/apps/dependabot))
59
-
60
- ## [0.13.1](https://github.com/nulab/backlog-js/compare/0.13.0...0.13.1) (2023-07-21)
61
-
62
- * Fix Issue and PullRequest type #79 [#80](https://github.com/nulab/backlog-js/pull/80) ([mmktomato](https://github.com/mmktomato))
63
-
64
- ## [0.13.0](https://github.com/nulab/backlog-js/compare/0.12.6...0.13.0) (2023-06-02)
65
-
66
- * add type annotation for response [#77](https://github.com/nulab/backlog-js/pull/77) ([mmktomato](https://github.com/mmktomato))
67
- * Bump json-schema and jsprim [#76](https://github.com/nulab/backlog-js/pull/76) ([dependabot[bot]](https://github.com/apps/dependabot))
68
- * Bump minimist and mkdirp [#75](https://github.com/nulab/backlog-js/pull/75) ([dependabot[bot]](https://github.com/apps/dependabot))
69
- * Bump undici from 5.8.1 to 5.19.1 [#74](https://github.com/nulab/backlog-js/pull/74) ([dependabot[bot]](https://github.com/apps/dependabot))
70
- * Bump minimatch from 3.0.4 to 3.1.2 [#72](https://github.com/nulab/backlog-js/pull/72) ([dependabot[bot]](https://github.com/apps/dependabot))
71
- * Add Node.js v18 support to CI [#70](https://github.com/nulab/backlog-js/pull/70) ([mmktomato](https://github.com/mmktomato))
72
- * Remove es6-promise [#69](https://github.com/nulab/backlog-js/pull/69) ([mmktomato](https://github.com/mmktomato))
73
- * Bump shell-quote from 1.7.2 to 1.7.3 [#68](https://github.com/nulab/backlog-js/pull/68) ([dependabot[bot]](https://github.com/apps/dependabot))
74
- * Removed DefinitelyTyped badge [#67](https://github.com/nulab/backlog-js/pull/67) ([mmktomato](https://github.com/mmktomato))
75
-
76
- ## [0.12.6](https://github.com/nulab/backlog-js/compare/0.12.5...0.12.6) (2022-05-11)
77
-
78
- * Bump ansi-regex from 5.0.0 to 5.0.1 [#62](https://github.com/nulab/backlog-js/pull/62) ([dependabot[bot]](https://github.com/apps/dependabot))
79
- * Maintain CI's node versions [#64](https://github.com/nulab/backlog-js/pull/64) ([mmktomato](https://github.com/mmktomato))
80
- * Bump dependencies [#61](https://github.com/nulab/backlog-js/pull/61) ([mmktomato](https://github.com/mmktomato))
81
- * Distribute .d.ts files [#59](https://github.com/nulab/backlog-js/pull/59) ([mmktomato](https://github.com/mmktomato))
82
-
83
- ## [0.12.5](https://github.com/nulab/backlog-js/compare/0.12.4...0.12.5) (2022-01-28)
84
-
85
- * Bump cached-path-relative from 1.0.2 to 1.1.0 [#56](https://github.com/nulab/backlog-js/pull/56) ([dependabot[bot]](https://github.com/apps/dependabot))
86
- * Bump node-fetch from 2.6.1 to 2.6.7 [#55](https://github.com/nulab/backlog-js/pull/55) ([dependabot[bot]](https://github.com/apps/dependabot))
87
- * No npx in scripts [#54](https://github.com/nulab/backlog-js/pull/54) ([mmktomato](https://github.com/mmktomato))
88
- * Remove unnecessary namespace (global) [#53](https://github.com/nulab/backlog-js/pull/53) ([mmktomato](https://github.com/mmktomato))
89
- * Use minified script [#52](https://github.com/nulab/backlog-js/pull/52) ([mmktomato](https://github.com/mmktomato))
90
- * Generate d.ts automatically [#51](https://github.com/nulab/backlog-js/pull/51) ([mmktomato](https://github.com/mmktomato))
91
- * Bump path-parse from 1.0.6 to 1.0.7 [#49](https://github.com/nulab/backlog-js/pull/49) ([dependabot[bot]](https://github.com/apps/dependabot))
92
-
93
- ## [0.12.4](https://github.com/nulab/backlog-js/compare/0.12.3...0.12.4) (2021-08-10)
94
-
95
- * Add return type [#47](https://github.com/nulab/backlog-js/pull/47) ([ohyama](https://github.com/ohyama))
96
-
97
- ## [0.12.3](https://github.com/nulab/backlog-js/compare/0.12.2...0.12.3) (2021-07-08)
98
-
99
- * string and number for IdOrKey parameters [#44](https://github.com/nulab/backlog-js/pull/44) ([mmktomato](https://github.com/mmktomato))
100
- * Fix type bugs [#43](https://github.com/nulab/backlog-js/pull/43) ([mmktomato](https://github.com/mmktomato))
101
-
102
- ## [0.12.2](https://github.com/nulab/backlog-js/compare/0.12.1...0.12.2) (2021-05-31)
103
-
104
- * Add GET /api/v2/rateLimit [#38](https://github.com/nulab/backlog-js/pull/38) ([mmktomato](https://github.com/mmktomato))
105
- * Bump handlebars from 4.7.6 to 4.7.7 [#37](https://github.com/nulab/backlog-js/pull/37) ([dependabot[bot]](https://github.com/apps/dependabot))
106
- * Cleanup published files [#35](https://github.com/nulab/backlog-js/pull/35) ([mmktomato](https://github.com/mmktomato))
107
- * Remove Travis CI [#34](https://github.com/nulab/backlog-js/pull/34) ([mmktomato](https://github.com/mmktomato))
108
-
109
- ## [0.12.1](https://github.com/nulab/backlog-js/compare/0.12.0...0.12.1) (2021-04-01)
110
-
111
- * Bump npm libraries [#30](https://github.com/nulab/backlog-js/pull/30) ([mmktomato](https://github.com/mmktomato))
112
- * Migrate GitHub Action [#27](https://github.com/nulab/backlog-js/pull/27) ([odanado](https://github.com/odanado))
113
-
114
- ## [0.12.0](https://github.com/nulab/backlog-js/compare/0.11.0...0.12.0) (2021-01-08)
115
-
116
- * Add missing endpoints [#25](https://github.com/nulab/backlog-js/pull/25) ([mmktomato](https://github.com/mmktomato))
117
- * Fix url and parameter [#24](https://github.com/nulab/backlog-js/pull/24) ([mmktomato](https://github.com/mmktomato))
118
- * Fix wrong path and params #20 [#21](https://github.com/nulab/backlog-js/pull/21) ([mmktomato](https://github.com/mmktomato))
119
-
120
- ## [0.11.0](https://github.com/nulab/backlog-js/compare/0.10.0...0.11.0) (2020-10-25)
121
-
122
- * Bump cached-path-relative from 1.0.1 to 1.0.2 [#17](https://github.com/nulab/backlog-js/pull/17) ([dependabot[bot]](https://github.com/apps/dependabot))
123
- * Bump js-yaml from 3.12.0 to 3.14.0 [#18](https://github.com/nulab/backlog-js/pull/18) ([dependabot[bot]](https://github.com/apps/dependabot))
124
- * Bump elliptic from 6.4.1 to 6.5.3 [#12](https://github.com/nulab/backlog-js/pull/12) ([dependabot[bot]](https://github.com/apps/dependabot))
125
- * Bump acorn from 5.7.2 to 5.7.4 [#13](https://github.com/nulab/backlog-js/pull/13) ([dependabot[bot]](https://github.com/apps/dependabot))
126
- * Bump handlebars from 4.0.11 to 4.7.6 [#14](https://github.com/nulab/backlog-js/pull/14) ([dependabot[bot]](https://github.com/apps/dependabot))
127
- * Bump lodash from 4.17.10 to 4.17.20 [#15](https://github.com/nulab/backlog-js/pull/15) ([dependabot[bot]](https://github.com/apps/dependabot))
128
- * Encode arguments [#16](https://github.com/nulab/backlog-js/pull/16) ([mmktomato](https://github.com/mmktomato))
129
- * Fix conflict: Typescript3 [#10](https://github.com/nulab/backlog-js/pull/10) ([mmktomato](https://github.com/mmktomato))
130
- * Fix broken link in README.md [#9](https://github.com/nulab/backlog-js/pull/9) ([mongolyy](https://github.com/mongolyy))
131
-
132
- ## [0.10.0](https://github.com/nulab/backlog-js/compare/0.9.1...0.10.0) (2020-08-29)
133
-
134
- * Bump TypeScript to v2.9 / Use @types/isomorphic-fetch [#8](https://github.com/nulab/backlog-js/pull/8) ([toshimaru](https://github.com/toshimaru))
135
- * fix typo in README.md [#5](https://github.com/nulab/backlog-js/pull/5) ([inokappa](https://github.com/inokappa))
136
- * add Content-type: application/x-www-form-urlencoded [#6](https://github.com/nulab/backlog-js/pull/6) ([mdkn](https://github.com/mdkn))
137
-
138
- ## [0.9.1](https://github.com/nulab/backlog-js/compare/0.9.0...0.9.1) (2016-09-05)
139
-
140
- * Fix repo URL in package.json [#1](https://github.com/nulab/backlog-js/pull/1) ([pdehaan](https://github.com/pdehaan))
141
-
142
- ## [0.9.0](https://github.com/nulab/backlog-js/compare/a7fd61ed6d08...0.9.0) (2016-09-03)