Commit Graph

36 Commits

Author SHA1 Message Date
Lars Mueller
0b9fad86ba fix: CI code style checking 2023-10-28 10:53:43 +05:30
Roland Hummel
86d333ee94 feat: Test running overhaul, switch to Prettier & reformat everything (#1407)
* chore: Switch to Node 20 + Vitest

* chore: migrate to vitest mock functions

* chore: code style (switch to prettier)

* test: re-enable long-running test

Seems the switch to Node 20 and Vitest has vastly improved the code's and / or the test's runtime!

see #1193

* chore: code style

* chore: fix failing tests

* Updated Documentation in README.md

* Update contribution guidelines to state usage of Prettier

* fix: set prettier printWidth back to 80

* chore: apply updated code style automatically

* fix: set prettier line endings to lf again

* chore: apply updated code style automatically

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2023-10-04 02:38:19 +05:30
Roland Hummel
16fa774012 chore: only test changed packages (#1194) 2022-10-20 15:59:09 +02:00
Roland Hummel
4ce3dbe6b4 dependencies: update and clean (and auto-fix style issues) (#1195)
* Update npm dependencies (and auto-fix style issues)

* Updated Documentation in README.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2022-10-16 16:09:56 +05:30
Roland Hummel
bd7de6a010 chore: Remove unused deps, clean up package.json a bit (#1176) 2022-10-13 17:27:05 +02:00
ABDUL || JS & PY
9a3d64c91f chore: add instruction for installing dependencies (#1120) 2022-10-07 10:50:52 +05:30
Fahim Faisaal
cbc669aa9d merge: Upgraded Algorithm of alpha numeric palindrome (#1006)
* feat: improved memoize function

used Map instead of object & used the JSON.stringfy method for generate a valid string as a key

* docs: modified documentation

* style: format with standard

* docs: modified stringify doc

* refactor: remove two repetition implementation

* feat: added validation, test codes

* chore: remove useless words

* feat: added types for jest

* chore: added link box

* feat: added new validation test casses & methods

* style: formated with standard

* feat: added parse method & test cases

* docs: added js docs

* chore: added default import export

* feat: imporved algorithm via replace method

* test: added two test cases

* feat: added jest type for suggestions

* feat: added `reduceRight` & `trim` method

* chore: added helper variable

* feat: added new rotation option

* Revert "chore: added helper variable"

This reverts commit 489544da0a.

* remove: yarn lock

* chore: fix grammer

* feat: used replace method & added test case

* feat: remove revert

* chore: added new line

* feat: optimized algo n to n / 2 & replaced test cases

* chore: update node version

* chore: set node version to lts

* chore: updated the node version & added engines prop

* resolve: removed while loop

* chore: added right shift ops comment

* chore: update comment

* chore: removed abs

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2022-05-07 17:42:50 +05:30
Fahim Faisaal
b4fafb2479 merge: added jest type for suggestions (#959) 2022-03-28 10:53:26 +05:30
Fahim Faisaal
92a2f6d106 merge: added @babel/eslint-parser (#931)
* feat: added @babel/eslint-parser

* fix: added package lock
2022-03-17 12:28:44 +05:30
Akibur Rahman
5198af80a9 merge: Run "style" and "test" scripts automatically when committing new changes (#918)
* feat: add style and run scripts on pre-commit hooks

* Update package-lock.json
2022-03-09 20:41:14 +05:30
dependabot[bot]
7dd99c1c03 merge: chore(deps): bump node-fetch from 2.6.1 to 3.1.1 (#877)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 3.1.1.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v3.1.1)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-23 16:03:35 +05:30
Rak Laptudirm
f8d4a2678d chore: jest fall back 2021-10-28 12:16:15 +05:30
Philip Schikora
8a4f117574 merge: add UnionFind.js plus tests (#814)
* Create UnionFind.js

* Create UnionFindTest.js

* add UnionFind.js plus tests

* implement PR comments

* implement PR comment

* fix codestyle

Co-authored-by: Administrator <pi@pglp.noip.me>
2021-10-26 18:05:22 +05:30
Rak Laptudirm
190ebb02fd chore: use standard without fix 2021-10-22 09:32:12 +05:30
Rak Laptudirm
d38ebe5199 chore: Merge pull request #768 from lvlte/issues/720
Changes for consolidation
2021-10-21 19:32:55 +05:30
Rak Laptudirm
c212bf142c chore: update standard 2021-10-21 19:08:18 +05:30
Eric Lavault
8c64f99316 Officially switching to ES Module system. 2021-10-11 16:23:02 +02:00
Roland Hummel
b13b12e88c chore: merge Fix/742 migrate doctest to jest (#749)
* Remove QuickSelect doctest

There are more Jest test cases already.

* Remove AverageMedian doctest

Already migrated to jest

* Migrate doctest for BinaryExponentiationRecursive.js

(also remove inline "main" test method)

* Migrate doctest for EulersTotient.js

(also remove inline "main" test method)

* Migrate doctest for PrimeFactors.js

(also remove inline "main" test method)

* Migrate doctest for BogoSort.js

Re-write prototype-polluting helper methods, too.

(also remove inline test driver code)

* Migrate doctest for BeadSort.js

(also remove inline test driver code)

* Migrate doctest for BucketSort.js

(also remove inline test driver code)

* Migrate doctest for CocktailShakerSort.js

(also remove inline test driver code)

* Migrate doctest for MergeSort.js

(also remove inline test driver code)

* Migrate doctest for QuickSort.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

* Migrate doctest for ValidateEmail.js

* Migrate doctest for ConwaysGameOfLife.js

(remove the animate code, too)

* Remove TernarySearch doctest

Already migrated to jest

* Migrate doctest for BubbleSort.js

(also remove inline test driver code)

* Remove doctest from CI and from dependencies

relates to #742
fixes #586

* Migrate doctest for RgbHsvConversion.js

* Add --fix option to "standard" npm script

* Migrate doctest for BreadthFirstSearch.js

(also remove inline test driver code)

* Migrate doctest for BreadthFirstShortestPath.js

(also remove inline test driver code)

* Migrate doctest for EulerMethod.js

(also remove inline test driver code)

Move manual test-code for plotting stuff in the browser in a distinct file, too. Those "*.manual-test.js" files are excluded from the UpdateDirectory.mjs script, as well.

* Migrate doctest for Mandelbrot.js

(also remove inline test driver code & moved manual drawing test into a *.manual-test.js)

* Migrate doctest for FloodFill.js

* Migrate doctest for KochSnowflake.js

(also move manual drawing test into a *.manual-test.js)

* Update npm lockfile

* Update README and COMMITTING with a few bits & bobs regarding testing & code quality
2021-10-07 12:33:38 +05:30
Rak Laptudirm
7be5ce0f1b chore: Merge pull request #748 from chiranjeev-thapliyal/master
added Backtracking/AllCombinationsOfSizeK
2021-10-06 14:39:39 +05:30
Chiranjeev
6919e85c01 added Backtracking/AllCombinationsOfSizeK 2021-10-06 00:13:25 +05:30
Sajeeb Ahamed
98d2cb7579 ♻️ rollback the package.json and the lock file 2021-10-05 23:57:48 +06:00
Sajeeb Ahamed
bf088c0646 add an algorithm for checking a year is a leap year or not 2021-10-04 01:20:08 +06:00
rlfagan
b7ef904b5e Update package.json (#577)
* Update package.json

* Update README.md

* Update README.md
2021-04-03 13:49:54 +05:30
sandyboypraper
ee749bde47 Added EulersTotientFunction function to the Maths Folder 2020-12-14 00:33:55 +05:30
Kayla Golder
d70595e236 Merge branch 'master' into add-trapping-water 2020-10-27 13:07:25 -04:00
Kayla
826d75b61b complete trapping rain water 2020-10-27 12:59:11 -04:00
Pete Looney
faafa34b5c added matrixMult.js 2020-10-12 16:36:25 -05:00
Carlos Carvalho
86ed0d8829 fix code style using standardjs 2020-10-06 00:08:52 -03:00
Carlos Carvalho
5ba5a603bb remove wrong edited file package.json 2020-10-05 17:06:45 -03:00
Carlos Carvalho
bd70fd2ada Added new algoritm 2020-10-05 17:03:56 -03:00
Alexandre Xavier
c5fc353c32 Added tests for Strings algorithms (#390)
* test: added tests for check anagram function
2020-10-04 23:08:48 +05:30
dependabot[bot]
87e16d5dab Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-13 08:35:14 +05:30
Christian Clauss
4cbdc9e072 Add doctest to devDependencies of package.json
As requested at https://github.com/TheAlgorithms/Javascript/issues/142#issuecomment-667625929
2020-08-02 06:47:16 +02:00
Tapajyoti Bose
854e70a210 Added stock price fetch + package-lock.json (#233)
* Added stock price fetch

* Delete package-lock.json

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-08-01 09:14:10 +05:30
Swapnil-2001
3e787629ec Removed package-lock.json (#212)
* fixes: #210

* Fixes: #210
2020-06-28 14:08:17 +05:30
Tapajyoti Bose
412995ac09 Added Web-Programming (Open Weather Maps data fetch) (#196)
* Added Web-Programming (Open Weather Maps data fetch)

* update

Co-authored-by: itsvinayak <itssvinayak@gmail.com>
2020-06-21 22:08:29 +05:30