From a265eb0d84865283e3b27091f4f88db2519b6db2 Mon Sep 17 00:00:00 2001 From: Lucas Coratger <73360179+coratgerl@users.noreply.github.com> Date: Sat, 21 Feb 2026 15:43:13 +0100 Subject: [PATCH 1/3] chore(wabe): refactor gitignore and add files : dist --- .gitignore | 19 +++ .npmignore | 24 --- packages/wabe-buns3/.gitignore | 175 -------------------- packages/wabe-buns3/package.json | 1 + packages/wabe-documentation/.gitignore | 14 -- packages/wabe-mongodb-launcher/package.json | 1 + packages/wabe-mongodb/.gitignore | 175 -------------------- packages/wabe-mongodb/package.json | 1 + packages/wabe-postgres/.gitignore | 175 -------------------- packages/wabe-postgres/package.json | 1 + packages/wabe-resend/.gitignore | 175 -------------------- packages/wabe-resend/package.json | 1 + packages/wabe/package.json | 1 + 13 files changed, 25 insertions(+), 738 deletions(-) delete mode 100644 .npmignore delete mode 100644 packages/wabe-buns3/.gitignore delete mode 100644 packages/wabe-documentation/.gitignore delete mode 100644 packages/wabe-mongodb/.gitignore delete mode 100644 packages/wabe-postgres/.gitignore delete mode 100644 packages/wabe-resend/.gitignore diff --git a/.gitignore b/.gitignore index 0ede1477..39d1e9a1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ dist /.next/ /out/ /build +doc_build/ .DS_Store *.pem npm-debug.log* @@ -22,6 +23,24 @@ package-lock.json **/*.bun .zed +# Caches & build artifacts +.cache +.parcel-cache +*.tsbuildinfo +.eslintcache + +# Coverage +coverage +*.lcov +.nyc_output + +# IDE +.idea +.vscode-test + +# Docusaurus / docs +.temp +.docusaurus cache bucket diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 2ab5dc8f..00000000 --- a/.npmignore +++ /dev/null @@ -1,24 +0,0 @@ -logs -.cache -node_modules/ -.npm -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -cache -build -lib -src -tests -test -CONTRIBUTING.md -CODE_OF_CONDUCT.md -CHANGELOG.md -tsconfig.json -.git -bun.lockb -dev -fixtures diff --git a/packages/wabe-buns3/.gitignore b/packages/wabe-buns3/.gitignore deleted file mode 100644 index 9b1ee42e..00000000 --- a/packages/wabe-buns3/.gitignore +++ /dev/null @@ -1,175 +0,0 @@ -# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore - -# Logs - -logs -_.log -npm-debug.log_ -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Caches - -.cache - -# Diagnostic reports (https://nodejs.org/api/report.html) - -report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json - -# Runtime data - -pids -_.pid -_.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover - -lib-cov - -# Coverage directory used by tools like istanbul - -coverage -*.lcov - -# nyc test coverage - -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) - -.grunt - -# Bower dependency directory (https://bower.io/) - -bower_components - -# node-waf configuration - -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) - -build/Release - -# Dependency directories - -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) - -web_modules/ - -# TypeScript cache - -*.tsbuildinfo - -# Optional npm cache directory - -.npm - -# Optional eslint cache - -.eslintcache - -# Optional stylelint cache - -.stylelintcache - -# Microbundle cache - -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history - -.node_repl_history - -# Output of 'npm pack' - -*.tgz - -# Yarn Integrity file - -.yarn-integrity - -# dotenv environment variable files - -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) - -.parcel-cache - -# Next.js build output - -.next -out - -# Nuxt.js build / generate output - -.nuxt -dist - -# Gatsby files - -# Comment in the public line in if your project uses Gatsby and not Next.js - -# https://nextjs.org/blog/next-9-1#public-directory-support - -# public - -# vuepress build output - -.vuepress/dist - -# vuepress v2.x temp and cache directory - -.temp - -# Docusaurus cache and generated files - -.docusaurus - -# Serverless directories - -.serverless/ - -# FuseBox cache - -.fusebox/ - -# DynamoDB Local files - -.dynamodb/ - -# TernJS port file - -.tern-port - -# Stores VSCode versions used for testing VSCode extensions - -.vscode-test - -# yarn v2 - -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# IntelliJ based IDEs -.idea - -# Finder (MacOS) folder config -.DS_Store diff --git a/packages/wabe-buns3/package.json b/packages/wabe-buns3/package.json index 0cae9e96..609775e9 100644 --- a/packages/wabe-buns3/package.json +++ b/packages/wabe-buns3/package.json @@ -18,6 +18,7 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, + "files": ["dist"], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd) bun", diff --git a/packages/wabe-documentation/.gitignore b/packages/wabe-documentation/.gitignore deleted file mode 100644 index 23a4bc92..00000000 --- a/packages/wabe-documentation/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Local -.DS_Store -*.local -*.log* - -# Dist -node_modules -dist/ -doc_build/ - -# IDE -.vscode/* -!.vscode/extensions.json -.idea diff --git a/packages/wabe-mongodb-launcher/package.json b/packages/wabe-mongodb-launcher/package.json index 9813bc40..5da81ebb 100644 --- a/packages/wabe-mongodb-launcher/package.json +++ b/packages/wabe-mongodb-launcher/package.json @@ -3,6 +3,7 @@ "version": "0.5.2", "description": "Package to launch the mongodb for test", "license": "Apache-2.0", + "files": ["dist"], "main": "dist/index.js", "scripts": { "ci": "bun lint", diff --git a/packages/wabe-mongodb/.gitignore b/packages/wabe-mongodb/.gitignore deleted file mode 100644 index 9b1ee42e..00000000 --- a/packages/wabe-mongodb/.gitignore +++ /dev/null @@ -1,175 +0,0 @@ -# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore - -# Logs - -logs -_.log -npm-debug.log_ -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Caches - -.cache - -# Diagnostic reports (https://nodejs.org/api/report.html) - -report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json - -# Runtime data - -pids -_.pid -_.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover - -lib-cov - -# Coverage directory used by tools like istanbul - -coverage -*.lcov - -# nyc test coverage - -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) - -.grunt - -# Bower dependency directory (https://bower.io/) - -bower_components - -# node-waf configuration - -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) - -build/Release - -# Dependency directories - -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) - -web_modules/ - -# TypeScript cache - -*.tsbuildinfo - -# Optional npm cache directory - -.npm - -# Optional eslint cache - -.eslintcache - -# Optional stylelint cache - -.stylelintcache - -# Microbundle cache - -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history - -.node_repl_history - -# Output of 'npm pack' - -*.tgz - -# Yarn Integrity file - -.yarn-integrity - -# dotenv environment variable files - -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) - -.parcel-cache - -# Next.js build output - -.next -out - -# Nuxt.js build / generate output - -.nuxt -dist - -# Gatsby files - -# Comment in the public line in if your project uses Gatsby and not Next.js - -# https://nextjs.org/blog/next-9-1#public-directory-support - -# public - -# vuepress build output - -.vuepress/dist - -# vuepress v2.x temp and cache directory - -.temp - -# Docusaurus cache and generated files - -.docusaurus - -# Serverless directories - -.serverless/ - -# FuseBox cache - -.fusebox/ - -# DynamoDB Local files - -.dynamodb/ - -# TernJS port file - -.tern-port - -# Stores VSCode versions used for testing VSCode extensions - -.vscode-test - -# yarn v2 - -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# IntelliJ based IDEs -.idea - -# Finder (MacOS) folder config -.DS_Store diff --git a/packages/wabe-mongodb/package.json b/packages/wabe-mongodb/package.json index 376f6edd..f1d89378 100644 --- a/packages/wabe-mongodb/package.json +++ b/packages/wabe-mongodb/package.json @@ -19,6 +19,7 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, + "files": ["dist"], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd)", diff --git a/packages/wabe-postgres/.gitignore b/packages/wabe-postgres/.gitignore deleted file mode 100644 index 9b1ee42e..00000000 --- a/packages/wabe-postgres/.gitignore +++ /dev/null @@ -1,175 +0,0 @@ -# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore - -# Logs - -logs -_.log -npm-debug.log_ -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Caches - -.cache - -# Diagnostic reports (https://nodejs.org/api/report.html) - -report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json - -# Runtime data - -pids -_.pid -_.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover - -lib-cov - -# Coverage directory used by tools like istanbul - -coverage -*.lcov - -# nyc test coverage - -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) - -.grunt - -# Bower dependency directory (https://bower.io/) - -bower_components - -# node-waf configuration - -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) - -build/Release - -# Dependency directories - -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) - -web_modules/ - -# TypeScript cache - -*.tsbuildinfo - -# Optional npm cache directory - -.npm - -# Optional eslint cache - -.eslintcache - -# Optional stylelint cache - -.stylelintcache - -# Microbundle cache - -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history - -.node_repl_history - -# Output of 'npm pack' - -*.tgz - -# Yarn Integrity file - -.yarn-integrity - -# dotenv environment variable files - -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) - -.parcel-cache - -# Next.js build output - -.next -out - -# Nuxt.js build / generate output - -.nuxt -dist - -# Gatsby files - -# Comment in the public line in if your project uses Gatsby and not Next.js - -# https://nextjs.org/blog/next-9-1#public-directory-support - -# public - -# vuepress build output - -.vuepress/dist - -# vuepress v2.x temp and cache directory - -.temp - -# Docusaurus cache and generated files - -.docusaurus - -# Serverless directories - -.serverless/ - -# FuseBox cache - -.fusebox/ - -# DynamoDB Local files - -.dynamodb/ - -# TernJS port file - -.tern-port - -# Stores VSCode versions used for testing VSCode extensions - -.vscode-test - -# yarn v2 - -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# IntelliJ based IDEs -.idea - -# Finder (MacOS) folder config -.DS_Store diff --git a/packages/wabe-postgres/package.json b/packages/wabe-postgres/package.json index 4224434d..ffc97341 100644 --- a/packages/wabe-postgres/package.json +++ b/packages/wabe-postgres/package.json @@ -11,6 +11,7 @@ ], "license": "Apache-2.0", "type": "module", + "files": ["dist"], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { diff --git a/packages/wabe-resend/.gitignore b/packages/wabe-resend/.gitignore deleted file mode 100644 index 9b1ee42e..00000000 --- a/packages/wabe-resend/.gitignore +++ /dev/null @@ -1,175 +0,0 @@ -# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore - -# Logs - -logs -_.log -npm-debug.log_ -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Caches - -.cache - -# Diagnostic reports (https://nodejs.org/api/report.html) - -report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json - -# Runtime data - -pids -_.pid -_.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover - -lib-cov - -# Coverage directory used by tools like istanbul - -coverage -*.lcov - -# nyc test coverage - -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) - -.grunt - -# Bower dependency directory (https://bower.io/) - -bower_components - -# node-waf configuration - -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) - -build/Release - -# Dependency directories - -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) - -web_modules/ - -# TypeScript cache - -*.tsbuildinfo - -# Optional npm cache directory - -.npm - -# Optional eslint cache - -.eslintcache - -# Optional stylelint cache - -.stylelintcache - -# Microbundle cache - -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history - -.node_repl_history - -# Output of 'npm pack' - -*.tgz - -# Yarn Integrity file - -.yarn-integrity - -# dotenv environment variable files - -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) - -.parcel-cache - -# Next.js build output - -.next -out - -# Nuxt.js build / generate output - -.nuxt -dist - -# Gatsby files - -# Comment in the public line in if your project uses Gatsby and not Next.js - -# https://nextjs.org/blog/next-9-1#public-directory-support - -# public - -# vuepress build output - -.vuepress/dist - -# vuepress v2.x temp and cache directory - -.temp - -# Docusaurus cache and generated files - -.docusaurus - -# Serverless directories - -.serverless/ - -# FuseBox cache - -.fusebox/ - -# DynamoDB Local files - -.dynamodb/ - -# TernJS port file - -.tern-port - -# Stores VSCode versions used for testing VSCode extensions - -.vscode-test - -# yarn v2 - -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# IntelliJ based IDEs -.idea - -# Finder (MacOS) folder config -.DS_Store diff --git a/packages/wabe-resend/package.json b/packages/wabe-resend/package.json index 1f9de53b..02089b42 100644 --- a/packages/wabe-resend/package.json +++ b/packages/wabe-resend/package.json @@ -18,6 +18,7 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, + "files": ["dist"], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd)", diff --git a/packages/wabe/package.json b/packages/wabe/package.json index c931c102..ee398244 100644 --- a/packages/wabe/package.json +++ b/packages/wabe/package.json @@ -18,6 +18,7 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, + "files": ["dist"], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd)", From 7650be3a22abfa842d526484fa0f76707fd947b5 Mon Sep 17 00:00:00 2001 From: Lucas Coratger <73360179+coratgerl@users.noreply.github.com> Date: Sat, 21 Feb 2026 15:44:00 +0100 Subject: [PATCH 2/3] fix: remove useless file --- packages/wabe/src/cache/InMemoryCache.test.ts | 62 ------------------- packages/wabe/src/cache/InMemoryCache.ts | 45 -------------- 2 files changed, 107 deletions(-) delete mode 100644 packages/wabe/src/cache/InMemoryCache.test.ts delete mode 100644 packages/wabe/src/cache/InMemoryCache.ts diff --git a/packages/wabe/src/cache/InMemoryCache.test.ts b/packages/wabe/src/cache/InMemoryCache.test.ts deleted file mode 100644 index 00d6de50..00000000 --- a/packages/wabe/src/cache/InMemoryCache.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { describe, expect, it, beforeEach, spyOn } from 'bun:test' -import { InMemoryCache } from './InMemoryCache' - -describe('InMemoryCache', () => { - const inMemoryCache = new InMemoryCache({ - interval: 100, - }) - - beforeEach(() => { - inMemoryCache.clear() - }) - - it('should init a InMemoryCache', () => { - const spySetInterval = spyOn(global, 'setInterval') - const spyClearInterval = spyOn(global, 'clearInterval') - - const store = new InMemoryCache({ interval: 100 }) - - store.stop() - - expect(spySetInterval).toHaveBeenCalledTimes(1) - expect(spySetInterval).toHaveBeenCalledWith(expect.any(Function), 100) - expect(spyClearInterval).toHaveBeenCalledTimes(1) - expect(spyClearInterval).toHaveBeenCalledWith(store.intervalId) - }) - - it('should store a value', () => { - inMemoryCache.set('key', 'value') - - expect(inMemoryCache.get('key')).toBe('value') - }) - - it('should clear an in memory cache', () => { - inMemoryCache.set('key', 'value') - - expect(inMemoryCache.get('key')).toBe('value') - - inMemoryCache.clear() - - expect(inMemoryCache.get('key')).toBeUndefined() - }) - - it('should return undefined if the key does not exist', () => { - expect(inMemoryCache.get('key2')).toBeUndefined() - }) - - it('should clear a cache after timeLimit', () => { - const localInMemoryCache = new InMemoryCache({ - interval: 100, - }) - - localInMemoryCache.set('key', 'value') - - setTimeout(() => { - expect(localInMemoryCache.get('key')).not.toBeUndefined() - }, 50) - - setTimeout(() => { - expect(localInMemoryCache.get('key')).toBeUndefined() - }, 100) - }) -}) diff --git a/packages/wabe/src/cache/InMemoryCache.ts b/packages/wabe/src/cache/InMemoryCache.ts deleted file mode 100644 index 0985a28b..00000000 --- a/packages/wabe/src/cache/InMemoryCache.ts +++ /dev/null @@ -1,45 +0,0 @@ -export interface InMemoryCacheOptions { - /** - * Interval in ms to clear the cache - */ - interval: number -} - -/** - * InMemoryCache is a class that stores data for a certain amount of time - */ -export class InMemoryCache { - private options: InMemoryCacheOptions - private store: Record - - public intervalId: Timer | undefined = undefined - - constructor(options: InMemoryCacheOptions) { - this.options = options - this.store = {} - - this._init() - } - - _init() { - this.intervalId = setInterval(() => { - this.clear() - }, this.options.interval) - } - - set(key: string, value: T) { - this.store[key] = value - } - - get(key: string): T | undefined { - return this.store[key] - } - - clear() { - this.store = {} - } - - stop() { - clearInterval(this.intervalId) - } -} From 027ebf22f12aa881276d983baf2538cdacea6b67 Mon Sep 17 00:00:00 2001 From: Lucas Coratger <73360179+coratgerl@users.noreply.github.com> Date: Sat, 21 Feb 2026 15:45:12 +0100 Subject: [PATCH 3/3] feat: bump --- packages/wabe-mongodb/package.json | 6 ++++-- packages/wabe-postgres/package.json | 6 ++++-- packages/wabe/package.json | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/wabe-mongodb/package.json b/packages/wabe-mongodb/package.json index f1d89378..04ab022c 100644 --- a/packages/wabe-mongodb/package.json +++ b/packages/wabe-mongodb/package.json @@ -1,6 +1,6 @@ { "name": "wabe-mongodb", - "version": "0.5.4", + "version": "0.5.5", "description": "MongoDB adapter for Wabe (official)", "keywords": [ "baas", @@ -19,7 +19,9 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, - "files": ["dist"], + "files": [ + "dist" + ], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd)", diff --git a/packages/wabe-postgres/package.json b/packages/wabe-postgres/package.json index ffc97341..d32059c3 100644 --- a/packages/wabe-postgres/package.json +++ b/packages/wabe-postgres/package.json @@ -1,6 +1,6 @@ { "name": "wabe-postgres", - "version": "0.5.3", + "version": "0.5.4", "description": "PostgreSQL adapter for Wabe (official)", "keywords": [ "adapter", @@ -11,7 +11,9 @@ ], "license": "Apache-2.0", "type": "module", - "files": ["dist"], + "files": [ + "dist" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { diff --git a/packages/wabe/package.json b/packages/wabe/package.json index ee398244..2c98578a 100644 --- a/packages/wabe/package.json +++ b/packages/wabe/package.json @@ -1,6 +1,6 @@ { "name": "wabe", - "version": "0.6.12", + "version": "0.6.13", "description": "Your backend without vendor lock-in in Typescript", "keywords": [ "baas", @@ -18,7 +18,9 @@ "type": "git", "url": "git+https://github.com/palixir/wabe.git" }, - "files": ["dist"], + "files": [ + "dist" + ], "main": "dist/index.js", "scripts": { "build": "bun --filter wabe-build build:package $(pwd)",