Skip to content

Releases: BackendStack21/fast-gateway

Updating dependencies

28 Feb 14:14
Compare
Choose a tag to compare

Changes:

  • fast-proxy was updated to latest version (added :authority HTTP2 header support!)

Adding urlRewrite hook

02 Feb 18:25
Compare
Choose a tag to compare

We added a new urlRewrite hook that simplifies URL rewrites using req path or queryString params:

'use strict'

const gateway = require('../index')
const PORT = process.env.PORT || 8080

gateway({
  routes: [{
    pathRegex: '',
    prefix: '/customers/:customerId',
    target: 'http://localhost:3000',
    urlRewrite: ({ params: { customerId } }) => `/users/${customerId}`
  }]
}).start(PORT).then(server => {
  console.log(`API Gateway listening on ${PORT} port!`)
})

const service = require('restana')({})
service
  .get('/users/:id', (req, res) => res.send('Hello ' + req.params.id))
  .start(3000).then(() => console.log('Service listening on 3000 port!'))

Issue ref: #58

Updating dependencies

24 Jan 16:52
Compare
Choose a tag to compare

Updating dependencies to latest version.

Updating fast-proxy to v1.8.0

09 Dec 21:38
Compare
Choose a tag to compare

Changes:

  • Updating fast-proxy to latest version to fix a potential SSRF bug. More details: fastify/fast-proxy#44
  • Prior versions to v2.7.0 will be marked as deprecated.

Updating dependencies

13 Nov 12:51
Compare
Choose a tag to compare

DEV and PROD dependencies were updated to latest versions!

Hostnames support

23 Oct 13:57
Compare
Choose a tag to compare

Changes:

Issue ref: #51

Fixes TS definition

10 Oct 20:41
Compare
Choose a tag to compare

Added:

  • Fixes TS definition for server parameter.
  • restana dependency was updated to latest version.

Closes: #50

Updating dependencies

22 Sep 18:57
Compare
Choose a tag to compare

Changes:

  • Dependencies were updated to latest versions.
  • We now use Node.js version 10, 12 and 14 for testing on Travis CI

Support req.query forwarding

29 Aug 22:05
Compare
Choose a tag to compare

Changes:

  • The req.query object is forwarded to the origin if the queryString parameter is missing route hooks. PR: #48
  • Support and Donate section was added to the README.md
  • Dependencies were updated to latest versions

Updating dependencies

31 Jul 20:10
Compare
Choose a tag to compare

Changes:

  • Dependencies were updated to latest version.
  • Articles section in README.md was updated.