micro

Asynchronous HTTP microservices

MIT License

Downloads
2.9M
Stars
10.5K
Committers
65

Bot releases are hidden (Show)

micro -

Published by leo over 7 years ago

Patches

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

Published by leo over 7 years ago

Major Changes

  • Removed old micro-serve binary: c5fafd683e91acd47565806e3c155ccb0994d80a
  • Fail fast if node version is too low: 75eaf94c3a566777e2ff134f574a37e8c1e156dd
  • Removed onError (already deprecated): 5d1befa9b1e3aaa8da3e3f2aa2e23a7a08345ee0

Minor Changes

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

Patches

  • Remove greenkeeper email option: #135
  • Added husky: #132
  • Let Travis decide which node version to run: 7a61d01043800143a079ec3241aece2b865d144e
  • Fixed code style: 485e5d295a7ee6f8a0018c11e45abc0bf15650ab
  • Only lint before commit: 1e2730e57b9e57798843e72e432c58947de70212
  • No need to specify test files: c1a0e431e08c594ed89921969063c3cde4e0ed11
  • Better path to main binary: 0948023870cd3b13bd13e819488503641b86749a
  • Use async-to-gen for micro itself as well: 169fa88e4c97a70238fe7d66c677b4c7efe3b2b8
  • Split certain methods out into separate files: ef931225033dbfaab162f9aae1d9dc18e144e3e2
  • Load logo from art repo: 65d00a2fe5a80d7d9e4f7d7b1a971c88533c9190
  • Updated dependencies: 1efd7d5af45f4f7f3524b062128292b9e0d3b1ea
  • Better text for running message: 2429537947ff68a57b01ab6dd1724255f62037d2
  • Show correct ports when switching to an open one: c6a0e9939c2a693956bd66cd7aa477344fc60752

Credits

Huge thanks to @timneutkens for his help! 😘

micro -

Published by leo over 7 years ago

Patches

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

Credits

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

micro -

Published by leo almost 8 years ago

Minor Changes

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

Patches

  • Deprecates onError and removes references from README.: bc2ab7f4478d6cefa4b85d743dab42c4438c0e14
  • Removes onError additions from #99.: 2bf0623dbfb222eaa2c10283a2efbbf72518ecda
  • Fixed code examples in README.md: #108
  • Added full args to help: #122
  • More keywords added: a67dff634038e9e625e3cdac50d3d125656ecc43
  • Run linting tests before ava: a8a5857cd7957411632c1a4eb604575c894c9bda
  • Check if async is available before loading async-to-gen: #114
  • Authors added: 579a570cfb03ea7c9c5168025df24792828ecfce
  • Port already defined by default: 1561de3396eafec758f5b2821f206f0722bb8319
  • Put required node version inline: 097ded7314cb17a25af69410a3a213f7004243b1
  • 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!

micro -

Published by leo about 8 years ago

Minor Changes

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: https://github.com/zeit/micro/pull/100
micro -

Published by leo about 8 years ago

Patches

  • Documentation of sendError referred to send instead: 2b83b1595a637db9286a42c73ae6028c08e7b7f2
  • Bumped async-to-gen to the latest version
micro - Micro 6.0.1

Published by rauchg about 8 years ago

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

micro - Micro 6.0.0

Published by rauchg about 8 years ago

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:
└─┬ [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
micro -

Published by leo about 8 years ago

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

micro -

Published by leo about 8 years ago

  • 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]
micro -

Published by leo about 8 years ago

  • Fixing issues preventing micro cli to work properly [@julianduque]
  • Package: add resumer [@rauchg]
micro -

Published by leo about 8 years ago

  • Add prepublish command to npm scripts [@julianduque]
  • Replace commander with args (more lightweight) [@leo]
  • Improvements to build process [@leo]
micro -

Published by leo about 8 years ago

  • Add support for returning or sending Buffer, Stream [@kevin-roark]
  • Add support host argument in micro(1) [@millette]
  • Clean up babel config [@hzoo]
micro -

Published by leo about 8 years ago

  • Remove unneeded plugin in gulpfile [@rauchg]
  • Fix lint warnings [@nkzawa]
  • Explicit promise return test and doc [@kevin-roark]
  • Add support for return any data which is json-encoded [@kevin-roark]
  • Update micro-core to 0.3.0 [@kevin-roark]
micro -

Published by leo about 8 years ago

Faster production install with micro-core dep [@rauchg]

micro -

Published by leo about 8 years ago

  • Always log error stacks by default (even in prod) [@rauchg]
  • Optimize JSON.stringify performance in V8 [@demoneaux]
micro -

Published by leo about 8 years ago

Package: bump babel

micro -

Published by leo about 8 years ago

  • Fix bin/micro in windows [@rauchg]
  • .travis: stop supporting node 0.10 [@rauchg]
  • README: installation instructions [@rauchg]
micro -

Published by leo about 8 years ago

  • Add .travis.yml [@rauchg]
  • README: add status badge [@rauchg]
  • Package: bump babel-eslint for #10 [@rauchg]
  • Index: improve sendError syntax style [@ccutch]
  • README: doc improvements [@shidhincr]
  • Test: added test for body limit in error message [@rauchg]
micro -

Published by leo about 8 years ago

  • Micro: allow [opts] <file> [@rauchg]
  • JSON: add actual limit to 413 message [@dschenkelman]
  • README: fix typo [@werme]
  • SendError: pretty print json on dev environments [@coreh]