Skip to content

[SEMVER-MAJOR] Remove current-context API - #2564

Merged
bajtos merged 2 commits into
masterfrom
feature/remove-current-context
Aug 10, 2016
Merged

[SEMVER-MAJOR] Remove current-context API#2564
bajtos merged 2 commits into
masterfrom
feature/remove-current-context

Conversation

@bajtos

@bajtosbajtos commented Jul 29, 2016

Copy link
Copy Markdown
Member

Change all current-context APIs to throw a helpful error.

This is a follow-up for strongloop/loopback-context#1

Based on our discussions, I think we should remove getCurrentContext from LoopBack 3.0. In order to simplify upgrade path and allow community to take over maintenance of CLS-based current context, I want to follow the same process we did with loopback-boot and that is to extract the functionality into a standalone module that can be versioned independently.

See also #2559 which deprecates current-context API in 2.x.

@raymondfeng@ritch please review
cc @strongloop/loopback-dev FYI

@raymondfeng

Copy link
Copy Markdown
Member

LGTM

@bajtos

Copy link
Copy Markdown
MemberAuthor

@slnode test please

@bajtos

Copy link
Copy Markdown
MemberAuthor

I am waiting for https://github.com/strongloop/loopback-context/pull/3/files before landing this PR.

@bajtos
bajtosforce-pushed the feature/remove-current-context branch from 48204c0 to 7ea5b91CompareAugust 10, 2016 11:40
@bajtosbajtos assigned bajtos and unassigned ritch and raymondfengAug 10, 2016
Change all current-context APIs to throw a helpful error.
@bajtos
bajtosforce-pushed the feature/remove-current-context branch from 7ea5b91 to 59a82a9CompareAugust 10, 2016 11:44
@bajtos
bajtos merged commit f13e584 into masterAug 10, 2016
@bajtos
bajtos deleted the feature/remove-current-context branch August 10, 2016 12:14
@bajtosbajtos removed the #review label Aug 10, 2016
Sign up for freeto 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

@bajtos@raymondfeng@ritch