Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: improve generic type accuracy #224

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Conversation

toddbaert
Copy link
Member

  • restricts generic args on object resolver (T is now T extends JsonValue)
  • adds optional generic args for string/number resolver for unions of string/number literals

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2022

Codecov Report

Merging #224 (bea3d9f) into main (5253ad9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #224   +/-   ##
=======================================
  Coverage   99.71%   99.71%           
=======================================
  Files          10       10           
  Lines         701      704    +3     
  Branches       84       84           
=======================================
+ Hits          699      702    +3     
  Misses          2        2           
Impacted Files Coverage Δ
src/client.ts 100.00% <100.00%> (ø)
src/no-op-provider.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

test/client.spec.ts Outdated Show resolved Hide resolved
@toddbaert
Copy link
Member Author

rebased on main b/c of conflicts.

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.

LGTM. Works with my provider (with a tiny update to match the new resolveObjectEvaluation signature.)

@toddbaert toddbaert merged commit 12230a5 into main Sep 20, 2022
toddbaert pushed a commit that referenced this pull request Sep 20, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](js-sdk-v0.3.2...js-sdk-v0.4.0)
(2022-09-20)


### ⚠ BREAKING CHANGES

* improve generic type accuracy (#224)
* convert to chainable methods (#221)
* remove flag evaluation options from the provider interface (#185)
* context transformer and related interfaces removed.

### Features

* add client context mutation
([#207](#207))
([5b0442a](5b0442a))
* add logger ([#219](#219))
([763f167](763f167))
* convert to chainable methods
([#221](#221))
([5253ad9](5253ad9))
* improve generic type accuracy
([#224](#224))
([12230a5](12230a5))
* remove ctx transformer, add provider hooks
([#148](#148))
([260432c](260432c))
* remove flag evaluation options from the provider interface
([#185](#185))
([e9852e4](e9852e4)),
closes [#183](#183)


### Bug Fixes

* Add no-op tests
([#99](#99))
([a341f5c](a341f5c))
* Dont push experiemental branches
([#101](#101))
([0a7a5ec](0a7a5ec))
* Fix publish command
([#103](#103))
([4742ef1](4742ef1))
* Fixing error with setProvider type
([#121](#121))
([df5d214](df5d214))
* update the client to conform to the provider interface
([#187](#187))
([f1edb29](f1edb29))

---
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>
lukas-reining pushed a commit that referenced this pull request Jun 29, 2023
Co-authored-by: renovate[bot] <29139614+renovate[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.

5 participants