@twasik4/pocket-service 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +21 -0
  3. package/README.md +637 -297
  4. package/dist/index.d.mts +747 -0
  5. package/dist/index.d.mts.map +1 -0
  6. package/dist/index.mjs +4 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/runtime/worker-thread.d.mts +1 -0
  9. package/dist/runtime/worker-thread.mjs +2 -0
  10. package/dist/runtime/worker-thread.mjs.map +1 -0
  11. package/package.json +53 -10
  12. package/dist/index.d.ts +0 -734
  13. package/dist/index.js +0 -6
  14. package/dist/index.js.map +0 -1
  15. package/dist/worker-thread.d.ts +0 -2
  16. package/dist/worker-thread.js +0 -2
  17. package/dist/worker-thread.js.map +0 -1
  18. package/src/index.ts +0 -1
  19. package/src/worker-thread.ts +0 -159
  20. package/src/workers/auth/strategies.ts +0 -304
  21. package/src/workers/db/clickhouse/index.ts +0 -76
  22. package/src/workers/db/mongo/collection.ts +0 -293
  23. package/src/workers/db/mongo/mongo.ts +0 -401
  24. package/src/workers/express-types.ts +0 -442
  25. package/src/workers/index.ts +0 -7
  26. package/src/workers/logger.ts +0 -19
  27. package/src/workers/service.ts +0 -1015
  28. package/src/workers/stream-handler.ts +0 -25
  29. package/src/workers/types.ts +0 -59
  30. package/src/workers/utils.ts +0 -19
  31. package/tests/auth-strategies.spec.ts +0 -150
  32. package/tests/clickhouse.spec.ts +0 -102
  33. package/tests/express-types.spec.ts +0 -232
  34. package/tests/mongo-advanced.spec.ts +0 -172
  35. package/tests/mongo.spec.ts +0 -141
  36. package/tests/redis.spec.ts +0 -36
  37. package/tests/service.spec.ts +0 -82
  38. package/tests/utils.spec.ts +0 -30
  39. package/tsconfig.json +0 -12
  40. package/tsup.config.ts +0 -11
  41. package/vitest.config.ts +0 -8
package/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ ## 1.1.0 - 2026-07-26
4
+
5
+ ### Added
6
+
7
+ - Added expanded unit coverage for split service helpers:
8
+ - api helper tests
9
+ - config helper tests
10
+ - lifecycle helper tests
11
+ - shutdown helper tests
12
+ - workers helper tests
13
+ - Added integration coverage for worker route auth behavior:
14
+ - default header fallback enabled path
15
+ - default header fallback disabled path
16
+ - Added publish safeguards in package scripts:
17
+ - prepublishOnly
18
+ - pack:check
19
+
20
+ ### Changed
21
+
22
+ - Refactored internal service helper layout under src/core/service for clearer separation of concerns.
23
+ - Restructured tests into tests/unit and tests/integration.
24
+ - Tightened package metadata and publish surface:
25
+ - corrected ESM entry/type paths to dist output
26
+ - restricted published files to dist, README, and LICENSE
27
+ - added repository/bugs/homepage/keywords/engines metadata
28
+ - set scoped package publish access to public
29
+ - Improved worker thread entry resolution in service workers runtime.
30
+
31
+ ### Notes
32
+
33
+ - Public import surface remains package-root based:
34
+ - import from @twasik4/pocket-service
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Triston Wasik
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.