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: Deprecate old function/object API #101

Merged
merged 2 commits into from Feb 15, 2020

Conversation

diegohaz
Copy link
Owner

@diegohaz diegohaz commented Feb 15, 2020

This PR deprecates old APIs. There's no breaking changes, only deprecation warnigns.

Migration instructions

Before:

import createUseContext from "constate";
const useCounterContext = createUseContext(useCounter);
<useCounterContext.Provider>
  ...
</useCounterContext.Provider>

After:

import constate from "constate";
const [CounterProvider, useCounterContext] = constate(useCounter);
<CounterProvider>
  ...
</CounterProvider>

@codecov-io
Copy link

codecov-io commented Feb 15, 2020

Codecov Report

Merging #101 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #101   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          43     54   +11     
  Branches        5      7    +2     
=====================================
+ Hits           43     54   +11
Impacted Files Coverage Δ
src/index.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 553405d...ed9b505. Read the comment docs.

@diegohaz diegohaz merged commit c102a31 into master Feb 15, 2020
@diegohaz diegohaz deleted the feat/deprecate-function-object-api branch February 15, 2020 21:37
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.

None yet

2 participants