Skip to content

Commit

Permalink
Merge pull request #53 from niieani/fix-overwritten-export
Browse files Browse the repository at this point in the history
Fix overwritten export (#36) by adding a backwards compatible dist/hashids.js fallback file
  • Loading branch information
ivanakimov authored Sep 8, 2018
2 parents 44a67d5 + d978bca commit 72975bf
Show file tree
Hide file tree
Showing 14 changed files with 6,823 additions and 4,396 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

10 changes: 10 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: process.env.BABEL_MODULES ? false : 'umd',
},
],
],
}
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
language: node_js

node_js:
- "0.10"
- "0.12"
- "4"
- "6"
- "8"
- "10"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@

# CHANGELOG

**1.2.0**:

- drop unsupported node versions (6 and above is still supported)
- drop support for browsers with global market share < 0.5%
- upgrade to babel 7 and update other `devDependencies`
- expose both as a default and a commonjs export (fixes TypeScript typings)
- add support for `.mjs`

**1.1.5**:

- `package.json` updates
Expand Down
318 changes: 318 additions & 0 deletions dist/hashids-esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 72975bf

Please sign in to comment.