eklem / daq-proc

Simple document and query processor that makes search running in the browser and node.js a little better
MIT License
11 stars 2 forks source link

build(deps): bump stopword from 1.0.11 to 2.0.2 #295

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps stopword from 1.0.11 to 2.0.2.

Release notes

Sourced from stopword's releases.

Breaking changes! Import destructuring + 3 letter language codes + lots more

Breaking changes:

  • Import destructuring (Only ESM can not use the old sw. prefix, CJS can, and UMD will work like before, if you prefer that). If you're using CJS and not defining stopword language (using default english stopword list), you should be fine.
  • 3-letter ISO 639-3 language codes (swapping from ISO 639-1)

Documentation to be almost backwards compatible:

  • What to do to still use ISO-639-1 codes.
  • What to do to still use sw.-prefix for function and variables (arrays of stopwords)

And lots more:

  • 5 languages added (stopword lists): Ukrainian, Lithuanian, Kurdish, Malay and Gujarati (Thansk to stopwords-iso).
  • Using batr for building CJS, ESM and UMD + testing (StandardJS, Playwright, AvaJS and Rollup-stuff in one devDep)
  • UI-tests for demo (testing UMD) + ESM and CJS tests
  • Minified builds and all licenses (stopword + 3rd party) in one file, pointed to from minified. 62 languages in 130 kb
  • Numbers from 0-9 in different scripts moved to it's own "language". Numbers should be handeled by regex, like words-n-numbers can do easily, but we're keeping this as a possibility to also remove numbers 0-9.
  • From TravisCI to GitHub Workflow for CI
  • For testing new languages added, we're using words-n-numbers to extract words (and/or numbers)

A leaner, more structured and more robust version

  • Now building CJS-, ESM- and UMD-scripts with minified alterantives.
  • import/require deconstructing now possible. Old style will also work if you want the sw. prefix for function and arrays.
  • ISO-639-3 language codes (swapping from ISO-639-1). Room for more languages.
  • The languages that aren't fully standard first has 3 characters that are actually following the standard followed by 2 characters in camelCase.
  • lggo -> lgg. We meant the 'o' for 'official', but lgg is the official in ISO-639-3, so the unofficial is now lggNd (the language array without diacritics)
  • If you want to use old codes from ISO-639-1 you could either rename on import or after import, do a i.e. const en = eng
  • Better license handling and visibility for third part libraries. There is now accumulated License file with all third party licenses listed. This is referenced in the minified scripts.
  • Moved to batr test library (rollup + standardjs + playwright dependencies all in one)
  • CI-testing moved from TravisCI to GitHub workflow / actions.
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)