@pikku/azure-functions 0.12.6 → 0.12.7

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,103 @@
1
+ ## 0.12.7
2
+
3
+ ### Patch Changes
4
+
5
+ - 266e3bc: One door per name: `@pikku/core/ecosystem/*` and the package root are gone
6
+
7
+ `@pikku/core` published every module twice. `ecosystem/http` re-exported
8
+ `./http`, `ecosystem/services` re-exported `./services`, and a name was
9
+ reachable through either — so every addition had to be made in two places, and a
10
+ consumer's import said nothing about what it actually used. The package root was
11
+ the same problem at a larger scale: a single barrel of 206 names that no bundler
12
+ could take apart, and the one specifier that revealed nothing at all.
13
+
14
+ Both are deleted. Every name now lives on the subpath that owns it, and every
15
+ import carries that subpath — `@pikku/core/http`, `@pikku/core/services`,
16
+ `@pikku/core/errors`, `@pikku/core/types`.
17
+
18
+ Deleting the facades meant the raw subpaths had to become a superset of them,
19
+ which they were not: the facade tree had accumulated 25 names with no raw home
20
+ and about 26 more filed under a different area than the module they came from.
21
+ Those names moved to the area that owns them, and three areas were published as
22
+ new entry points rather than left on a root that is going away — `./types` (the
23
+ shared type surface, the largest single destination), `./state` and
24
+ `./classification`.
25
+
26
+ `./classification` is one door onto one subject: what a value is and how it must
27
+ be handled. Its three halves would each have been an entry point — the brands
28
+ and manifest types, the stored-form helpers (`hashToken`, `unsafeAsSealed` and
29
+ friends), and `SecretValue` — split by whether a name happens to be a type or a
30
+ value, which is the same defect as the facades. The duration and versioned-id
31
+ helpers went to `./utils`, which already published, and `PikkuRequest` went to
32
+ `./function`: it is the transport-agnostic request base, not an HTTP one — HTTP
33
+ has `PikkuHTTPAbstractRequest`, and the only thing outside core that extends
34
+ `PikkuRequest` is Azure's timer request.
35
+
36
+ `./types` inherited the root barrel's habit before it inherited its contents, so
37
+ the names with an owner elsewhere were moved off it. The middleware types and the
38
+ five middleware factories — `pikkuMiddleware`, `pikkuMiddlewareFactory`,
39
+ `pikkuChannelMiddleware`, `pikkuChannelMiddlewareFactory` and
40
+ `pikkuAgentMiddleware`, runtime values on a types entry point — are now
41
+ `@pikku/core/middleware`; the function meta types are `@pikku/core/function`;
42
+ `SerializedError` is `@pikku/core/errors`; and the generic TypeScript helpers
43
+ (`MakeRequired`, `PickRequired`, `PickOptional`, `RequireAtLeastOne`,
44
+ `JSONPrimitive`, `JSONValue`) are `@pikku/core/utils`. What is left on `./types`
45
+ is the vocabulary the wirings share, which no single module owns.
46
+
47
+ `pikku` was itself a root barrel — `export * from '@pikku/core'` — and
48
+ now exports only the services it bundles.
49
+
50
+ One module survives at the old specifier, and only for the bootstrap:
51
+ `packages/cli` is generated by the _published_ CLI pinned in its `build.sh`, and
52
+ that CLI still writes a bare `@pikku/core` into the files it generates for the
53
+ CLI itself. `bootstrap-compat/root.ts` carries the eight types it names, a test
54
+ in core fails if that list grows, and it goes when the pin moves to a CLI
55
+ released from this branch. The adapter names the pinned CLI reaches for —
56
+ `pikkuState` and `CreateWireServices` — are rewritten to `@pikku/core/state` and
57
+ `@pikku/core/types` by the same `build.sh` patch pass, so no second shim is
58
+ needed for them.
59
+
60
+ A guard test keeps the root shut: it parses imports and rejects a bare
61
+ `@pikku/core` rather than grepping for it, because several tests hold a user's
62
+ file as a template literal, where `import … from '@pikku/core'` is fixture text
63
+ rather than an import this repo makes.
64
+
65
+ An agent scaffold a project generated under an older CLI is refreshed rather
66
+ than left to fail: `pikku all` already deleted one importing an entry point
67
+ `@pikku/core` no longer publishes, and the `#pikku` hub joins that list.
68
+ Without it a project that scaffolds the agent endpoint but
69
+ declares no agents keeps the old file forever — the generator that would rewrite
70
+ it only runs when agents exist, and the file being present is what stops it
71
+ being regenerated as missing.
72
+
73
+ `pikku new addon` also wrote a tsconfig `paths` map naming only the deleted hub.
74
+ An addon's `imports` map points into `dist`, so `paths` is what resolves
75
+ `#pikku/<leaf>` for the addon's own source build — it now names the two leaf
76
+ patterns, in both the addon and its test harness.
77
+
78
+ - 6eef0a0: Bump every dependency to its latest compatible minor/patch across the monorepo.
79
+ - Updated dependencies [7722ceb]
80
+ - Updated dependencies [375c1ff]
81
+ - Updated dependencies [02a70cd]
82
+ - Updated dependencies [aeef159]
83
+ - Updated dependencies [a281de6]
84
+ - Updated dependencies [266e3bc]
85
+ - Updated dependencies [02a70cd]
86
+ - Updated dependencies [786dae5]
87
+ - Updated dependencies [6eef0a0]
88
+ - Updated dependencies [3561d67]
89
+ - Updated dependencies [a91c433]
90
+ - Updated dependencies [02a70cd]
91
+ - Updated dependencies [9537f74]
92
+ - Updated dependencies [2b57ca8]
93
+ - Updated dependencies [266e3bc]
94
+ - Updated dependencies [9fce0f1]
95
+ - Updated dependencies [83683a0]
96
+ - Updated dependencies [456c88b]
97
+ - Updated dependencies [456c88b]
98
+ - Updated dependencies [c127273]
99
+ - @pikku/core@0.12.85
100
+
1
101
  ## 0.12.6
