summaryrefslogtreecommitdiff
path: root/package.json
AgeCommit message (Collapse)Author
2025-08-19[mod] switching from pyright to basedpyright (plus first rules)Markus Heiser
pyrightconfig.json : for the paths searx, searxng_extra and tests, individual rules were defined (for example, in test fewer / different rules are needed than in the searx package searx/engines/__builtins__.pyi : The builtin types that are added to the global namespace of a module by the intended monkey patching of the engine modules / replaces the previous filtering of the stdout using grep. test.pyright_modified (utils/lib_sxng_test.sh) : static type check of local modified files not yet commited make test : prerequisite 'test.pyright' has been replaced by 'test.pyright_modified' searx/engines/__init__.py, searx/enginelib/__init__.py : First, minimal typifications that were considered necessary.
2025-08-18[mod] theme/simple: migrate codebase to TypeScriptIvan Gabaldon
TypeScript is a superset of JavaScript, converting the entire theme to TypeScript allows us to receive much more feedback on possible issues made in package updates or our own typos, furthermore, it allows to transpile properly to lower specs. This PR couldn't be done in smaller commits, a lot of work needed to make everything *work properly*: - A browser baseline has been set that requires minimum **Chromium 93, Firefox 92 and Safari 15** (proper visuals/operation on older browser versions is not guaranteed) - LightningCSS now handles minification and prefix creation for CSS. - All hardcoded polyfills and support for previous browser baseline versions have been removed. - Convert codebase to TypeScript. - Convert IIFE to ESM, handling globals with IIFE is cumbersome, ESM is the standard for virtually any use of JS nowadays. - Vite now builds the theme without the need for `vite-plugin-static-copy`. - `searxng.ready` now accepts an array of conditions for the callback to be executed. - Replace `leaflet` with `ol` as there were some issues with proper Vite bundling. - Merged `head` with `main` script, as head was too small now. - Add `assertElement` to properly check the existence of critical DOM elements. - `searxng.on` renamed to `searxng.listen` with some handling improvements.
2025-07-28[fix] don't install pyright twice and do some clean upMarkus Heiser
Pyright has been installed twice so far, once via `package.json` and once in the test script via `npx --no-install`. Separating the type checks in the CI and on the developer desktop is also not necessary. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-28[mod] dependabot: add searxng.org/devtools from Go and Node.jsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2025-07-03[mod] theme/simple: improve fmt/lint techIvan Gabaldon
This is one of various PR to refactor the simple theme internally. Replace eslint tool with Biome. I have been using this for quite some time, and it will help us to have more consistent and valid code without extending on other third party plugins. Removes unused dependencies.
2025-01-14[upd] update npm dependencies (package.json) and .tool-versionsMarkus Heiser
To avoid issue like [1], versions from now on are pinned in:: searx/static/themes/simple/package-lock.json To test nodejs v23 or newer is needed (will be installed by nvm). To drop a possibly existing installation:: $ make clean Install nodejs in nvm:: $ make nvm.nodejs INFO: install (update) NVM at searxng/.nvm ... Now using node v23.5.0 (npm v10.9.2) Creating default alias: default -> v23.5 (-> v23.5.0) INFO: Node.js is installed at searxng/.nvm/versions/node/v23.5.0/bin/node INFO: Node.js is version v23.5.0 INFO: npm is installed at searxng/.nvm/versions/node/v23.5.0/bin/npm INFO: npm is version 10.9.2 INFO: NVM is installed at searxng/.nvm To test npm checks and builds: $ make static.build.commit Related: [1] https://github.com/searxng/searxng/issues/4143 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-04-12[upd] npm: Bump eslint in /searx/static/themes/simpledependabot[bot]
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.0.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.57.0...v9.0.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2023-10-01Upgrade dependenciesAlexandre Flament
* geckodriver: 0.33.0 * node 16.20.2 * pyright 1.1.329 * eslint 8.50.0
2023-02-11[mod] install developer tools by: make node.env.devMarkus Heiser
- rename ``./manage node.env.devtools`` to ``./manage node.env.dev`` - add ``make node.env.dev`` - remove local developer tools by ``make node.clean`` Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-25Node: update to node 16.15.1Alexandre Flament
2022-03-20simple theme: upgrade some of dependenciesAlexandre Flament
* less-plugin-clean-css: no updated version. @wikipedia/less-plugin-clean-css might be an alternative. * stylelint & stylelint-config-standard the new versions require configuration and source code changes
2022-01-27[pyright] remove no longer needed assertionMartin Fischer
The pyright bug[1] for which the assertion was added has been fixed. [1]: https://github.com/microsoft/pyright/issues/2930
2022-01-23[mod] remove .nvm_packages, add eslint to package.jsonMartin Fischer
2022-01-23[fix] ensure that test.pyright installs pyrightMartin Fischer
nodejs.ensure only sets up NVM if there isn't a system-wide installation of Node that matches our NODE_MINIMUM_VERSION. The ubuntu image in the CI comes with an up to date node version, so pyright from .nvm_packages is never installed. This commit fixes this by introducing a package.json file.