Releases: jaywcjlove/mocker-api
v3.0.2
Documentation v3.0.2: https://raw.githack.com/jaywcjlove/mocker-api/3a616fe/index.html
Comparing Changes: v3.0.1...v3.0.2
npm i [email protected]
- 📖 doc: update document. 2737cda @jaywcjlove
- 💄 chore: move type dependencies to devDependencies in package.json. e4a2d07 @jaywcjlove
v3.0.1
Documentation v3.0.1: https://raw.githack.com/jaywcjlove/mocker-api/c050268/index.html
Comparing Changes: v3.0.1...v3.0.1
npm i mocker-api@
v3.0.0
Documentation v3.0.0: https://raw.githack.com/jaywcjlove/mocker-api/3e4dce7/index.html
Comparing Changes: v2.10.0...v3.0.0
npm i mocker-api@
- 📖 doc: update document.
- 🐞 fix: resolve issues caused by path-to-regexp. (#335)
- 🆎 type: fix pathToRegexp type error. #335
- 💄 chore(deps): update dependency html-webpack-plugin to ~5.6.0 (#318)
- 🐞 fix(deps): update dependency path-to-regexp to v8 (#335)
- 🆎 type: fix watch option type error. #334
- 🐞 fix(deps): update dependency chokidar to v4 (#334)
After upgrading to path-to-regexp v8, changes were introduced to proxy and mock API routes. The new version enforces stricter syntax rules, eliminates ambiguous patterns, and reserves specific characters to improve clarity. Additionally, updates are required for optional, repeating, or escaped parameters.
- use parameters instead (.*)
*path
, support v3.0.0+
-'GET /api/:owner/:repo/raw/:ref/(.*)'
+'GET /api/:owner/:repo/raw/:ref/*path'
-'GET /api/:owner/:repo/raw/:ref/(.*)': (req, res) => {
+'GET /api/:owner/:repo/raw/:ref/*path': (req, res) => {
const { owner, repo, ref } = req.params;
// http://localhost:8081/api/admin/webpack-mock-api/raw/master/add/ddd.md
// owner => admin
// repo => webpack-mock-api
// ref => master
- // req.params[0] => add/ddd.md
+ // req.params.path => add/ddd.md
return res.json({
id: 1,
owner, repo, ref,
- path: req.params[0]
+ path: req.params.path
});
},
v2.10.0
Documentation v2.10.0: https://raw.githack.com/jaywcjlove/mocker-api/e87103a/index.html
Comparing Changes: v2.10.0...v2.10.0
npm i mocker-api@
v2.9.11
Documentation v2.9.11: https://raw.githack.com/jaywcjlove/mocker-api/a3d85da/index.html
Comparing Changes: v2.9.11...v2.9.11
npm i mocker-api@
v2.9.10
Documentation v2.9.10: https://raw.githack.com/jaywcjlove/mocker-api/83e1c19/index.html
Comparing Changes: v2.9.10...v2.9.10
npm i mocker-api@
v2.9.9
Documentation v2.9.9: https://raw.githack.com/jaywcjlove/mocker-api/ba4e628/index.html
Comparing Changes: v2.9.8...v2.9.9
npm i [email protected]
- 💄 chore(deps): update dependency webpack to ~5.76.0 (#304) e7c1182 @renovate-bot
- 🐞 fix(deps): update dependency @testing-library/react to v14 (#303) 51c8188 @renovate-bot
- 💄 chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#301) 163cb37 @dependabot-bot
- 🐞 fix(deps): update dependency @types/node to ~18.14.0 (#302) a8c430b @renovate-bot
- 💄 chore(deps): bump json5 from 1.0.1 to 1.0.2 (#300) 33e1633 @dependabot-bot
- 💄 chore: ignore package-lock.json file. 14d9d73 @jaywcjlove
- 💄 chore(deps): update dependency tsbb to v4 #308 eeb8c78 @jaywcjlove
- 💄 chore: update workflows config. dbc8ec5 @jaywcjlove
- 💄 chore: add engines feild in package.json c044955 @jaywcjlove
- 💄 chore: update workflows config. 37c7faf @jaywcjlove
- 📖 doc: Update README.md 23ad2da @jaywcjlove
- 💄 chore: update FUNDING.yml dc00f91 @jaywcjlove
- 💢 ci: update workflows config. 3d495d5 @jaywcjlove
v2.9.8
Documentation v2.9.8: https://raw.githack.com/jaywcjlove/mocker-api/be64e9f/index.html
Comparing Changes: v2.9.7...v2.9.8
npm i [email protected]
- 🐞 fix: remove deprecated api. afc9531 @jaywcjlove
v2.9.7
Documentation v2.9.7: https://raw.githack.com/jaywcjlove/mocker-api/b461ffe/index.html
Comparing Changes: v2.9.6...v2.9.7
npm i [email protected]
- 🐞 fix: fix delay undefined. #289 148a666 @jaywcjlove
- 📖 doc: Update README.md b836b7f @jaywcjlove
v2.9.6
Documentation v2.9.6: https://raw.githack.com/jaywcjlove/mocker-api/e240656/index.html
Comparing Changes: v2.9.5...v2.9.6
npm i [email protected]
- 📖 doc: Update README.md (#289) 8c3ec69 @jaywcjlove
- 📄 example(webpack): update webpack config. c1bd0d5 @jaywcjlove
- 🐞 fix(deps): update dependency express to ~4.18.0 (#290) bdd4044 @renovate-bot
- 🐞 fix(deps): update dependency detect-port to ~1.5.0 (#296) fe7913d @renovate-bot
- 🐞 fix(deps): update dependency body-parser to ~1.20.0 (#287) 07426f8 @renovate-bot
- 💄 chore(deps): update dependency typedoc to ~0.23.0 (#295) 403bf81 @renovate-bot
- 💄 chore(deps): update dependency. f55b875 @jaywcjlove
- 💄 chore: update workflows config. 17ecbd5 @jaywcjlove
- 💄 chore: use npm workspaces. f850f53 @jaywcjlove
- 💄 chore: update workflows config. 8a3bb4f @jaywcjlove