Skip to content

Commit

Permalink
New version
Browse files Browse the repository at this point in the history
  • Loading branch information
krisk committed Mar 23, 2020
1 parent e74a9ef commit e7fd7ae
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 15 deletions.
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Version 5.0.8-beta

- Changed bundler to Rollup.
- Added ES6 modules for bundlers and browsers (`fuse.esm.js`) (fixed #262)
- Added CommonJS builds (`fuse.common.js`)

## Breaking Changes

- The minimified version is finally actually called `fuse.min.js`

# Version 5.0.7-beta

- Fixed (#363)
Expand All @@ -16,10 +26,12 @@

- Added indexing for increased performance over large lists
- Added `Fuse.createIndex`, which created and returns an index. This function can be used to pre-generate the index, which you can then save, and ultimately pass to the `Fuse` instance.
- **Breaking changes:**
- Removed `id` option
- Changed format of the search results
- Updated TypeScript definitions

## Breaking Changes

- Removed `id` option
- Changed format of the search results
- Updated TypeScript definitions

# Version 5.0.1-beta

Expand Down
4 changes: 2 additions & 2 deletions dist/fuse.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Fuse.js v5.0.7-beta - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v5.0.8-beta - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
Expand Down Expand Up @@ -1455,7 +1455,7 @@ var Fuse = /*#__PURE__*/function () {
return Fuse;
}();

Fuse.version = '5.0.7-beta';
Fuse.version = '5.0.8-beta';
Fuse.createIndex = createIndex;

module.exports = Fuse;
4 changes: 3 additions & 1 deletion dist/fuse.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Type definitions for Fuse.js v5.0.7-beta
// Type definitions for Fuse.js v5.0.8-beta
// TypeScript v3.8.3

export = Fuse
export as namespace Fuse

Expand Down
4 changes: 2 additions & 2 deletions dist/fuse.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Fuse.js v5.0.7-beta - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v5.0.8-beta - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
Expand Down Expand Up @@ -1236,7 +1236,7 @@ class Fuse {
}
}

Fuse.version = '5.0.7-beta';
Fuse.version = '5.0.8-beta';
Fuse.createIndex = createIndex;

export default Fuse;
4 changes: 2 additions & 2 deletions dist/fuse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Fuse.js v5.0.7-beta - Lightweight fuzzy-search (http://fusejs.io)
* Fuse.js v5.0.8-beta - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
Expand Down Expand Up @@ -1459,7 +1459,7 @@
return Fuse;
}();

Fuse.version = '5.0.7-beta';
Fuse.version = '5.0.8-beta';
Fuse.createIndex = createIndex;

return Fuse;
Expand Down
4 changes: 2 additions & 2 deletions dist/fuse.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"files": [
"dist"
],
"version": "5.0.7-beta",
"version": "5.0.8-beta",
"description": "Lightweight fuzzy-search",
"license": "Apache-2.0",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion scripts/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const babel = require('rollup-plugin-babel')
const copy = require('rollup-plugin-copy')
const featureFlags = require('./feature-flags')
const pckg = require('../package.json')
const typescript = require('typescript')

const FILENAME = 'fuse'
const VERSION = process.env.VERSION || pckg.version
Expand Down Expand Up @@ -37,7 +38,7 @@ const builds = {
dest: resolve('dist'),
rename: `${FILENAME}.d.ts`,
transform: (content) => {
return `// Type definitions for Fuse.js v${VERSION}\n${content}`
return `// Type definitions for Fuse.js v${VERSION}\n// TypeScript v${typescript.version}\n\n${content}`
}
}]
})]
Expand Down

0 comments on commit e7fd7ae

Please sign in to comment.