Skip to content

Commit

Permalink
Add Migrating from < 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonette authored Sep 10, 2018
1 parent 2674536 commit eb08b96
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@ console.log(feed.json1());
// Output: JSON Feed 1.0
```

## Migrating from `< 3.0.0`

If you are migrating from a version older than `3.0.0`, be sure to update your import as we migrated to ES6 named imports.

If your environment supports the ES6 module syntax, you can `import` as described above:

```ts
import { Feed } from 'feed';
```

Otherwise, you can stick with `require()`:

```diff
- const Feed = require('feed');
+ const Feed = require('feed').Feed;
```


## More Information

- Follow [@jpmonette](https://twitter.com/jpmonette) on Twitter for updates
Expand Down

0 comments on commit eb08b96

Please sign in to comment.