@pikku/lambda 0.12.7 → 0.12.9
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 +114 -0
- package/dist/handler-factories.d.ts +1 -1
- package/dist/handler-factories.js.map +1 -1
- package/dist/queue/sqs-worker.js +2 -1
- package/dist/queue/sqs-worker.js.map +1 -1
- package/dist/scheduled/run-scheduled.js +2 -1
- package/dist/scheduled/run-scheduled.js.map +1 -1
- package/dist/sqs-queue-service.d.ts +2 -1
- package/dist/sqs-queue-service.js.map +1 -1
- package/dist/websocket/lambda-channel-handler.d.ts +2 -1
- package/dist/websocket/lambda-eventhub-service.d.ts +2 -1
- package/dist/websocket/lambda-eventhub-service.js.map +1 -1
- package/dist/websocket/utils.js +1 -1
- package/dist/websocket/utils.js.map +1 -1
- package/package.json +7 -7
- package/src/handler-factories.ts +2 -3
- package/src/queue/sqs-worker.ts +2 -5
- package/src/scheduled/run-scheduled.ts +2 -1
- package/src/sqs-queue-service.ts +2 -1
- package/src/websocket/lambda-channel-handler.ts +2 -2
- package/src/websocket/lambda-eventhub-service.ts +2 -5
- package/src/websocket/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,117 @@
|
|
|
1
|
+
## 0.12.9
|
|
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
|
+
|
|
101
|
+
## 0.12.8
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- 6794681: Publish the ecosystem surface as per-area sub-barrels under `@pikku/core/ecosystem/*`, and point generated code, the CLI, the inspector and the runtime adapters at them.
|
|
106
|
+
|
|
107
|
+
348 names that only generated code, the toolchain or a runtime adapter ever imports now have a second home on `@pikku/core/ecosystem/<area>` — one sub-barrel per area, matching how core already publishes its entrypoints, so no single barrel grows without bound and a consumer only pulls in the area it uses.
|
|
108
|
+
|
|
109
|
+
This step is additive: every name is still exported from the entrypoint it was published from before, so nothing downstream breaks. Removing them from the app-facing barrels is a later change, and needs a release carrying `./ecosystem/*` first.
|
|
110
|
+
|
|
111
|
+
- Updated dependencies [7406bfe]
|
|
112
|
+
- Updated dependencies [6794681]
|
|
113
|
+
- @pikku/core@0.12.84
|
|
114
|
+
|
|
1
115
|
## 0.12.7
|
|
2
116
|
|
|
3
117
|
### Patch Changes
|
|
@@ -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 { APIGatewayEvent, APIGatewayProxyEventV2 } from 'aws-lambda';
|
|
4
4
|
export interface LambdaServiceFactories {
|
|
5
5
|
createConfig: (variables: LocalVariablesService, ...args: unknown[]) => Promise<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-factories.js","sourceRoot":"","sources":["../src/handler-factories.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"handler-factories.js","sourceRoot":"","sources":["../src/handler-factories.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AA0BjE,IAAI,cAAc,GAAiC,IAAI,CAAA;AAEvD,KAAK,UAAU,aAAa,CAC1B,SAAiC;IAEjC,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,MAA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E,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAA;YACpE,OAAO,mBAAmB,CAAC,KAAK,EAAE,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,CAAC,CAAA;QACxE,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,KAAsB;YAClC,MAAM,aAAa,CAAC,SAAS,CAAC,CAAA;YAC9B,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAA;YACxE,OAAO,uBAAuB,CAAC,KAAK,EAAE;gBACpC,YAAY,EAAE,eAAe,EAAE;aAChC,CAAC,CAAA;QACJ,CAAC;KACF,CAAA;AACH,CAAC"}
|
package/dist/queue/sqs-worker.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { runQueueJob
|
|
1
|
+
import { runQueueJob } from '@pikku/core/queue';
|
|
2
|
+
import { QueueJobFailedError, QueueJobDiscardedError } from '@pikku/core/queue';
|
|
2
3
|
export function mapSQSRecordToQueueJob(record, maxAttempts) {
|
|
3
4
|
let data;
|
|
4
5
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqs-worker.js","sourceRoot":"","sources":["../../src/queue/sqs-worker.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"sqs-worker.js","sourceRoot":"","sources":["../../src/queue/sqs-worker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAO/E,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,WAAoB;IAEpB,IAAI,IAAS,CAAA;IAEb,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,GAAG,MAAM,CAAC,IAAI,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from '@pikku/core/scheduler';
|
|
2
|
+
import { getScheduledTasks } from '@pikku/core/scheduler';
|
|
2
3
|
export const runLambdaScheduled = async (_event) => {
|
|
3
4
|
const scheduledTasks = getScheduledTasks();
|
|
4
5
|
for (const [name] of scheduledTasks) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scheduled.js","sourceRoot":"","sources":["../../src/scheduled/run-scheduled.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"run-scheduled.js","sourceRoot":"","sources":["../../src/scheduled/run-scheduled.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAsB,EACP,EAAE;IACjB,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAA;IAI1C,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,QAAQ,MAAM,CAAC,UAAU,EAAE,EAAE,CAAA;QAC7C,IAAI,CAAC;YACH,MAAM,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;QAC3C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CACX,mBAAmB,IAAI,eAAe,OAAO,WAAW,EACxD,GAAG,CACJ,CAAA;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { QueueService, QueueJob
|
|
1
|
+
import type { QueueService, QueueJob } from '@pikku/core/queue';
|
|
2
|
+
import type { JobOptions } from '@pikku/core/queue';
|
|
2
3
|
export declare class SQSQueueService implements QueueService {
|
|
3
4
|
private queueUrlMap?;
|
|
4
5
|
readonly supportsResults = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqs-queue-service.js","sourceRoot":"","sources":["../src/sqs-queue-service.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"sqs-queue-service.js","sourceRoot":"","sources":["../src/sqs-queue-service.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAInE,MAAM,OAAO,eAAe;IAIN;IAHX,eAAe,GAAG,KAAK,CAAA;IACxB,MAAM,CAAW;IAEzB,YAAoB,WAAoC;QAApC,gBAAW,GAAX,WAAW,CAAyB;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,CAAC,CAAA;IACjC,CAAC;IAED,KAAK,CAAC,GAAG,CACP,SAAiB,EACjB,IAAO,EACP,OAAoB;QAEpB,MAAM,QAAQ,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAA;QAChD,MAAM,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE,CAAA;QAErC,MAAM,OAAO,GAAG;YACd,EAAE,EAAE,SAAS;YACb,SAAS;YACT,IAAI;YACJ,WAAW,EAAE,OAAO,EAAE,WAAW;SAClC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACnC,IAAI,kBAAkB,CAAC;YACrB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YACpC,YAAY,EAAE,OAAO,EAAE,KAAK;gBAC1B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC;gBAChD,CAAC,CAAC,SAAS;SACd,CAAC,CACH,CAAA;QAED,OAAO,MAAM,CAAC,SAAS,IAAI,SAAS,CAAA;IACtC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,UAAkB,EAClB,MAAc;QAEd,MAAM,IAAI,KAAK,CACb,6CAA6C;YAC3C,0BAA0B;YAC1B,uDAAuD,CAC1D,CAAA;IACH,CAAC;IASO,eAAe,CAAC,SAAiB;QACvC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QACpC,CAAC;QAED,MAAM,MAAM,GAAG,iBAAiB,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAA;QAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAE/B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,sCAAsC,SAAS,KAAK;gBAClD,4BAA4B,MAAM,sCAAsC,CAC3E,CAAA;QACH,CAAC;QAED,OAAO,GAAG,CAAA;IACZ,CAAC;CACF;AAED,SAAS,gBAAgB,CAAC,IAAY;IACpC,OAAO,IAAI;SACR,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;SACtC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;SAClB,WAAW,EAAE,CAAA;AAClB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChannelStore
|
|
1
|
+
import type { ChannelStore } from '@pikku/core/channel';
|
|
2
|
+
import type { PikkuChannelHandlerFactory } from '@pikku/core/channel';
|
|
2
3
|
import type { ApiGatewayManagementApiClient } from '@aws-sdk/client-apigatewaymanagementapi';
|
|
3
4
|
import type { Logger } from '@pikku/core/services';
|
|
4
5
|
export declare const createLambdaChannelHandlerFactory: (logger: Logger, channelStore: ChannelStore, callbackAPI: ApiGatewayManagementApiClient) => PikkuChannelHandlerFactory;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ChannelStore, EventHubService
|
|
1
|
+
import type { ChannelStore, EventHubService } from '@pikku/core/channel';
|
|
2
|
+
import type { EventHubStore } from '@pikku/core/channel';
|
|
2
3
|
import type { Logger } from '@pikku/core/services';
|
|
3
4
|
import type { APIGatewayEvent } from 'aws-lambda';
|
|
4
5
|
export declare class LambdaEventHubService<EventTopics extends Record<string, any> = {}> implements EventHubService<EventTopics> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lambda-eventhub-service.js","sourceRoot":"","sources":["../../src/websocket/lambda-eventhub-service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lambda-eventhub-service.js","sourceRoot":"","sources":["../../src/websocket/lambda-eventhub-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI3E,MAAM,OAAO,qBAAqB;IAMtB;IAEA;IACA;IANF,WAAW,CAA+B;IAElD,YACU,MAAc,EACtB,KAAsB,EACd,YAA0B,EAC1B,aAAyC;QAHzC,WAAM,GAAN,MAAM,CAAQ;QAEd,iBAAY,GAAZ,YAAY,CAAc;QAC1B,kBAAa,GAAb,aAAa,CAA4B;QAEjD,IAAI,CAAC,WAAW,GAAG,gCAAgC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IACpE,CAAC;IAED,KAAK,CAAC,SAAS,CACb,KAAQ,EACR,SAAiB;QAEjB,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;IACtD,CAAC;IAED,KAAK,CAAC,WAAW,CACf,KAAQ,EACR,SAAiB;QAEjB,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;IACxD,CAAC;IAED,KAAK,CAAC,OAAO,CACX,KAAQ,EACR,SAAwB,EACxB,IAAoB,EACpB,QAAkB;QAElB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAC/D,KAAe,CAChB,CAAA;QACD,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;QAChE,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,YAAY,CACxB,UAAoB,EACpB,aAAqB,EACrB,IAAoC,EACpC,QAAkB;QAElB,MAAM,YAAY,CAChB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,WAAW,EAChB,aAAa,EACb,UAAU,EACV,IAAI,EACJ,QAAQ,CACT,CAAA;IACH,CAAC;CACF"}
|
package/dist/websocket/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiGatewayManagementApiClient, PostToConnectionCommand, } from '@aws-sdk/client-apigatewaymanagementapi';
|
|
2
|
-
import { getSingletonServices } from '@pikku/core/
|
|
2
|
+
import { getSingletonServices } from '@pikku/core/state';
|
|
3
3
|
import { createLambdaChannelHandlerFactory } from './lambda-channel-handler.js';
|
|
4
4
|
export const sendMessage = async (logger, callbackAPI, ConnectionId, Data) => {
|
|
5
5
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/websocket/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/websocket/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAA;AAG/E,MAAM,CAAC,MAAM,WAAW,GAA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AA;AACxE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/lambda",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.9",
|
|
4
4
|
"description": "AWS Lambda runtime for Pikku — HTTP, WebSocket, SQS queue and scheduled handlers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "yasser.fadl@gmail.com",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.713.0",
|
|
29
29
|
"@aws-sdk/client-lambda": "^3.713.0",
|
|
30
30
|
"@aws-sdk/client-sqs": "^3.713.0",
|
|
31
|
-
"@pikku/core": "^0.12.
|
|
31
|
+
"@pikku/core": "^0.12.85",
|
|
32
32
|
"@types/aws-lambda": "^8.10.161"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@aws-sdk/client-apigatewaymanagementapi": "^3.
|
|
36
|
-
"@aws-sdk/client-lambda": "^3.
|
|
37
|
-
"@aws-sdk/client-sqs": "^3.
|
|
38
|
-
"@types/aws-lambda": "^8.10.
|
|
35
|
+
"@aws-sdk/client-apigatewaymanagementapi": "^3.1111.0",
|
|
36
|
+
"@aws-sdk/client-lambda": "^3.1111.0",
|
|
37
|
+
"@aws-sdk/client-sqs": "^3.1111.0",
|
|
38
|
+
"@types/aws-lambda": "^8.10.162",
|
|
39
39
|
"typescript": "^6.0.3"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=24"
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
}
|
package/src/handler-factories.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { LocalVariablesService, LocalSecretService } from '@pikku/core/services'
|
|
9
|
-
import type { CoreSingletonServices } from '@pikku/core'
|
|
9
|
+
import type { CoreSingletonServices } from '@pikku/core/types'
|
|
10
10
|
import type { ChannelStore } from '@pikku/core/channel'
|
|
11
11
|
import { runFetchV2 } from './http/run-fetch-v2.js'
|
|
12
12
|
import { runSQSQueueWorker } from './queue/sqs-worker.js'
|
|
@@ -33,8 +33,7 @@ export interface LambdaServiceFactories {
|
|
|
33
33
|
* Generated by the deploy codegen based on unit capabilities.
|
|
34
34
|
*/
|
|
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
|
package/src/queue/sqs-worker.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { SQSBatchResponse, SQSEvent, SQSRecord } from 'aws-lambda'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
QueueJobFailedError,
|
|
5
|
-
QueueJobDiscardedError,
|
|
6
|
-
} from '@pikku/core/queue'
|
|
2
|
+
import { runQueueJob } from '@pikku/core/queue'
|
|
3
|
+
import { QueueJobFailedError, QueueJobDiscardedError } from '@pikku/core/queue'
|
|
7
4
|
import type { Logger } from '@pikku/core/services'
|
|
8
5
|
import type { QueueJob, QueueJobStatus } from '@pikku/core/queue'
|
|
9
6
|
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import type { ScheduledEvent } from 'aws-lambda'
|
|
10
|
-
import { runScheduledTask
|
|
10
|
+
import { runScheduledTask } from '@pikku/core/scheduler'
|
|
11
|
+
import { getScheduledTasks } from '@pikku/core/scheduler'
|
|
11
12
|
|
|
12
13
|
export const runLambdaScheduled = async (
|
|
13
14
|
_event: ScheduledEvent
|
package/src/sqs-queue-service.ts
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { SQSClient, SendMessageCommand } from '@aws-sdk/client-sqs'
|
|
11
|
-
import type { QueueService, QueueJob
|
|
11
|
+
import type { QueueService, QueueJob } from '@pikku/core/queue'
|
|
12
|
+
import type { JobOptions } from '@pikku/core/queue'
|
|
12
13
|
|
|
13
14
|
export class SQSQueueService implements QueueService {
|
|
14
15
|
readonly supportsResults = false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CoreUserSession } from '@pikku/core'
|
|
1
|
+
import type { CoreUserSession } from '@pikku/core/types'
|
|
2
|
+
import type { ChannelStore } from '@pikku/core/channel'
|
|
2
3
|
import type {
|
|
3
4
|
BinaryData,
|
|
4
|
-
ChannelStore,
|
|
5
5
|
PikkuChannelHandlerFactory,
|
|
6
6
|
} from '@pikku/core/channel'
|
|
7
7
|
import { PikkuAbstractChannelHandler } from '@pikku/core/channel'
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ApiGatewayManagementApiClient } from '@aws-sdk/client-apigatewaymanagementapi'
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
EventHubService,
|
|
5
|
-
EventHubStore,
|
|
6
|
-
} from '@pikku/core/channel'
|
|
2
|
+
import type { ChannelStore, EventHubService } from '@pikku/core/channel'
|
|
3
|
+
import type { EventHubStore } from '@pikku/core/channel'
|
|
7
4
|
import { getApiGatewayManagementApiClient, sendMessages } from './utils.js'
|
|
8
5
|
import type { Logger } from '@pikku/core/services'
|
|
9
6
|
import type { APIGatewayEvent } from 'aws-lambda'
|
package/src/websocket/utils.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PostToConnectionCommand,
|
|
4
4
|
} from '@aws-sdk/client-apigatewaymanagementapi'
|
|
5
5
|
import type { Logger } from '@pikku/core/services'
|
|
6
|
-
import { getSingletonServices } from '@pikku/core/
|
|
6
|
+
import { getSingletonServices } from '@pikku/core/state'
|
|
7
7
|
import type { APIGatewayEvent } from 'aws-lambda'
|
|
8
8
|
import { createLambdaChannelHandlerFactory } from './lambda-channel-handler.js'
|
|
9
9
|
import type { ChannelStore } from '@pikku/core/channel'
|