Skip to content

Changelog

Niket Pathak edited this page Feb 10, 2024 · 61 revisions

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 to when, 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 and EventTrigger
  • 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, deprecate config.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 of input 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. Deprecate renderGroup config option
  • Add notFound template, deprecate emptyMsg, wrap header, footer templates
  • Add support for header and footer 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 to config, 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
Clone this wiki locally