summaryrefslogtreecommitdiff
Commit message (Expand)AuthorAgeFilesLines
* src/api.mjs: Simplify handling of argumentsEuAndreh2024-03-012-17/+12
* src/utils.mjs: Remove eq(), use utils.isDeepStrictEqual from "node:utils" ins...EuAndreh2024-03-012-114/+0
* src/utils.mjs: Replace promisify() by util.promisify()EuAndreh2024-02-283-42/+6
* src/utils.mjs: Add undefinedAsNull()EuAndreh2024-02-282-0/+22
* src/utils.mjs: Define strSortFn() and use it on all filesEuAndreh2024-02-285-5/+25
* tests/runner.mjs: Use process.stderr.write() to avoid printing newlines when ...EuAndreh2024-02-281-2/+5
* tests/runner.mjs: Remove unused `AssertionError` typeEuAndreh2024-02-281-2/+0
* src/hero.mjs: Promote log() to fancy logger objectEuAndreh2024-02-254-16/+242
* Explicit import from "node:process"; move log() to hero.mjsEuAndreh2024-02-259-41/+56
* Normalize how modules import and name each other•••Also add a `defaultInterceptors` variable in `src/hero.mjs` to avoid needing to redefine it in every application. EuAndreh2024-02-2417-90/+92
* src/hero.mjs: Add buildServer()EuAndreh2024-02-237-144/+322
* Implement accretion.runMigrations() and wrappings of node-sqlite3EuAndreh2024-02-238-40/+296
* Big cleanup•••- delete all SQLite Node-API code: we'll use the C++ one instead; - implement hero.mjs, with tests! - use ESM all over. EuAndreh2024-02-2326-292/+1696
* Remove C code and cleanup repositoryEuAndreh2024-02-2129-2771/+21
* Makefile: Include SQL migration files as installable artifactsEuAndreh2023-11-273-1/+16
* Makefile: Also recompile `src/napi-sqlite.lo` when Makefile changesEuAndreh2023-11-271-0/+1
* Makefile: Fix missing installation of the `napi-sqlite.{c,node}` source and ...EuAndreh2023-11-271-1/+2
* Makefile: Fix missing installation of the `src/cli` executable•••The `$PREFIX/bin/papo` was being installed as a symlink, but the target was empty. EuAndreh2023-11-271-1/+1
* tests/js/db.js: Disable test for incomplete codeEuAndreh2023-11-271-1/+1
* src/db.js: Inline fallback definition of $PAPO_DB_PATHEuAndreh2023-11-272-4/+1
* src/config.h.in: Add provenance links and explanation for _XOPEN_SOURCE and _...EuAndreh2023-11-251-1/+20
* Makefile: Erase $(JSLIBDIR) together with $(SRCDIR)EuAndreh2023-11-251-1/+1
* Makefile: Compose $(CFLAGS.a) with $(CFLAGS) instead of combine•••Instead of defining a toplevel $(CFLAGS.a) that includes everything from $(CFLAGS) plus whatever is statically defined in the Makefile, we now use both $(CFLAGS) and $(CFLAGS.a) together, and we define neither. Now one can keep a single usage of $(CFLAGS), and override $(CFLAGS.a) when desired. Where previously, in order to give a flag only to $(CFLAGS.a), one had to write: $ make CFLAGS.a="$CFLAGS --.a-only" Now can be done via: $ make CFLAGS.a="--.a-only" IOW, previously $(CFLAGS.so) was "everything you gave to $(CFLAGS), plus this extra -fPIC" what now is "override $(CFLAGS), $(CFLAGS.a) or $(CFLAGS.so) as you wish". The same is true for $(LDLIBS), $(LDLIBS.a) and $(LDLIBS.so). EuAndreh2023-11-251-11/+8
* src/napi-sqlite.c: Improve error handlingEuAndreh2023-11-174-134/+223
* tests/runner.js: Replace hand-rolled assert with "node:assert" moduleEuAndreh2023-11-162-56/+45
* Add WIP non-async functions to napi-sqlite.cEuAndreh2023-11-169-101/+833
* Makefile, mkdeps.sh: Enforce JS->native dependency•••Assert that we'll always have the `src/napi-sqlite.node` binary ready by the time we get to any JavaScript file. EuAndreh2023-11-153-0/+9
* TODOs.md: Add relevant quote on software correctness and disciplineEuAndreh2023-11-151-0/+15
* mv src/cli src/cli.jsEuAndreh2023-11-152-3/+4
* Add support for multi-file C project•••- have dynamic discovered dependencies via `mkdeps.hs`, and also move the listing of JavaScript files to it. - copy over stub C files for setting up the project skeleton. EuAndreh2023-11-1525-96/+1831
* src/napi-sqlite.c: Add Node-API PoCEuAndreh2023-11-133-2/+75
* tests/assert-*.sh: Reuse rebuilt assets for testsEuAndreh2023-11-134-22/+7
* tests/assert-*.sh: Allow tests to run independently from "all" and from each ...EuAndreh2023-11-134-16/+34
* tests/assert-uninstall.sh: Split from assert-install.shEuAndreh2023-11-133-17/+28
* Makefile: Clean directory symlink potential leftover before recreatingEuAndreh2023-11-131-0/+1
* tests/assert-*.sh: Normalize output using yellow and green colorsEuAndreh2023-11-124-10/+26
* src/{ircd,web}.js: Init stub serversEuAndreh2023-11-118-11/+110
* TODOs.md: Add #td-d27aca11-9449-bb0e-08cb-2a8ef9778a11EuAndreh2023-11-101-0/+11
* TODOs.md: Add "Relevant links" sectionEuAndreh2023-11-101-0/+34
* .gitignore: Exclude the generated .3js fileEuAndreh2023-11-101-0/+1
* tests/js/: Run the files directly•••Instead of dynamically `import()`ing them in `tests/runner.js`, make each test file instead load `tests/runner.js` and run its own tests. EuAndreh2023-11-103-17/+11
* tests/js/utils.js: Remove test on "new Date()" objectsEuAndreh2023-11-101-8/+0
* src/utils.js: 💅 add extra newline separationEuAndreh2023-11-101-0/+1
* tests/js/server/web.js: Remove unused fileEuAndreh2023-11-101-12/+0
* tests/js/compat.js: Remove unused fileEuAndreh2023-11-102-18/+0
* Makefile: Remove $(JSIMPL) variableEuAndreh2023-11-101-4/+3
* tests/assert-*: Use standartized STDERR message formatEuAndreh2023-11-102-3/+5
* tests/assert-clean.sh: Enforce correctness of "make clean"EuAndreh2023-11-102-0/+48
* tests/assert-install.sh: Fix progress report stringEuAndreh2023-11-101-1/+1
* tools/makehelp.sh: Fix path to lib.shEuAndreh2023-11-101-1/+1