Skip to content

Fix module import bug#249

Closed
gabsong wants to merge 1 commit into
CoorpAcademy:masterfrom
gabsong:master
Closed

Fix module import bug#249
gabsong wants to merge 1 commit into
CoorpAcademy:masterfrom
gabsong:master

Conversation

@gabsong

@gabsong gabsong commented Apr 14, 2023

Copy link
Copy Markdown

This is a pull request to fix a bug in the library. It's not possible to do a ES module import within the ServerlessOfflineKinesis class.

Here's the corresponding issue: #250

@gabsong

gabsong commented Apr 18, 2023

Copy link
Copy Markdown
Author

@godu @AdrieanKhisbe @silouone would be great if you can review!

silouone added a commit that referenced this pull request Jun 19, 2026
…nt-def fixes

- Serverless v4 logger migration (src/log.js shim threaded in; handler errors are now logged instead of silently swallowed).
- Fix undefined this.region -> this.options.region so emitted events carry awsRegion. Re-implements #166 (thanks @zlalvani).
- Replace the infinite silent handler retry with a bounded, logged retry (default maximumRetryAttempts=10, mirrors dynamodb-streams). Re-implements #100 (thanks @dolsem).
- Await this.lambda.create(...). Re-implements #249 (thanks @gabsong).
- Fix kinesis-event-definition omit list (tableName -> streamName copy-paste bug).
- Backward compatible with serverless v3. Adds docker-free unit tests. v7.1.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@silouone

Copy link
Copy Markdown
Member

Thank you @gabsong for fixing the module import bug and properly awaiting lambda.create — that was an important correctness fix. It's now implemented in #265 (on master now, released shortly in the next release of serverless-offline-kinesis), which also adds Serverless Framework v4 support while moving our test/CI harness to osls (the community license-free fork of Serverless v3) to keep local-dev and CI free and open since v4 went to a paid license. Closing in favor of #265 — appreciated 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants