@classytic/arc 2.11.0 → 2.11.2

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 (40) hide show
  1. package/README.md +146 -670
  2. package/dist/adapters/index.d.mts +2 -2
  3. package/dist/audit/index.d.mts +1 -1
  4. package/dist/auth/index.d.mts +1 -1
  5. package/dist/core/index.d.mts +2 -2
  6. package/dist/{createApp-DvNYEhpb.mjs → createApp-P1d6rjPy.mjs} +1 -1
  7. package/dist/docs/index.d.mts +1 -1
  8. package/dist/events/index.d.mts +1 -1
  9. package/dist/factory/index.d.mts +2 -2
  10. package/dist/factory/index.mjs +2 -2
  11. package/dist/hooks/index.d.mts +1 -1
  12. package/dist/idempotency/index.d.mts +1 -1
  13. package/dist/{index-Cm0vUrr_.d.mts → index-6u4_Gg6G.d.mts} +49 -8
  14. package/dist/{index-DAushRTt.d.mts → index-BbMrcvGp.d.mts} +1 -1
  15. package/dist/{index-t8pLpPFW.d.mts → index-BdXnTPRj.d.mts} +1 -1
  16. package/dist/{index-DsJ1MNfC.d.mts → index-DdQ3O9Pg.d.mts} +1 -1
  17. package/dist/index.d.mts +4 -4
  18. package/dist/index.mjs +1 -1
  19. package/dist/integrations/index.d.mts +1 -1
  20. package/dist/integrations/mcp/index.d.mts +2 -2
  21. package/dist/integrations/mcp/testing.d.mts +1 -1
  22. package/dist/{loadResources-YNwKHvRA.mjs → loadResources-CPpkyKfM.mjs} +29 -7
  23. package/dist/middleware/index.d.mts +1 -1
  24. package/dist/org/index.d.mts +1 -1
  25. package/dist/pipeline/index.d.mts +1 -1
  26. package/dist/plugins/index.d.mts +1 -1
  27. package/dist/plugins/tracing-entry.mjs +1 -1
  28. package/dist/presets/filesUpload.d.mts +1 -1
  29. package/dist/presets/index.d.mts +1 -1
  30. package/dist/presets/multiTenant.d.mts +1 -1
  31. package/dist/presets/search.d.mts +1 -1
  32. package/dist/registry/index.d.mts +1 -1
  33. package/dist/testing/index.d.mts +2 -2
  34. package/dist/testing/index.mjs +1 -1
  35. package/dist/types/index.d.mts +1 -1
  36. package/dist/{types-D9NqiYIw.d.mts → types-9beEMe25.d.mts} +1 -1
  37. package/dist/{types-CgikqKAj.d.mts → types-BH7dEGvU.d.mts} +74 -10
  38. package/dist/utils/index.d.mts +1 -1
  39. package/package.json +3 -1
  40. package/skills/arc/SKILL.md +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classytic/arc",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "Resource-oriented backend framework for Fastify — clean, minimal, powerful, tree-shakable",
5
5
  "type": "module",
6
6
  "exports": {
@@ -234,6 +234,8 @@
234
234
  "test:unit": "vitest run tests/core tests/hooks tests/utils tests/plugins",
235
235
  "smoke": "node scripts/smoke-test.mjs",
236
236
  "push": "classytic-push",
237
+ "release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
238
+ "release": "npm run push -- main && npm run release:tag && npm publish",
237
239
  "prepublishOnly": "npm run typecheck && npm run lint && npm run build && npm run test:ci && npm run smoke"
238
240
  },
239
241
  "engines": {
@@ -8,11 +8,11 @@ description: |
8
8
  Triggers: arc, fastify resource, defineResource, createApp, BaseController, arc preset,
9
9
  arc auth, arc events, arc jobs, arc websocket, arc mcp, arc plugin, arc testing, arc cli,
10
10
  arc permissions, arc hooks, arc pipeline, arc factory, arc cache, arc QueryCache.
11
- version: 2.11.0
11
+ version: 2.11.1
12
12
  license: MIT
13
13
  metadata:
14
14
  author: Classytic
15
- version: "2.11.0"
15
+ version: "2.11.1"
16
16
  tags:
17
17
  - fastify
18
18
  - rest-api
@@ -1079,7 +1079,7 @@ const app = await createApp({
1079
1079
 
1080
1080
  `loadResources()` discovers files matching `*.resource.{ts,js,mts,mjs}`, recursively. Pass `import.meta.url` for dev/prod parity (resolves to `src/` in dev, `dist/` in prod automatically). Discovers `default` export, `export const resource`, OR any named export with `toPlugin()` (e.g., `export const userResource`).
1081
1081
 
1082
- Options: `exclude`, `include`, `suffix`, `recursive`, `silent`.
1082
+ Options: `exclude`, `include`, `suffix`, `recursive`, `context`, `logger`. Silent by default — pass `logger: { warn(msg) {...} }` to receive skip / factory-failure diagnostics.
1083
1083
 
1084
1084
  **Per-resource opt-out of `resourcePrefix`** — for webhooks, admin routes:
1085
1085
  ```typescript