Skip to content

Releases: vercel/micro

7.0.1

05 Feb 10:11
@leo leo
a12a524
Compare
Choose a tag to compare

Patches

  • Simplify "micro running" notification if non-TTY: a2f0011

7.0.0

04 Feb 21:26
@leo leo
3024fc0
Compare
Choose a tag to compare

Major Changes

  • Removed old micro-serve binary: c5fafd6
  • Fail fast if node version is too low: 75eaf94
  • Removed onError (already deprecated): 5d1befa

Minor Changes

  • Let user know if there's an update: 7cd418e
  • Welcome back, good-looking usage information: daa6b65
  • Copy local URL to clipboard: 0206aa3
  • Make finding an open port work: 98529b5
  • Use native async/await if supported: e08adb6
  • Retrieve port from PORT env variable, if available: 7177b59
  • Return 204 No Content if value is null: 65dbed8
  • Rewrote docs to include examples: #115

Patches

  • Remove greenkeeper email option: #135
  • Added husky: #132
  • Let Travis decide which node version to run: 7a61d01
  • Fixed code style: 485e5d2
  • Only lint before commit: 1e2730e
  • No need to specify test files: c1a0e43
  • Better path to main binary: 0948023
  • Use async-to-gen for micro itself as well: 169fa88
  • Split certain methods out into separate files: ef93122
  • Load logo from art repo: 65d00a2
  • Updated dependencies: 1efd7d5
  • Better text for running message: 2429537
  • Show correct ports when switching to an open one: c6a0e99

Credits

Huge thanks to @timneutkens for his help! 😘

6.2.1

26 Jan 17:49
@leo leo
b86842d
Compare
Choose a tag to compare

Patches

  • Fixed test example: #131
  • Allow json to be called multiple times: #129

Credits

Huge thanks to @BorisChumichev and @onbjerg for their help!

6.2.0

15 Jan 11:47
@leo leo
6bafa68
Compare
Choose a tag to compare

Minor Changes

  • Enable to set statusCode when returning value: #105
  • Add sourcemap support: #125

Patches

  • Deprecates onError and removes references from README.: bc2ab7f
  • Removes onError additions from #99.: 2bf0623
  • Fixed code examples in README.md: #108
  • Added full args to help: #122
  • More keywords added: a67dff6
  • Run linting tests before ava: a8a5857
  • Check if async is available before loading async-to-gen: #114
  • Authors added: 579a570
  • Port already defined by default: 1561de3
  • Put required node version inline: 097ded7
  • Don't log errors when testing: #124
  • Fix built-in error handling links: #107

Credits

Huge thanks to @nkzawa, @albinekb, @matheuss, @timneutkens, @mxstbr for their help!

6.1.0

08 Oct 15:14
@leo leo
400318a
Compare
Choose a tag to compare

Minor Changes

  • Added the ability for a custom onError method: #99
  • The package now allows you to set a custom content type for buffers and streams: #86

Patches

  • Use !== instead of !=: c77a79d
  • Removed ES2015 module syntax from README (until node supports it): 430083c
  • No license needed in README (GitHub shows it): 1e55e3b
  • Added company as author: 8e14d30
  • Badge for XO linting added: d6c9d3c
  • Use JSON for Travis CI configuration file: 69811ca
  • Adjusted author name in LICENSE: 49e9a31
  • Removed async-to-gen duplicate from package.json: #100

6.0.2

31 Aug 15:44
@leo leo
Compare
Choose a tag to compare

Patches

  • Documentation of sendError referred to send instead: 2b83b15
  • Bumped async-to-gen to the latest version

Micro 6.0.1

13 Aug 02:01
Compare
Choose a tag to compare

Improve error handling when importing the main entry point of the app. Previously the stack trace was not being shown

Micro 6.0.0

13 Aug 01:06
Compare
Choose a tag to compare

Micro 6.0.0 is the most exciting release yet! Smaller, faster and easier to use.

  • We no longer transpile import and export. The following examples are valid with Micro 6.0.0:
// lambda style
module.exports = () => 'Hello world'  

// req, res
module.exports = (req, res) => {
  res.end('Hello world');
}

// promises
const request = require('request-promise');
module.exports = () => request('https://google.com');

// async / await
const sleep = require('then-sleep');
module.exports = async () => {
  await sleep(500);
  return 'I waited 500ms with no callbacks!';
}
# listen on localhost:3000
$ micro index.js
  • We're ditching support for versions of Node older than 6.0.0. You can continue to use older versions of micro for Node 4 and 5.
  • We're ditching babel in favor of async-to-gen by @leebyron. You can continue to use your own transpilation workflows with babel if you want, and micro should handle them just fine! In fact, you could also run async-to-gen yourself, and micro won't need any special flags to run your code.
  • We no longer need to add the babel-runtime after transpilation, and async-to-gen's runtime is only 2 lines of extra code per file.
  • The runtime and CLI live in a single package micro again, since all our dependencies are now tiny and fast. No need for micro-cli and micro-core. Just micro.
  • The entire dependency tree for the framework is now drastically smaller:
└─┬ micro@6.0.0 
  ├─┬ async-to-gen@1.0.1 
  │ ├─┬ babylon@6.8.4 
  │ │ └─┬ babel-runtime@6.11.6 
  │ │   ├── core-js@2.4.1 
  │ │   └── regenerator-runtime@0.9.5 
  │ └─┬ magic-string@0.15.2 
  │   └── vlq@0.2.1 
  ├── isstream@0.1.2 
  ├── media-typer@0.3.0 
  ├── minimist@1.2.0 
  └─┬ raw-body@2.1.7 
    ├── bytes@2.4.0 
    ├── iconv-lite@0.4.13 
    └── unpipe@1.0.0 
  • It takes only 2 seconds to install with a fresh npm cache
/Users/rauchg
└── micro@6.0.0 
real    0m2.397s
user    0m1.669s
sys     0m0.244s

5.0.1

08 Aug 10:40
@leo leo
Compare
Choose a tag to compare

The core of micro is now contained within the package named "micro". In turn, the command line utility now has its own (this one).

5.0.0

28 Jul 10:00
@leo leo
Compare
Choose a tag to compare
  • Feat: include test directory for linting (#60) [@a0video]
  • Improve error handling on cli (#59) [@julianduque]
  • Fix host CLI option (-H) [@millette]
  • Documentation tweaks [@julianduque]
  • Transition from deprecated ava assertion methods (#53) [@kevmannn]
  • Use main as entry point if file isn't passed as argument (#52) [@julianduque]