Skip to content

Commit

Permalink
feat: remove default export, ratelimit must now be imported directly
Browse files Browse the repository at this point in the history
BREAKING CHANGE: default export is removed, import the ratelimit function directly
```ts
// before
const ratelimit = require('koa-simple-ratelimit');
import ratelimit from 'koa-simple-ratelimit';

// after
const { ratelimit } = require('koa-simple-ratelimit');
import { ratelimit } from 'koa-simple-ratelimit';
```
  • Loading branch information
scttcper committed Sep 18, 2019
1 parent b399f0b commit a3c778e
Show file tree
Hide file tree
Showing 5 changed files with 587 additions and 548 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ npm install koa-simple-ratelimit
import Koa from 'koa';
import redis from 'redis';

import ratelimit from './src';
import { ratelimit } from 'koa-simple-ratelimit';

const app = new Koa();

Expand Down
Loading

0 comments on commit a3c778e

Please sign in to comment.