Closed renovate[bot] closed 2 years ago
This PR contains the following updates:
7.0.7
7.1.0
π Schedule: At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.
This PR contains the following updates:
7.0.7
->7.1.0
Release Notes
kktjs/kkt
### [`v7.1.0`](https://togithub.com/kktjs/kkt/releases/v7.1.0) [Compare Source](https://togithub.com/kktjs/kkt/compare/v7.0.7...v7.1.0) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/kkt@7.1.0/file/README.md) [![npm version](https://img.shields.io/npm/v/kkt.svg)](https://www.npmjs.com/package/kkt) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/kkt)](https://bundlephobia.com/result?p=kkt@7.1.0) ```bash npm i kkt@7.1.0 ``` - π feat: Added new way to configure proxy manually. [`3f30dd3`](https://togithub.com/kktjs/kkt/commit/3f30dd3) [@jaywcjlove](https://togithub.com/jaywcjlove) - π chore: update .github/workflows/ci.yml [`6ec372f`](https://togithub.com/kktjs/kkt/commit/6ec372f) [@jaywcjlove](https://togithub.com/jaywcjlove) - π chore: update .github/workflows/ci.yml [`c694325`](https://togithub.com/kktjs/kkt/commit/c694325) [@jaywcjlove](https://togithub.com/jaywcjlove) - π chore(deps): update dependency lint-staged to v12.3.3 ([#344](https://togithub.com/kktjs/kkt/issues/344)) [`fef83a0`](https://togithub.com/kktjs/kkt/commit/fef83a0) [@renovate-bot](https://togithub.com/renovate-bot) - π doc: Update README.md [`1ddc815`](https://togithub.com/kktjs/kkt/commit/1ddc815) [@jaywcjlove](https://togithub.com/jaywcjlove) ##### New Features ```diff import express from 'express'; import { WebpackConfiguration, MockerAPIOptions } from 'kkt'; export default (conf: WebpackConfiguration, evn: 'development' | 'production') => { //.... + conf.proxySetup = (app: express.Application): MockerAPIOptions => { + return { + path: path.resolve('./mocker/index.js'), + }; + }; return conf; } ``` ##### Or: Or use another way to manually configure the proxy. ```typescript import express from 'express'; import { createProxyMiddleware } from 'http-proxy-middleware'; import { MockerAPIOptions } from 'kkt'; /** * Still available, may be removed in the future. (δ»ηΆε―η¨οΌε°ζ₯ε―θ½δΌθ’«ε ι€γ) */ export const proxySetup = (app: express.Application): MockerAPIOptions => { app.use('/api', createProxyMiddleware({ target: 'http://localhost:5000', changeOrigin: true, })); /** * Mocker API Options * https://www.npmjs.com/package/mocker-api */ return { path: path.resolve('./mocker/index.js'), option: { proxy: { '/repos/(.*)': 'https://api.github.com/', }, changeHost: true, } } } ```Configuration
π Schedule: At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.