2
102
 
3
103
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import type { DeploymentService, DeploymentConfig } from '@pikku/core/ecosystem/services';
1
+ import type { DeploymentService, DeploymentConfig } from '@pikku/core/services';
2
2
  import type { JWTService } from '@pikku/core/services';
3
3
  import type { SecretService } from '@pikku/core/services';
4
4
  export declare class AzureDeploymentService implements DeploymentService {
@@ -1,4 +1,4 @@
1
- import { buildRemoteHeaders } from '@pikku/core/ecosystem/remote';
1
+ import { buildRemoteHeaders } from '@pikku/core/remote';
2
2
  export class AzureDeploymentService {
3
3
  jwt;
4
4
  secrets;
@@ -1 +1 @@
1
- {"version":3,"file":"azure-deployment-service.js","sourceRoot":"","sources":["../src/azure-deployment-service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,OAAO,sBAAsB;IAIvB;IACA;IAJF,QAAQ,CAAqB;IAErC,YACU,GAA2B,EAC3B,OAAsB,EAC9B,gBAAwC;QAFhC,QAAG,GAAH,GAAG,CAAwB;QAC3B,YAAO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AG,EACR,IAAI,CAAC,OAAO,EACZ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAA;QAED,MAAM,GAAG,GAAG,GAAG,WAAW,eAAe,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAA;QACvE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;YAChC,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;SAC/B,CAAC,CAAA;QAEF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,IAAI,SAAiB,CAAA;YACrB,IAAI,CAAC;gBACH,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;YACnD,CAAC;YAAC,MAAM,CAAC;gBACP,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;YACnC,CAAC;YACD,MAAM,IAAI,KAAK,CACb,uBAAuB,QAAQ,aAAa,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,EAAE,CACnG,CAAA;QACH,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAA;IACxB,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import type { QueueService, QueueJob } from '@pikku/core/queue';
2
- import type { JobOptions } from '@pikku/core/ecosystem/queue';
2
+ import type { JobOptions } from '@pikku/core/queue';
3
3
  export declare class AzureQueueService implements QueueService {
4
4
  readonly supportsResults = false;
5
5
  private queueServiceClient;
@@ -1,5 +1,5 @@
1
1
  import { LocalVariablesService } from '@pikku/core/services';
2
- import type { CoreSingletonServices } from '@pikku/core';
2
+ import type { CoreSingletonServices } from '@pikku/core/types';
3
3
  import type { HttpRequest, HttpResponseInit, InvocationContext } from '@azure/functions';
4
4
  export interface AzureServiceFactories {
5
5
  createConfig: (variables: LocalVariablesService, ...args: unknown[]) => Promise<unknown>;
@@ -2,7 +2,7 @@ import { LocalVariablesService, LocalSecretService } from '@pikku/core/services'
2
2
  import { PikkuFetchHTTPResponse, fetchData } from '@pikku/core/http';
3
3
  import { runQueueJob } from '@pikku/core/queue';
4
4
  import { runScheduledTask } from '@pikku/core/scheduler';
5
- import { getScheduledTasks } from '@pikku/core/ecosystem/scheduler';
5
+ import { getScheduledTasks } from '@pikku/core/scheduler';
6
6
  let cachedServices = null;
7
7
  async function setupServices(factories) {
8
8
  if (cachedServices)
@@ -1 +1 @@
1
- {"version":3,"file":"handler-factories.js","sourceRoot":"","sources":["../src/handler-factories.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEhF,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAsBnE,IAAI,cAAc,GAAiC,IAAI,CAAA;AAEvD,KAAK,UAAU,aAAa,CAC1B,SAAgC;IAEhC,IAAI,cAAc;QAAE,OAAO,cAAc,CAAA;IACzC,MAAM,SAAS,GAAG,IAAI,qBAAqB,CACzC,OAAO,CAAC,GAAyC,CAClD,CAAA;IACD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;IACtD,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,SAAS,CAAC,CAAA;IAEjD,MAAM,gBAAgB,GAAG,SAAS,CAAC,sBAAsB;QACvD,CAAC,CAAC,MAAM,SAAS,CAAC,sBAAsB,EAAE;QAC1C,CAAC,CAAC,EAAE,CAAA;IAEN,cAAc,GAAG,MAAM,SAAS,CAAC,uBAAuB,CAAC,MAAM,EAAE;QAC/D,SAAS;QACT,OAA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AE,EAAE,CAAA;YAC7C,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAA;YAC1C,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,EAAE,CAAC;gBACpC,MAAM,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;YAC3C,CAAC;QACH,CAAC,CAAA;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAKD,MAAM,UAAU,wBAAwB,CAAC,SAAgC;IACvE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACzD,OAAO,QAAQ,CAAA;AACjB,CAAC;AAMD,MAAM,UAAU,2BAA2B,CAAC,UAAiC;IAC3E,OAAO;QACL,KAAK,CAAC,SAAS,CACb,QAAqB,EACrB,QAA2B;YAG3B,OAAO;gBACL,MAAM,EAAE,GAAG;gBACX,IAAI,EAAE,oDAAoD;aAC3D,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { InvocationContext } from '@azure/functions';
2
2
  import type { Logger, LogLevel } from '@pikku/core/services';
3
- import type { Safe } from '@pikku/core';
3
+ import type { Safe } from '@pikku/core/classification';
4
4
  export declare class AzInvocationLogger implements Logger {
5
5
  private context;
6
6
  constructor(context: InvocationContext);
@@ -1,5 +1,5 @@
1
1
  import type { InvocationContext } from '@azure/functions';
2
- import { PikkuRequest } from '@pikku/core/ecosystem/types';
2
+ import { PikkuRequest } from '@pikku/core/function';
3
3
  export declare class PikkuAZTimerRequest<In = any> extends PikkuRequest<In> {
4
4
  constructor(_context: InvocationContext, data: In);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { PikkuRequest } from '@pikku/core/ecosystem/types';
1
+ import { PikkuRequest } from '@pikku/core/function';
2
2
  export class PikkuAZTimerRequest extends PikkuRequest {
3
3
  constructor(_context, data) {
4
4
  super(data);
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-az-timer-request.js","sourceRoot":"","sources":["../src/pikku-az-timer-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE1D,MAAM,OAAO,mBAA8B,SAAQ,YAAgB;IACjE,YAAY,QAA2B,EAAE,IAAQ;QAC/C,KAAK,CAAC,IAAI,CAAC,CAAA;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"pikku-az-timer-request.js","sourceRoot":"","sources":["../src/pikku-az-timer-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,MAAM,OAAO,mBAA8B,SAAQ,YAAgB;IACjE,YAAY,QAA2B,EAAE,IAAQ;QAC/C,KAAK,CAAC,IAAI,CAAC,CAAA;IACb,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/azure-functions",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "Azure Functions runtime for Pikku — HTTP, timer and storage-queue handlers",
5
5
  "license": "MIT",
6
6
  "author": "yasser.fadl@gmail.com",
@@ -18,7 +18,7 @@
18
18
  "prepublishOnly": "yarn build"
19
19
  },
20
20
  "peerDependencies": {
21
- "@pikku/core": "^0.12.84"
21
+ "@pikku/core": "^0.12.85"
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^6.0.3"
@@ -27,10 +27,10 @@
27
27
  "node": ">=24"
28
28
  },
29
29
  "dependencies": {
30
- "@azure/functions": "4.11.2",
31
- "@azure/storage-queue": "^12.25.0"
30
+ "@azure/functions": "4.16.2",
31
+ "@azure/storage-queue": "^12.31.0"
32
32
  },
33
33
  "exports": {
34
34
  ".": "./dist/index.js"
35
35
  }
36
- }
36
+ }
@@ -9,13 +9,10 @@
9
9
  * JWT signed with PIKKU_REMOTE_SECRET, session encrypted in payload.
10
10
  */
11
11
 
12
- import type {
13
- DeploymentService,
14
- DeploymentConfig,
15
- } from '@pikku/core/ecosystem/services'
12
+ import type { DeploymentService, DeploymentConfig } from '@pikku/core/services'
16
13
  import type { JWTService } from '@pikku/core/services'
17
14
  import type { SecretService } from '@pikku/core/services'
18
- import { buildRemoteHeaders } from '@pikku/core/ecosystem/remote'
15
+ import { buildRemoteHeaders } from '@pikku/core/remote'
19
16
 
20
17
  export class AzureDeploymentService implements DeploymentService {
21
18
  private bindings: Map<string, string>
@@ -10,7 +10,7 @@
10
10
  import { QueueServiceClient } from '@azure/storage-queue'
11
11
  import type { QueueClient } from '@azure/storage-queue'
12
12
  import type { QueueService, QueueJob } from '@pikku/core/queue'
13
- import type { JobOptions } from '@pikku/core/ecosystem/queue'
13
+ import type { JobOptions } from '@pikku/core/queue'
14
14
 
15
15
  export class AzureQueueService implements QueueService {
16
16
  readonly supportsResults = false
@@ -10,12 +10,12 @@
10
10
  */
11
11
 
12
12
  import { LocalVariablesService, LocalSecretService } from '@pikku/core/services'
13
- import type { CoreSingletonServices } from '@pikku/core'
13
+ import type { CoreSingletonServices } from '@pikku/core/types'
14
14
  import { PikkuFetchHTTPResponse, fetchData } from '@pikku/core/http'
15
15
  import { runQueueJob } from '@pikku/core/queue'
16
16
  import type { QueueJob, QueueJobStatus } from '@pikku/core/queue'
17
17
  import { runScheduledTask } from '@pikku/core/scheduler'
18
- import { getScheduledTasks } from '@pikku/core/ecosystem/scheduler'
18
+ import { getScheduledTasks } from '@pikku/core/scheduler'
19
19
  import type {
20
20
  HttpRequest,
21
21
  HttpResponseInit,
@@ -33,8 +33,7 @@ export interface AzureServiceFactories {
33
33
  existingServices?: Partial<Record<string, unknown>>
34
34
  ) => Promise<CoreSingletonServices>
35
35
  createPlatformServices?: () =>
36
- | Record<string, unknown>
37
- | Promise<Record<string, unknown>>
36
+ Record<string, unknown> | Promise<Record<string, unknown>>
38
37
  }
39
38
 
40
39
  let cachedServices: CoreSingletonServices | null = null
@@ -1,6 +1,6 @@
1
1
  import type { InvocationContext } from '@azure/functions'
2
2
  import type { Logger, LogLevel } from '@pikku/core/services'
3
- import type { Safe } from '@pikku/core'
3
+ import type { Safe } from '@pikku/core/classification'
4
4
 
5
5
  export class AzInvocationLogger implements Logger {
6
6
  // private logLevel: LogLevel = LogLevel.info
@@ -1,4 +1,4 @@
1
- import { createSecretValue } from '@pikku/core'
1
+ import { createSecretValue } from '@pikku/core/classification'
2
2
  import type { AzInvocationLogger } from './pikku-az-functions-logger.js'
3
3
 
4
4
  // A concrete logger must not be a way around the `Logger` guard.
@@ -1,5 +1,5 @@
1
1
  import type { InvocationContext } from '@azure/functions'
2
- import { PikkuRequest } from '@pikku/core/ecosystem/types'
2
+ import { PikkuRequest } from '@pikku/core/function'
3
3
 
4
4
  export class PikkuAZTimerRequest<In = any> extends PikkuRequest<In> {
5
5
  constructor(_context: InvocationContext, data: In) {
@@ -6,7 +6,5 @@
6
6
  "declaration": false,
7
7
  "declarationMap": false
8
8
  },
9
- "files": [
10
- "src/pikku-az-functions-logger.type.test.ts"
11
- ]
9
+ "files": ["src/pikku-az-functions-logger.type.test.ts"]
12
10
  }