Skip to content

Conversation

@cwaldren-ld
Copy link
Contributor

This tiny feature allows users to pass nil as the third argument to clientInit to request default configuration:

ld.clientInit("sdk-key", 1000, nil)

Before, you had to explicitly pass an empty {} table. I think this is more idiomatic/intuitive. I could be wrong.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #234812: Allow passing nil for default config in Lua.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review March 8, 2024 21:30
@cwaldren-ld cwaldren-ld requested a review from a team March 8, 2024 21:30
Copy link
Member

@kinyoklion kinyoklion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't feel more idiomatic to me, but it also doesn't feel harmful.

@cwaldren-ld cwaldren-ld merged commit e7c0dfe into main Mar 11, 2024
@cwaldren-ld cwaldren-ld deleted the cw/sc-234812/config-nil-argument branch March 11, 2024 23:20
This was referenced Mar 11, 2024
cwaldren-ld pushed a commit that referenced this pull request Mar 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.1.0](v2.0.6...v2.1.0)
(2024-03-11)


### Features

* allow nil to be passed for clientInit config
([#94](#94))
([e7c0dfe](e7c0dfe))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: LaunchDarklyReleaseBot <LaunchDarklyReleaseBot@launchdarkly.com>
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.

3 participants