You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS Lambda provider currently emits ES5 CommonJS and publishes build/raygun.aws.js plus build/raygun.aws.d.ts. It depends at runtime on the core raygun package. Dependabot PR #182 attempted to update TypeScript from 5.9.3 to 7.0.2, but that cannot be treated as a dependency-only upgrade:
TypeScript 7 removes target: "es5".
The current typescript-eslint toolchain supports TypeScript >=4.8.4 <6.1.0, so the automated PR fails during npm ci.
TypeScript 7 changes compiler defaults including rootDir and types; an implicit layout change could move output away from the published package entry point.
The package has no explicit engines field, so the supported Node/AWS Lambda runtime floor must be decided rather than inferred from a compiler upgrade.
The provider imports CommonJS APIs and a built subpath from raygun; its migration must remain coordinated with the core SDK.
PR #182 was intentionally closed and TypeScript 7 Dependabot updates were ignored for the current compatibility line. PR #185 first aligns this provider with Raygun4Node on TypeScript 6.0.3 while explicitly preserving byte-for-byte identical ES5 output and setting rootDir: "./lib".
The coordinated core migration is tracked in MindscapeHQ/raygun4node#538. This provider should not move to TS 7 ahead of the corresponding core compatibility decision.
Decisions required before implementation
Supported AWS Lambda/Node.js runtimes
Document the supported Lambda Node runtime set and whether an explicit package engines field should be added.
Align the minimum with the core raygun package or document why this wrapper differs.
Treat removal of an older runtime as an explicit release-policy decision.
Emitted JavaScript target
Select a target supported by every retained Lambda runtime (at least ES2015; potentially newer based on policy).
Preserve ES5 until that decision is approved; TypeScript 6 is the temporary compatibility bridge.
CommonJS and package layout
Preserve CommonJS unless an independently reviewed module-format migration is approved.
Keep build/raygun.aws.js and build/raygun.aws.d.ts stable, or version/document any entry-point change.
Keep rootDir explicit to prevent compiler-default layout drift.
Core SDK coordination
Validate against the intended released or packed raygun version.
Confirm direct and built-subpath imports remain valid under the selected package/module strategy.
Toolchain readiness
Use typescript-eslint, ESLint integrations, ts-node, and Tap versions that officially support TypeScript 7.
Do not bypass peer dependency checks with --force or --legacy-peer-deps.
Context
The AWS Lambda provider currently emits ES5 CommonJS and publishes
build/raygun.aws.jsplusbuild/raygun.aws.d.ts. It depends at runtime on the coreraygunpackage. Dependabot PR #182 attempted to update TypeScript from 5.9.3 to 7.0.2, but that cannot be treated as a dependency-only upgrade:target: "es5".typescript-eslinttoolchain supports TypeScript>=4.8.4 <6.1.0, so the automated PR fails duringnpm ci.rootDirandtypes; an implicit layout change could move output away from the published package entry point.enginesfield, so the supported Node/AWS Lambda runtime floor must be decided rather than inferred from a compiler upgrade.raygun; its migration must remain coordinated with the core SDK.PR #182 was intentionally closed and TypeScript 7 Dependabot updates were ignored for the current compatibility line. PR #185 first aligns this provider with Raygun4Node on TypeScript 6.0.3 while explicitly preserving byte-for-byte identical ES5 output and setting
rootDir: "./lib".The coordinated core migration is tracked in MindscapeHQ/raygun4node#538. This provider should not move to TS 7 ahead of the corresponding core compatibility decision.
Decisions required before implementation
Supported AWS Lambda/Node.js runtimes
enginesfield should be added.raygunpackage or document why this wrapper differs.Emitted JavaScript target
CommonJS and package layout
build/raygun.aws.jsandbuild/raygun.aws.d.tsstable, or version/document any entry-point change.rootDirexplicit to prevent compiler-default layout drift.Core SDK coordination
raygunversion.Toolchain readiness
typescript-eslint, ESLint integrations,ts-node, and Tap versions that officially support TypeScript 7.--forceor--legacy-peer-deps.Proposed implementation sequence
Acceptance criteria
tsconfig.jsonexplicitly sets the options needed to prevent default-driven layout/type changes.raygunpackage.npm packcontainsbuild/raygun.aws.jsandbuild/raygun.aws.d.tsat the documented paths.Non-goals