Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/lukeed/polka

A micro web server so fast, it'll make you dance! :dancers:
https://github.com/lukeed/polka

docs: update benchmarks

a9c8d4a6b4ca8201e5f14360c4510f7ceda7c437 authored almost 7 years ago by Luke Edwards <[email protected]>
defer `bware` request mutation until needed;

Previously, given a global logger, any bware-path would instantly mutate the request object. Thi...

3120116882047c76040607b5c2984c6bb2c378ca authored almost 7 years ago by Luke Edwards <[email protected]>
example: sapper (#23)

* clone sapper-template

* remove cypress (sorry)

* general clean-up

* replace Express w...

3e9440596ffac3007f4f6ef4fcd0f890b282bf87 authored almost 7 years ago by Luke Edwards <[email protected]>
v0.3.1

cbf87f5e118920fb519f5956e3937a176b9d8477 authored almost 7 years ago by Luke Edwards <[email protected]>
example: update any with `serve-static` usage

1cfbb257ac23e880f58949998e080164e01b50a3 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update benchmark results

d8016ccd65d27a54c8852fb0d508edf55ed7d7ae authored almost 7 years ago by Luke Edwards <[email protected]>
use & ensure leading `/` for apps & bware keys

531c92d357aef8bd2f98c038aefd84d822d4a41d authored almost 7 years ago by Luke Edwards <[email protected]>
fix: only mutate `req.url` is sub app/mware found

f4e62bf797c2599556d378d709b9911d64b1706d authored almost 7 years ago by Luke Edwards <[email protected]>
fix: correct order; compress before statics

5a11a4f5909ebb78babaa6ef136e8e1312451b54 authored almost 7 years ago by Luke Edwards <[email protected]>
fix: read localstorage for previous TodoMVC user;

- removes annoying flicker
- auto-construct Authorization header via LCS value

b52f103d567dedd9abc30c747b1855d3d3e11771 authored almost 7 years ago by Luke Edwards <[email protected]>
example: add `with-firebase-admin` TodoMVC demo;

- buzzwords: Preact, Parcel, Firebase, TodoMVC πŸ˜‚

4c09fbf2b27a16ab87f1d9ac53bb1b2d60a4f726 authored almost 7 years ago by Luke Edwards <[email protected]>
example: add `with-socketio` chatroom demo

2d15837baee98f38ac36b481ffe48d56dfe8bffb authored almost 7 years ago by Luke Edwards <[email protected]>
v0.3.0

5ea621082796b94b6fcf0704bb22b17b649f0b11 authored almost 7 years ago by Luke Edwards <[email protected]>
chore: set access=public on scoped pkgs

c7a595505f4b9fc18f8051de2816e36c59c4289b authored almost 7 years ago by Luke Edwards <[email protected]>
chore: update `send` & `send-type` descriptions

7856b134171da0ff2a43430ac4f0e76356fc1906 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: clarify sequence for `app.handler` logic

2e4167cb6e7b0237dc9d64f569f6c8157e7f665d authored almost 7 years ago by Luke Edwards <[email protected]>
chore: add prepublish script to copy readme

9c75df3b03c76a5939589a4ddefacdfe9a880411 authored almost 7 years ago by Luke Edwards <[email protected]>
chore: use link for readme logo

ec5d90e580a79a612d50cc42cc379a330bb6caab authored almost 7 years ago by Luke Edwards <[email protected]>
example: add `with-uws` demo

9965f8a0973b045aba4370e6ce12ba3005a6586b authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update for 0.3 changes

- note sub-apps requiring base
- add constructor `options`
- remove `send` & `start`
- update `u...

461157757c9bbc7c93adcc2d09a242c995a358f1 authored almost 7 years ago by Luke Edwards <[email protected]>
breaking: remove start() method; prefer listen()

a24fae26c4f9720858f8942c5ac218ed41eee938 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update benchmark results (add koa)

6c4dd860deb4a450f4f26548dddf4d9b83f47652 authored almost 7 years ago by Luke Edwards <[email protected]>
example: update `async-json` demo

b338d757c91cd922be35f68f6e9ba23e3157c25b authored almost 7 years ago by Luke Edwards <[email protected]>
example: update `with-serve-static` app;

Closes #7, but thank you @yamalight <3
I had this rework in progress & it accommodated a wider r...

cacc5be903201273ed1b122876cb6176927423f2 authored almost 7 years ago by Luke Edwards <[email protected]>
example: update sub-app

90c1fd22ee0b914bc413cec76c6b8ea5dcfcb62c authored almost 7 years ago by Luke Edwards <[email protected]>
fix: prefer to print errors directly if string

208240fbe08ddd312099a96e19799fb5411c3dbd authored almost 7 years ago by Luke Edwards <[email protected]>
test: update sub-app test to include sub midware;

- checks the sequence of when & how sub-app midware execute

4a6b870f9ba55f59d6eb9bff704324435f671bb4 authored almost 7 years ago by Luke Edwards <[email protected]>
test: option `onError` & `onNoMatch` handlers

17f1c85668acb847d056b9ff8fda9e2f7e65c91e authored almost 7 years ago by Luke Edwards <[email protected]>
test: polka grouped/basename middleware

7054f8f468b723cd0a56925bb5fe3ebab2cab826 authored almost 7 years ago by Luke Edwards <[email protected]>
test: update polka internals

22ed1eb04839bb77d1a95faf78fc7b2b7da7f116 authored almost 7 years ago by Luke Edwards <[email protected]>
global & grouped mware run before route handler;

- global midware ~> main handler
- global midware ~> group midware
- global midware ~> sub midwa...

b23d29f4bab2a6431d0723de7ad6422cf3eb92db authored almost 7 years ago by Luke Edwards <[email protected]>
breaking: remove `send` from prototype

11052b7ea1efc144296eef18e52bd73ae9993611 authored almost 7 years ago by Luke Edwards <[email protected]>
refactor: allow sub-apps to route to own handlers;

- breaking: sub-apps require a basepath to be mounted now
- searches for sub-apps or uri-assigne...

e3c6966bf21c0ad7b2cb9ff96120208b22d9333c authored almost 7 years ago by Luke Edwards <[email protected]>
test: update Polka internals & expected error msg

1b45661db2ab2a767bc7e265063bceebe6fe7bb3 authored almost 7 years ago by Luke Edwards <[email protected]>
add `onError` handler option w/ basic default

e4315832b4dd8fd5fa04dcc2418685a79b2b7e5a authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add readmes for both `send` packages

0dfaa85028e3ded0fd4ee717a1455c8dad9793b2 authored almost 7 years ago by Luke Edwards <[email protected]>
package: add send-type

2dac7a012ae4fc5491b76ca78699d4739d96e076 authored almost 7 years ago by Luke Edwards <[email protected]>
refactor: move all tests into root

7a8f3389cc80b3ce87027eda34779c47ad60acb4 authored almost 7 years ago by Luke Edwards <[email protected]>
package: add send

815aaefe1dd57977d9b22328021c8300fa8263e3 authored almost 7 years ago by Luke Edwards <[email protected]>
chore: install & configure lerna

a9d5382f1440cb48daa765957c338b36cac3618e authored almost 7 years ago by Luke Edwards <[email protected]>
chore: update polka package.json & test paths

6601c15f46bd2ba591af9f2bb5ec187a0cb79059 authored almost 7 years ago by Luke Edwards <[email protected]>
chore: trim root package.json file

3e3cf74dd24f44539071f4399e163f5846c9a702 authored almost 7 years ago by Luke Edwards <[email protected]>
chore: move polka core to packages/polka

7e583fc099256977f76316e80de24f94e41d68fd authored almost 7 years ago by Luke Edwards <[email protected]>
example: use HTTPS server

2ecb7483b21e86fab8b26afd8bfc775bc1e20c60 authored almost 7 years ago by Luke Edwards <[email protected]>
example: remove extra line

994938c85ea4c02b2975a747a0268bcb80de9b50 authored almost 7 years ago by Luke Edwards <[email protected]>
example: use serve-static

7a04093fe90676c87352166dcfde9761153a34b4 authored almost 7 years ago by Luke Edwards <[email protected]>
example: use body-parser/json

00d997fb10367d60817d5ca5f90770bf12dd1df1 authored almost 7 years ago by Luke Edwards <[email protected]>
0.2.3

6b271308d63596ad95dc78d975b6951025e305f0 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update benchmark results

76efe33a3107a9e2b368c6b234c629850bd625d2 authored almost 7 years ago by Luke Edwards <[email protected]>
exit handler before loop if no middleware

ded9d0b51729a15ef8886d705bd6ee6d818c272a authored almost 7 years ago by Luke Edwards <[email protected]>
0.2.2

9c6a4706a02d45b79c433e74a3c6d1b1978d96e9 authored almost 7 years ago by Luke Edwards <[email protected]>
add tests for asynchronous middleware functions

b53874af5a8c0814e6119df5b9e2d057108c6722 authored almost 7 years ago by Luke Edwards <[email protected]>
bench: update express-vs-polka results

76a0a372f77bf401019cb2b50b5ad1f121d6e813 authored almost 7 years ago by Luke Edwards <[email protected]>
bench: update apps

f5b3701a5a94a6a5698d9c238b258e732a7083a7 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update benchmark results

f8a65b8359106b79ece0e78018781d623141f4f5 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: remove sub-apps’ TODO notes

d5a09e83c844adb233d0af4c2c3e2490194f4c94 authored almost 7 years ago by Luke Edwards <[email protected]>
fix: loop properly awaits asynchronous middleware;

- long-running middleware were skipped because `while` is sync iterator

bf626a365d9a783b7b63dcaf3055a6f46f5e5328 authored almost 7 years ago by Luke Edwards <[email protected]>
0.2.1

f3d4601a9d0e7a6c5141a022bdeac9350cc7f91d authored almost 7 years ago by Luke Edwards <[email protected]>
match & parse against pathnames only; closes #6

d64ae9e7633843e9bd85dc9ea53d5125c95b75cc authored almost 7 years ago by Luke Edwards <[email protected]>
0.2.0

4c837d85e1fec397804f2f87a903489a52a9055a authored almost 7 years ago by Luke Edwards <[email protected]>
example: nested/sub-applications

6b2ad1655007ecb96f12049e5e8bed8b6cc1255b authored almost 7 years ago by Luke Edwards <[email protected]>
example: async fetch external API w/ json output

7ce5cdc4b0052d3464ca54c4855bc235b24586fd authored almost 7 years ago by Luke Edwards <[email protected]>
add tests for sub-applications

b07d1461e67634b5f2b653bd05e035414e6dcb33 authored almost 7 years ago by Luke Edwards <[email protected]>
absorb sub-applications; closes #1

17f1e85f12d268c891989faaf7b5a99f56f06309 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update API for `handler` method

d72cd142df06097c332332b7cef5b01a4d42418b authored almost 7 years ago by Luke Edwards <[email protected]>
revert `app.handler` signature;

- no need to next() since it’ll never run
- better to (maybe) receive a pre-parsed URL object

ddbf15c801fff12218e8d4ba752bf776e6222ca0 authored almost 7 years ago by Luke Edwards <[email protected]>
remove unused import & rename parseurl

0f559b66ef7e5df5d20deca4020b05470788cc22 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: fix typo

8ac3537567abf1dfb48199b581fd6ce58231eb91 authored almost 7 years ago by Luke Edwards <[email protected]>
0.1.0

ea1834cf3d2befa025c1ad743dff35059ea09501 authored almost 7 years ago by Luke Edwards <[email protected]>
wow, struggling

bcaff1a53ac8e50d287a6cd915872f35c103a38f authored almost 7 years ago by Luke Edwards <[email protected]>
chore: fix filename, derp

76b381b7855a6e1b20d22b165e9ab9089d6b44eb authored almost 7 years ago by Luke Edwards <[email protected]>
chore: add travis config

f6bbe6b7b360f462e40a3723daf57fbbd686a8a6 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: final proofread

8fff7fc08242b57022f7b6b2da4aefe7634b51e0 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add crappy usage demo

bce8e36c01aa54bef56635942454ebcd81156e2c authored almost 7 years ago by Luke Edwards <[email protected]>
chore: upgrade router

f8f23807939c44fe5fda399e55fecfe1a7418dda authored almost 7 years ago by Luke Edwards <[email protected]>
bench: update format & renames

8a94aa79068973b2536080dfd587166a4e2ebad4 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update Benchmarks, include native & fastify

21d2267a17d7b0d2171f15c5d2c02bfac4401dc8 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add routing section

a6c2ae4c8c75b4e677dce5073e43d202f96ee571 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: tweak wording & fix typos

820c3011c652cc624b0c8ddb430732146870b6e2 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: tweak wording

6be98cc5e8546322ab4bd80d4793e97675c7ca90 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add Parameters section

30b245463ccdb8672bc5fa9cd81d05306c806f15 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: update readmes

5e20704236817241e569eb683ed8cc0b8c3bf2a6 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add Middleware section

56ced0328d9e45bed061f19a4855ee8b7969baa8 authored almost 7 years ago by Luke Edwards <[email protected]>
docs: add Handlers section

1f2ac7e4cf0fc18d0635f306a5b41c5fd7f6d92e authored almost 7 years ago by Luke Edwards <[email protected]>
bench: update results

1c6ad08190204194bbe2ac3415b7bd7eebcd81d2 authored almost 7 years ago by Luke Edwards <[email protected]>
use compressed logo file

5961e9f655b8fa64d8dcdbb66d23476e6b5e2e15 authored almost 7 years ago by Luke Edwards <[email protected]>
import logo & add readme intro

60500c4169ad04e79566c2b6617f9bf406ca64d8 authored almost 7 years ago by Luke Edwards <[email protected]>
add more tests for error types

a33ced7348cde88564e1ac7ccbd650a3e526fbb5 authored almost 7 years ago by Luke Edwards <[email protected]>
refactor: move `next()` handler ~> done variable;

- no repetitive definition inside loop

070cc7a13b79f9edc4434f4cf42171d4a3f06aab authored almost 7 years ago by Luke Edwards <[email protected]>
use `res.finished` to determine early exits

db772d9358411e5dae39f25be05a659e23848c0c authored almost 7 years ago by Luke Edwards <[email protected]>
add simple errors test

6b21afa19a37488aee12b0589a1e7683e55f8cc5 authored almost 7 years ago by Luke Edwards <[email protected]>
boot each server within tests; use `axios` client

2794e446bf38b60f3abb5b4a4cd70cf201daef21 authored almost 7 years ago by Luke Edwards <[email protected]>
fix: exit middleware loop early & ignore route handler

031a94607f803e995504e628ec2c21741de79e42 authored almost 7 years ago by Luke Edwards <[email protected]>
fix: `handler()` takes & passes `next` as 3rd arg

47bde468d69b06cc586ec82e4ad1db71ac8445f6 authored almost 7 years ago by Luke Edwards <[email protected]>
test: check for `instanceof http.Server` directly

9b02da6a7a6879e998f124fc9dfc278187973b70 authored almost 7 years ago by Luke Edwards <[email protected]>
exit middleware loop if `next(err)` w/ msg + code;

- responds with `err.code` or 500
- responds with stringified error

a46e1a1a0d27efeebaaf036247d2d6ea121b2000 authored almost 7 years ago by Luke Edwards <[email protected]>
add basic & middleware usage tests

416d5e6a5fd6e958bdfe340622dbd805b6410f1d authored almost 7 years ago by Luke Edwards <[email protected]>
begin adding more tests

d99f01b806a103da94faa4dd66abcea467b19ca9 authored almost 7 years ago by Luke Edwards <[email protected]>
cont readme outline

2f15143a3ca3f842a5fde91fd73cd0f4cd771465 authored almost 7 years ago by Luke Edwards <[email protected]>
fix repo name

c57dd5584fba239900233493caf91104876020ce authored almost 7 years ago by Luke Edwards <[email protected]>