Skip to content

Commit

Permalink
del: remove deprecated makeContext function (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein authored Dec 23, 2020
1 parent 8cdc2ae commit 7dcd9b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ Use Firestore in React with zero effort, using MobX 🤘

## [Unreleased]

## [3.0.0] - 2020-12-23
## [3.0.1] - 2020-12-23

### Added

- Add support for MobX 6! 🤘🤘🤘🤘🤘🤘
- Add `FirestorterConfig` type definition.

### Removed

- MobX 5 and 4 are no longer supported. Use `firestorter@2` instead.
- Removed the deprecated `makeContext` function. Use `makeFirestorterContext` instead.

## [2.0.1] - 2019-12-02

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firestorter",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simple & super fast Firestore to React bindings using Mobx observables",
"keywords": [
"react-firestore-mobox",
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
getFirestore,
initFirestorter,
makeFirestorterContext,
makeContext, // Deprecated
IContext,
} from './init';

Expand All @@ -39,7 +38,6 @@ export {
Mode,
isTimestamp,
makeFirestorterContext,
makeContext, // Deprecated
IContext,
// Geo queries
GeoQuery,
Expand Down
7 changes: 0 additions & 7 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ export function makeFirestorterContext(config: FirestorterConfig): IContext {
};
}

export function makeContext(config: FirestorterConfig) {
console.warn(
`Firestorter 'makeContext' function has been deprecated, use \`makeFirestorterContext\` instead`
);
return makeFirestorterContext(config);
}

function getContext(obj?: IHasContext): IContext {
if (obj?.context) {
return obj.context;
Expand Down

0 comments on commit 7dcd9b2

Please sign in to comment.