Releases: vercel/micro
Releases · vercel/micro
7.0.1
7.0.0
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 isnull
: 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
6.2.0
Minor Changes
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
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
Micro 6.0.1
Improve error handling when importing the main entry point of the app. Previously the stack trace was not being shown
Micro 6.0.0
Micro 6.0.0 is the most exciting release yet! Smaller, faster and easier to use.
- We no longer transpile
import
andexport
. 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 runasync-to-gen
yourself, andmicro
won't need any special flags to run your code. - We no longer need to add the
babel-runtime
after transpilation, andasync-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 formicro-cli
andmicro-core
. Justmicro
. - The entire dependency tree for the framework is now drastically smaller:
└─┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
- It takes only 2 seconds to install with a fresh npm cache
/Users/rauchg
└── [email protected]
real 0m2.397s
user 0m1.669s
sys 0m0.244s
5.0.1
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
- 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]