-
-
Notifications
You must be signed in to change notification settings - Fork 7
Changelog
Release Notes
v4.25.0 (10 Feb 2024)
- π add cypress downloaded to gitignore
- π split CI jobs, run unit tests as well
- β¨π₯β‘οΈπ feat: update packages, add es6 dev mode, fix CI
- π₯β¨ποΈ chore: migrate to vite, vitest and pnpm. Fixes #63
- πΈ Update funding info
v4.24.0 (07 Feb 2024)
- π docs: update template info on config page
- ποΈ remove circle CI. Update docs
- π add github action workflow to build and test
- β test: navigate default suggestions
- π fix: sorting by query and group behavior
- β fix e2e tests
- Add info about defaultItems in resultSet
- Fix keyboard navigation for default items (Thanks to @amritapathak89 )
v4.23.0 (31 Aug 2023)
- β¨ feat: provide input to url callback for remote calls. Fixes #66
v4.22.0 (08 Jun 2023)
- β test: add tests for APIs
- π docs: add details about the reset and addToIndex api
- β¨π feat: expose addToIndex and reset methods
v4.21.0 (20 May 2023)
- π¨ chore: remove unsafe chaining (courtesy: eslint)
- β test: navigate to link within suggestion template
- π©Ή fix: enable event default behaviour on suggestion click
- β test: add test to check handling of Esc key, fix broken tests post upgrade
- βΏοΈ chore: fix accessibility issues with list header/footer
- β¬οΈ chore: upgrade Cypress, axe and npm audit fixes
- π docs: add details about user input event
- π docs: replace travis-CI badge with circle-CI badge
- β test: user input event is emitted via click and via keypress
- β¨ feat: emit a custom input event when a suggestion is selected. Fixes #60
v4.20.1 (08 May 2023)
- π docs: update CI badge details
- ποΈ chore: remove travis CI config
- π· feat: Add .circleci/config.yml
v4.20.0 (07 May 2023)
- π fix: handle input event correctly for Firefox Android #54
v4.19.0 (16 April 2023)
- π fix: FF mobile handle input event being called incorrectly. Fixes #54
- π©Ήπ¨ fix: positioning of the list and the hint element
- π¨πβ¨ style: refactor to use flexbox instead of absolute positioning
- Revert "β»οΈ chore: remove unrequired value from boolean attrs"
- π fix: remove aria-label from hint. Fixes #53
- β»οΈ chore: remove unrequired value from boolean attrs
- π©Ή fix: use semantic html, replace span by div
v4.18.0 (17 March 2023)
- π©Ή fix: set list width in pixels to support firefox within offcanvas. Fixes #47
- π docs: add details about the new classNames config object
- β»οΈ chore: deprecate className and reuse the new classNames config for wrapper class
- β»οΈ π·οΈchore: refactor classnames, better typing
- Allow setting custom class names (#51)
- β»οΈ chore: improvise isObject helper
- β»οΈ chore: refactor fetchWrapper to use better typing
- ποΈβ»οΈ chore: remove deprecated kbd event props
- β»οΈ chore: refactor kbd event handler
v4.17.0 (06 Feb 2023)
- π docs: add usage details for empty template
- β test: add e2e tests for empty template mgmt
- β¨π« feat: allow custom html to be used in an empty template
- β¨ feat: inject entire DOM wrapper into the resultSet
- β¨ feat: Add empty template to display default suggestions
- β»οΈβ‘οΈ chore: refactor no suggestion handler
- β test: add e2e test to ensure empty templates are not injected into the DOM
- π©Ή fix: inject only truthy templates into the DOM
v4.16.0 (01 Feb 2023)
- π docs: Add usage details of resultSet within templates
- β test: add e2e test for template resultSet
- β»οΈ chore: move limit option to resultSet
- β¨π¨ feat: pass resultSet to templates for fine-tuning
- β¨ feat: add suggestion total count to the result set
- β¨β feat: update trie to return count, fix unit tests
- β»οΈ chore: refactor to use a resultSet
v4.15.0 (31 Jan 2023)
- π docs: add loader template details
- β test: add e2e tests for loader template
- β¨ feat: Add a loader template
v4.14.1 (06 Jan 2023)
- π©Ή fix: update target to support webpack 4.x
- β»οΈ refactor: search fn within trie
- π docs: fix typo in hint config
v4.14.0 (Nov 9th 2022)
- π docs: additional styling while disabling hint
- β test: verify non-existence of hint element in DOM when hint is disabled
- π©Ή fix: render hint element only when enabled. Fixes #38
- π¨ chore: improve url check
v4.13.0 (Nov 4th 2022)
- π doc: update doc with possibility of remote/prefetch url being a callback
- β test: Add test to ensure dynamic get params get passed as expected
- β¨ feat: Allow modifying GET request on the fly
v4.12.0 (Sept 16th 2022)
- β test: e2e to ensure newly loaded remote data undergoes deduplication
- ποΈ chore: deprecate limit flag from internal search
- β‘οΈβ‘οΈβ‘οΈ feat: improve perf by removing array deduplication
- β¨ feat: coerce datatokens to string
- π©Ή fix: consistent behavior of onSubmit callback via keyboard/mouse
v4.11.0 (Sept 7th 2022)
- β test: onsubmit hook for kbd/mouse selection
- π©Ή fix: consistent behavior of onSubmit hook. Fixes #30
- πβ¨ποΈ docs: Add new submenu listing nav
- π docs: update display callback description
v4.10.0 (Sept 5th 2022)
- π bugfix: keyboard navigation for cached results. Fixes #28
v4.9.0 (Aug 25th 2022)
- β test: Add test to ensure typeahead el gets added at the original position in the DOM
- π fix: positioning of typeahead el wrt siblings
v4.8.0 (Aug 23rd 2022)
- β test: verify event retention
- π fix: ensure retention of original input event handlers. Fixes #26
v4.7.0 (Aug 23rd 2022)
- π fix: keyboard navigation when suggestion list is not open
- docs: π©Ή fix copy link on install page
- β¬οΈ chore: upgrade jest to v28
- π docs: add info about WAI-ARIA support
- β π§ͺ test: setup accessibility testing with cypress-axe
- βΏοΈ feat: complement aria attrs for list and hint elements
- β¬οΈ chore: upgrade dev dependencies
- βΏοΈ feat: setup WAI-ARIA
- π docs: update playground pg
v4.6.0 (July 22nd 2022)
- β‘οΈ test: finalize dev test
- β¨ feat: autoscroll to selected item during keyboard navigation
- π§ͺ feat: Add dev test page
- chore: move assets into demo directory
- β¨ docs: add scroll to top btn
- π docs: update playground examples
- π fix: Ensure diacritics works correctly with suggestion data
- π± docs: add playground examples
- ππ¨ποΈ docs: Add sitemap, robots.txt, 404 template
- π docs: Add section links to all pages
- β¨ποΈπ docs: add internal section link nav handling
- β¨π feat: Add language diacritic support
- π docs: Add info about browser support
- π©Ή fix: recalculate sticky position on fragment load for docs
v4.5.0 (July 11th 2022)
- π± docs: Add mobile sub nav
- β»οΈποΈ Deprecate klipse plugin and use codepen prefill embeds
- βΉοΈββοΈ docs: Add page playground
- π docs: Add instructions for References section
- π docs: Add instructions for styling
- π docs: update missing config params
- π fix: Deduplicate space separated suggestions correctly
- β¨ docs: Add config page details
- π¨ docs: update cover image and tag line
- β¨π docs: Add page to list configuration options scaffold
- β¨π¨π₯ docs: Add usage instructions
- β¨π¨ docs: Finalise install page
- π¨π style: Add styling/handling for code blocks and tabs
- β‘οΈ docs: Update tags to include trending stuff
- βͺ docs: Add installation instructions
- β· Add intro page for demo
- docs: update base page
- ππ₯ feat: Add docs scaffold SPA
- ποΈ update meta tags for demo, add main img
- π style: update nav-submenu spacing
- π¨β¨ style: update link styling for examples page
- β‘οΈπ¨ feat: Add smooth scroll to internal links of demo pg
- β¨π feat: Add a navigable menu for demo page
- π¨ style: Add favicon for demo example page
- π§ fix: update css for code-mirror, reduce css load priority
v4.4.0 (June 22nd 2022)
- β
π§ͺ test: add test for custom
display
fn with handling for optional 2nd arg - π docs: add details for Event arg in display callback
- β¨ feat: pass
event
arg to display callback
v4.3.0 (June 9th 2022)
- π fix: escape regex chars within the hint correctly
- π‘ chore: Add
security.md
- π¨πβ¨ chore: Add issue, PR templates/config & funding info
- π·οΈ Improve typings for Trie, es6 trie updates
- π©Ή verify that source is an object
- π·οΈ chore: Update typeahead data source types
v4.2.0 (June 2nd 2022)
- π¦ΈβπͺβοΈ Refactor code, deprecate IE focus evnt, fail early for malformed args
v4.1.0 (May 6th 2022)
- β‘οΈβ¨ Handle collisions correctly, add
identity
config option - π docs: update package highlights
- π©Ή fix: fix script loading order for demo
- π patch version bump to v4.0.1
- π docs: Fix install doc CDN links and misc typos
v4.0.0 (April 28th 2022)
- β‘οΈ feat: optimize highlight function
- ποΈ Deprecate and remove global debounce timeout
- β»οΈβ refactor update callback, add test for focus event
- β»οΈ~ποΈ refactor: Deprecate containerVisible method
- β¨β‘οΈ feat: Separate css and js assets π₯ Breaking Change
- β test: Add e2e tests for transform callback (on Prefetch, Remote)
- β»οΈ refactor: named functions to named const es6
- π©Ήβ fix: handle storedInput correctly
- β test: fix e2e tests, fix sort
- β¨β»οΈ feat: update keyboard handling mechanism to provide better hints on selection
- β‘οΈ fix: remove double sorting whilst using groups
- π₯ Standardize all templates to be callbacks π₯Breaking Change
- β¨π₯ feat: cache remote response for non-trie matches
- ποΈβ°οΈ Deprecate, remove datastore
- β¨β π feat: Add process hook for prefetch source, update tests/docs
- β‘οΈπ feat: improve transform callback handling, update docs
- β¨ feat: update onSubmit config param to pass selected item if available
- β¨ποΈ feat: add display config option and deprecated onSelect π₯ BreakingChange
v3.6.0 (April 24th 2022)
- β π Add docs, tests for onSubmit callback
- π Fix highlight input pattern
- β¨ Add onSubmit config param
- β¨ Allow propogation of events to allow multiple click handlers
- π©Ή Fix closing order of suggestions list
- π docs: Add donate via paypal shield
v3.5.0 (Dec 28th 2021)
- β
test: check
requestOptions
for fetch API - β‘οΈ optimise fetch wrapper options and add
requestOptions
to prefetch - Added docs for request options
- Added
requestOptions
to remote
v3.4.0 (Dec 25th 2021) Christmas
- β test: Add test for check sorting preference, sort by groups
- β π©Ή test: Fix broken tests
- β‘οΈπ fix: avoid redrawing of list when groups exist, improve sorting
- β¨ Sort suggestions by giving preference to start of the query
- β‘οΈ refactor: improve setting of classes
- π fix: remove hardcoded value in favor of param
- π©Ή fix: remove stickyness for mobile devices
v3.3.0 (Dec 22nd 2021)
- β¨ feat: Make gAdvert sticky on demo page
- π docs: Add basic example preview
- β add test to verify suggestions for queries entered in reverse order
- ππ©Ή Fix demo links, update doc
- β»οΈ use better api calls for e2e tests
- β Add test to check hint for multiple space separated queries
- π fix hint generation for multiple-queries
- β¬οΈ Upgrade dependencies and fix vulnerabilites in packages
v3.2.0 (Dec 12th 2021)
- π½οΈπ§βπ» Update demo to use local prefetch resource
- π Fix Ajax example for demo
- Add list of countries for online example
- chore: fix browser field in package.json
- Setup code scanning analysis workflow
v3.1.0 (Aug 21st 2021)
- β test: Fix broken e2e test
- ποΈ chore: cleanup, deprecate code
- β»οΈ chore: minor refactoring to arrow functions
- β¨β»οΈ feat: add autoSelect suggestion config option
- π₯ chore: remove redundant code
- β¨π₯ feat: deprecate autoselection of first suggestion, update hint mechanism
- ππ Add error codes
- ππ fix: make dev form submit, update doc
v3.0.5 (July 6th 2021)
- π Fix local source type
- π¨ copy types.d.ts manually within a script
- π·οΈ expose typescript types
- π use bundlephobia size bagde
- chore: bump patch version
- docs: update live demo link
- π chore: remove unrequired setting of position
v3.0.0 (May 14th 2021)
- π bugfix: Fix backfilling of remote suggestions
- β¨π¨π update demo
- π docs: update Readme
- π¨ refactor: add deduplicateArr helper method
- π bugfix: filter submitted form data
- β¨π₯β‘οΈ optimise trie methods and fix dependents
- β¨ feat: add
dataTokenizer
, query tokenizer - β¨π₯ feat: optimize trie
- β test: update e2e test
- π₯β¨β π± feat: setup end to end tests with Cypress
- β‘οΈπ₯β¨ sort items when groups are used, deduplicate matches
- bugfix: verify that
group
label is displayed only once - bugfix: display hint only for query matches
- β¨πβ‘οΈ feat: Add support
dataTokens
config options - optimize check for existing templates
- deprecate
normalizer
config option - β¨π₯ποΈ feat: allow using any prop as display label
- update trie
addAll
method to accept dynamic identifier - use helper function to check objects
- chore: transfer repo to digitalfortress
- docs: add link to config params
v2.4.0 (Mar 22nd 2021)
- docs: fix syntax error in doc
- feat: refactor
startEvent
param towhen
, update dependencies - chore: deprecate trailing flags
v2.3.0 (Feb 23rd 2021)
- Add example of prefetched data to Demo
- Add support for prefetching data
- Add fn to check for LS support
- update readme.md for readibility
v2.2.0 (Nov 26th 2020)
- Deprecate
debounceWaitMs
config option andEventTrigger
- docs: improve, clarify readme.md
- Render not found template immediately if remote request was cached
- hide suggestions list via a class
v2.1.0 (Nov 21st 2020)
- Fix destruction of the typeahead instance correctly
- Merge suggestions correctly while using local+remote data sources
- Bugfix: Fix
noResults
template rendering multiple times when on fully local - update demo examples to be compatible with
v2.0.0
v2.0.0 (Nov 19th 2020)
- Update
readme.md
for major version - check
noSuggestionCb()
immediately in update hook - use frozen input as the cache string
- render notFound template only when remote results are available
- Better handling of noResults templates, check-templates existence earlier
- optimize checks for existence of remote
- deprecate
updateScroll()
method - Make listContainer to stay in DOM, play only with visibility
- Add
remote debounce
config option - Add suggestion retrieval from remote
- Add possibility to limit items found in trie
- integrate
trie
search with typeahead, deprecateconfig.fetch()
v1.9.0 (Nov 14th 2020)
- update typeaheadSource type, test fetchWrapper
- refactor to use async, await. Remove unrequired post method from fetchWrapper
- Add
fetchWrapper
- update trie algorithm to add multiple words, update tests
- move
onSelect
handler to helper - Add unit test for normalizer
- Add
normalizer
and normalize local data - Add new config option -
normalizer
- Add unit test for trie
- Add, configure Jest unit testing
- Add/use trie data structure algorithm for autocomplete
- update search input type from text to search
- Add templating JS fiddle as the 3rd example
v1.8.0 (Nov 9th 2020)
- update Readme to clarify overriding styling
- Deprecate
keyup
listener in favor ofinput
listener - rename variables for greater clarity
- Style demo search item box by its templates
- Add custom class to wrapper element instead of list container
v1.7.0 (Nov 5th 2020)
- Style demo and use in-house code editor
- update demo dev mode handling
- fix:
selectPrev
,selectNext
when handling limited suggestions - Add, config
group
template. DeprecaterenderGroup
config option - Add
notFound
template, deprecateemptyMsg
, wrap header, footer templates - Add support for
header
andfooter
template - deprecate
render
config option - Add templates for
suggestions
v1.6.0 (Oct 28th 2020)
- Deprecate
showOnFocus
config option - Fix showOnFocus config option
- Deprecate
resize
event handler - deprecate
scroll
event handler
v1.5.0 (Oct 27th 2020)
- Add example demonstrating ajax requests
- deprecate
customize
config param - if raw input is empty, clear everything immediately
- use selected item on tab
- improve scroll perf
- Update position of listbox, update classnames
v1.4.0 (Oct 26th 2020)
- Update wrapper classnames
- Add, config
hint
option to typeahead, update types - normalize user input
- Undo perf tweak
- improve perf of highlighting text
v1.3.0 (Oct 22nd 2020)
- Auto-select first suggestion by default
- Add support for highlighting text
- Add limit config option to limit suggestions, set target to es6 update readme badges
v1.2.0 (Oct 21st 2020)
- Select by default only when a single suggestion is available
- prefix
tt-*
to all classnames for exclusivity - refactor
settings
toconfig
, update dependencies - Provide a default
onSelect
fn, add helpers
v1.1.0 (Oct 20th 2020)
- Update Demo to include live example, add tracking
- upgrade all dev packages
v1.0.0 (Oct 19th 2020)
- Add constants, fix types, update readme
- Refactor styling, update demo
- split typeahead interfaces
- remove deprecated webpack conf, lint
- Add demo
- Add autocompletion, squash
- add, config typescript, eslint, tslint, prettier
- Add first public version
Copyright Β© typeahead-standlone.js 2020