Skip to content

Conversation

@kinyoklion
Copy link
Member

The typings were incorrect for the factories. I am not making this a major version as internally the factories were being called with this type. Additionally the integrations don't use the logger which is what they access from these options.

The feature stores had the correct options.

@kinyoklion kinyoklion marked this pull request as ready for review March 29, 2024 19:44

it('can construct options with a big segment store', () => {
// This is just a typescript test to ensure the typings match.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: We have the varsIgnorePattern eslint rule which we should correct to ignore unused vars:

'@typescript-eslint/no-unused-vars': [
      'error',
      { ignoreRestSiblings: true, argsIgnorePattern: '^_', varsIgnorePattern: '^__' },
    ],

Although vars with dangling underscores violate other eslint rules, which means we should use other patterns, like xx maybe.

@kinyoklion kinyoklion merged commit 723804b into main Apr 1, 2024
@kinyoklion kinyoklion deleted the rlamb/fix-factory-typings branch April 1, 2024 15:37
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
kinyoklion pushed a commit that referenced this pull request Apr 1, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>node-server-sdk-dynamodb: 6.1.5</summary>

##
[6.1.5](node-server-sdk-dynamodb-v6.1.4...node-server-sdk-dynamodb-v6.1.5)
(2024-04-01)


### Bug Fixes

* Fix typings for big segment store factories.
([#413](#413))
([723804b](723804b))
</details>

<details><summary>node-server-sdk-redis: 4.1.5</summary>

##
[4.1.5](node-server-sdk-redis-v4.1.4...node-server-sdk-redis-v4.1.5)
(2024-04-01)


### Bug Fixes

* Fix typings for big segment store factories.
([#413](#413))
([723804b](723804b))
</details>

---
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>
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