All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
(empty)
- Fix the backward compability issue of
inputId
andoutputId
of releasev1.6.0
andv1.6.1
.
- Detect "deleted" and "unpublished" posts to trigger a cache invalidation
- The fields
inputId
andoutputId
now support array values. Very useful for multi search bars and/or multi result elements setup. Configuration backward compability is preserved.
- A new
searchOptions
field to fine tune Flexsearch searches.
- Better info and error console logs, the error object is also printed out.
- The
outputId
becomes optional, set it value tofalse
to disable it. - Replace all
throw
statement by warn logs. - The
search()
method now returns the posts found.
- The
outputChildsType
wrapping element becomes optional, set it value tofalse
to disable it. - Use
false
(boolean) value instead of'none'
for the fields "loadOn" and "searchOn". The'none'
value continues to work but has been deprecated.
- Enable library import using yarn/NPM.
- Ability to set
inputId
tofalse
when no input field is needed.
- Search engine configuration exposed to user.
- Non-latin languages support.
- Remove the Ghost API library dependency, use the native
fetch()
instead. The bundle size is reduced by 50%.
- Self documented methods within the source code (JSdoc).
- The inner
loadResources()
method has been renamed toloadData()
. - Refactor some method and variable names to give them more sens.
- When
searchOn
set tonone
, properly disable form submission.
- Discard post item when returning falsy value from the
customProcessing()
callback function.
- Default format date based on the HTML page
lang
attribute.
The first official and production-ready release of SearchinGhost!