Compare commits
No commits in common. "master" and "v3.4.0" have entirely different histories.
|
@ -0,0 +1,37 @@
|
||||||
|
<!--
|
||||||
|
Questions:
|
||||||
|
https://groups.google.com/forum/#!forum/loopbackjs
|
||||||
|
https://gitter.im/strongloop/loopback
|
||||||
|
Immediate support:
|
||||||
|
https://strongloop.com/api-connect-faqs/
|
||||||
|
https://strongloop.com/node-js/subscription-plans/
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Description/Steps to reproduce
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If feature: A description of the feature
|
||||||
|
If bug: Steps to reproduce
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Link to reproduction sandbox
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Link to an app sandbox for reproduction
|
||||||
|
|
||||||
|
Note: Failure to provide a sandbox application for reproduction purposes will result in the issue being closed.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Expected result
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Also include actual results if bug
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Additional information
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copy+paste the output of these two commands:
|
||||||
|
node -e 'console.log(process.platform, process.arch, process.versions.node)'
|
||||||
|
npm ls --prod --depth 0 | grep loopback
|
||||||
|
-->
|
|
@ -1,50 +0,0 @@
|
||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
labels: bug
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨
|
|
||||||
|
|
||||||
HELP US HELP YOU, PLEASE
|
|
||||||
- Do a quick search to avoid duplicate issues
|
|
||||||
- Provide as much information as possible (reproduction sandbox, use case for features, etc.)
|
|
||||||
- Consider using a more suitable venue for questions such as Stack Overflow, Gitter, etc.
|
|
||||||
|
|
||||||
Please fill in the *entire* template below.
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
## Steps to reproduce
|
|
||||||
|
|
||||||
<!-- Describe how to reproduce the issue -->
|
|
||||||
|
|
||||||
## Current Behavior
|
|
||||||
|
|
||||||
<!-- Describe the observed result -->
|
|
||||||
|
|
||||||
## Expected Behavior
|
|
||||||
|
|
||||||
<!-- Describe what did you expect instead, what is the desired outcome? -->
|
|
||||||
|
|
||||||
## Link to reproduction sandbox
|
|
||||||
|
|
||||||
<!--
|
|
||||||
See https://loopback.io/doc/en/contrib/Reporting-issues.html#loopback-3x-bugs
|
|
||||||
Note: Failure to provide a sandbox application for reproduction purposes will result in the issue being closed.
|
|
||||||
-->
|
|
||||||
|
|
||||||
## Additional information
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Copy+paste the output of these two commands:
|
|
||||||
node -e 'console.log(process.platform, process.arch, process.versions.node)'
|
|
||||||
npm ls --prod --depth 0 | grep loopback
|
|
||||||
-->
|
|
||||||
|
|
||||||
## Related Issues
|
|
||||||
|
|
||||||
<!-- Did you find other bugs that looked similar? -->
|
|
||||||
|
|
||||||
_See [Reporting Issues](http://loopback.io/doc/en/contrib/Reporting-issues.html) for more tips on writing good issues_
|
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
labels: feature
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Suggestion
|
|
||||||
|
|
||||||
<!-- A summary of what you'd like to see added or changed -->
|
|
||||||
|
|
||||||
## Use Cases
|
|
||||||
|
|
||||||
<!--
|
|
||||||
What do you want to use this for?
|
|
||||||
What shortcomings exist with current approaches?
|
|
||||||
-->
|
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
<!-- Show how this would be used and what the behavior would be -->
|
|
||||||
|
|
||||||
## Acceptance criteria
|
|
||||||
|
|
||||||
TBD - will be filled by the team.
|
|
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
name: Question
|
|
||||||
about: The issue tracker is not for questions. Please use Stack Overflow or other resources for help.
|
|
||||||
labels: question
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨
|
|
||||||
|
|
||||||
THE ISSUE TRACKER IS NOT FOR QUESTIONS.
|
|
||||||
|
|
||||||
DO NOT CREATE A NEW ISSUE TO ASK A QUESTION.
|
|
||||||
|
|
||||||
Please use one of the following resources for help:
|
|
||||||
|
|
||||||
**Questions**
|
|
||||||
|
|
||||||
- https://stackoverflow.com/tags/loopbackjs
|
|
||||||
- https://groups.google.com/forum/#!forum/loopbackjs
|
|
||||||
- https://gitter.im/strongloop/loopback
|
|
||||||
|
|
||||||
**Immediate support**
|
|
||||||
|
|
||||||
- https://strongloop.com/api-connect-faqs/
|
|
||||||
- https://strongloop.com/node-js/subscription-plans/
|
|
||||||
|
|
||||||
-->
|
|
|
@ -1,11 +0,0 @@
|
||||||
blank_issues_enabled: false
|
|
||||||
contact_links:
|
|
||||||
- name: Report a security vulnerability
|
|
||||||
url: https://loopback.io/doc/en/contrib/Reporting-issues.html#security-issues
|
|
||||||
about: Do not report security vulnerabilities using GitHub issues. Please send an email to `reachsl@us.ibm.com` instead.
|
|
||||||
- name: Get help on StackOverflow
|
|
||||||
url: https://stackoverflow.com/tags/loopbackjs
|
|
||||||
about: Please ask and answer questions on StackOverflow.
|
|
||||||
- name: Join our mailing list
|
|
||||||
url: https://groups.google.com/forum/#!forum/loopbackjs
|
|
||||||
about: You can also post your question to our mailing list.
|
|
|
@ -1,18 +1,25 @@
|
||||||
|
### Description
|
||||||
|
|
||||||
|
|
||||||
|
#### Related issues
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please provide a high-level description of the changes made by your pull request.
|
Please use the following link syntaxes:
|
||||||
|
|
||||||
Include references to all related GitHub issues and other pull requests, for example:
|
- connect to #49 (to reference issues in the current repository)
|
||||||
|
- connect to strongloop/loopback#49 (to reference issues in another repository)
|
||||||
Fixes #123
|
|
||||||
Implements #254
|
|
||||||
See also #23
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## Checklist
|
- connect to <link_to_referenced_issue>
|
||||||
|
|
||||||
👉 [Read and sign the CLA (Contributor License Agreement)](https://cla.strongloop.com/agreements/strongloop/loopback-context) 👈
|
### Checklist
|
||||||
|
|
||||||
|
<!--
|
||||||
|
- Please mark your choice with an "x" (i.e. [x], see
|
||||||
|
https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments)
|
||||||
|
- PR's without test coverage will be closed.
|
||||||
|
-->
|
||||||
|
|
||||||
- [ ] `npm test` passes on your machine
|
|
||||||
- [ ] New tests added or existing tests modified to cover all changes
|
- [ ] New tests added or existing tests modified to cover all changes
|
||||||
- [ ] Code conforms with the [style guide](https://loopback.io/doc/en/contrib/style-guide-es6.html)
|
- [ ] Code conforms with the [style
|
||||||
- [ ] Commit messages are following our [guidelines](https://loopback.io/doc/en/contrib/git-commit-messages.html)
|
guide](http://loopback.io/doc/en/contrib/style-guide.html)
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
# Number of days of inactivity before an issue becomes stale
|
|
||||||
daysUntilStale: 60
|
|
||||||
# Number of days of inactivity before a stale issue is closed
|
|
||||||
daysUntilClose: 14
|
|
||||||
# Issues with these labels will never be considered stale
|
|
||||||
exemptLabels:
|
|
||||||
- pinned
|
|
||||||
- security
|
|
||||||
- critical
|
|
||||||
- p1
|
|
||||||
- major
|
|
||||||
- good first issue
|
|
||||||
# Label to use when marking an issue as stale
|
|
||||||
staleLabel: stale
|
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
||||||
markComment: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed if no further activity occurs. Thank you
|
|
||||||
for your contributions.
|
|
||||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
||||||
closeComment: >
|
|
||||||
This issue has been closed due to continued inactivity. Thank you for your understanding.
|
|
||||||
If you believe this to be in error, please contact one of the code owners,
|
|
||||||
listed in the `CODEOWNERS` file at the top-level of this repository.
|
|
|
@ -1,6 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
|
- "6"
|
||||||
- "8"
|
- "8"
|
||||||
- "10"
|
- "10"
|
||||||
- "12"
|
|
||||||
|
|
26
CHANGES.md
26
CHANGES.md
|
@ -1,29 +1,3 @@
|
||||||
2021-01-19, Version 3.5.2
|
|
||||||
=========================
|
|
||||||
|
|
||||||
* chore: update LTS status to End-of-Life (Rifa Achrinza)
|
|
||||||
|
|
||||||
|
|
||||||
2020-03-06, Version 3.5.1
|
|
||||||
=========================
|
|
||||||
|
|
||||||
* Update LTS status in README (Miroslav Bajtoš)
|
|
||||||
|
|
||||||
|
|
||||||
2020-02-17, Version 3.5.0
|
|
||||||
=========================
|
|
||||||
|
|
||||||
* Add support for Node.js 12 (Ahmet Cetin)
|
|
||||||
|
|
||||||
* chore: enable stalebot (Diana Lau)
|
|
||||||
|
|
||||||
* chore: improve issue and PR templates (Nora)
|
|
||||||
|
|
||||||
* Drop support for Node.js 6.x (Miroslav Bajtoš)
|
|
||||||
|
|
||||||
* chore: update copyrights years (Agnes Lin)
|
|
||||||
|
|
||||||
|
|
||||||
2019-01-02, Version 3.4.0
|
2019-01-02, Version 3.4.0
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
22
README.md
22
README.md
|
@ -1,19 +1,11 @@
|
||||||
# loopback-context
|
# loopback-context
|
||||||
|
|
||||||
**⚠️ LoopBack 3 has reached end of life. We are no longer accepting pull requests or providing
|
|
||||||
support for community users. The only exception is fixes for critical bugs and security
|
|
||||||
vulnerabilities provided as part of support for IBM API Connect customers. (See
|
|
||||||
[Module Long Term Support Policy](#module-long-term-support-policy) below.)**
|
|
||||||
|
|
||||||
We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as
|
|
||||||
soon as possible. Refer to our
|
|
||||||
[Migration Guide](https://loopback.io/doc/en/lb4/migration-overview.html)
|
|
||||||
for more information on how to upgrade.
|
|
||||||
|
|
||||||
## Overview
|
|
||||||
|
|
||||||
Current context for LoopBack applications, based on cls-hooked.
|
Current context for LoopBack applications, based on cls-hooked.
|
||||||
|
|
||||||
|
This module is in Active LTS mode, new features are no longer accepted.
|
||||||
|
(See [Module Long Term Support Policy](#module-long-term-support-policy) below.)
|
||||||
|
LoopBack 3 users looking for new features are encouraged to upgrade to LoopBack 4. Refer to [loopback-next#1849](https://github.com/strongloop/loopback-next/issues/1849) for more information on how to upgrade.
|
||||||
|
|
||||||
## WARNING
|
## WARNING
|
||||||
|
|
||||||
**`cls-hooked` module uses undocumented `AsyncWrap` API that was introduced to Node.js relatively recently. While this new API seems to be more reliable than the old `async-listener` used by `continuation-local-storage`, there are still cases where the context (local storage) is not preserved correctly. Please consider this risk before using loopback-context.**
|
**`cls-hooked` module uses undocumented `AsyncWrap` API that was introduced to Node.js relatively recently. While this new API seems to be more reliable than the old `async-listener` used by `continuation-local-storage`, there are still cases where the context (local storage) is not preserved correctly. Please consider this risk before using loopback-context.**
|
||||||
|
@ -249,7 +241,7 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN
|
||||||
|
|
||||||
| Version | Status | Published | EOL |
|
| Version | Status | Published | EOL |
|
||||||
| ------- | --------------- | --------- | -------- |
|
| ------- | --------------- | --------- | -------- |
|
||||||
| 3.x | End-of-Life | Jan 2017 | Dec 2020 |
|
| 3.x | Active LTS | Jan 2017 | Dec 2019 |
|
||||||
| 1.x | End-of-Life | Aug 2016 | Apr 2019 |
|
| 1.x | Maintenance LTS | Aug 2016 | Apr 2019 |
|
||||||
|
|
||||||
Learn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html).
|
Learn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html).
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright IBM Corp. 2016. All Rights Reserved.
|
// Copyright IBM Corp. 2015. All Rights Reserved.
|
||||||
// Node module: loopback-context
|
// Node module: loopback-context-cls
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright IBM Corp. 2016. All Rights Reserved.
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
// Node module: loopback-context
|
// Node module: loopback-context
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "loopback-context",
|
"name": "loopback-context",
|
||||||
"version": "3.5.2",
|
"version": "3.4.0",
|
||||||
"description": "Current context for LoopBack applications, based on cls-hooked",
|
"description": "Current context for LoopBack applications, based on cls-hooked",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^8.2.1 || ^10.14 || ^12.15"
|
"node": "^6.0 || ^8.2.1 || ^10.14"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"StrongLoop",
|
"StrongLoop",
|
||||||
|
@ -35,6 +35,5 @@
|
||||||
"mocha": "^5.2.0",
|
"mocha": "^5.2.0",
|
||||||
"supertest": "^3.1.0",
|
"supertest": "^3.1.0",
|
||||||
"when-3.7.7": "file:./test/stub-modules/when-3.7.7"
|
"when-3.7.7": "file:./test/stub-modules/when-3.7.7"
|
||||||
},
|
}
|
||||||
"author": "IBM Corp."
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright IBM Corp. 2016,2017. All Rights Reserved.
|
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
|
||||||
// Node module: loopback-context
|
// Node module: loopback-context-cls
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright IBM Corp. 2016. All Rights Reserved.
|
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
|
||||||
// Node module: loopback-context
|
// Node module: loopback-context-cls
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
// Copyright IBM Corp. 2016. All Rights Reserved.
|
|
||||||
// Node module: loopback-context
|
|
||||||
// This file is licensed under the MIT License.
|
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var chai = require('chai');
|
var chai = require('chai');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright IBM Corp. 2016,2018. All Rights Reserved.
|
// Copyright IBM Corp. 2013,2016. All Rights Reserved.
|
||||||
// Node module: loopback-context
|
// Node module: loopback-context-cls
|
||||||
// This file is licensed under the MIT License.
|
// This file is licensed under the MIT License.
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
// License text available at https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,2 @@
|
||||||
// Copyright IBM Corp. 2017. All Rights Reserved.
|
|
||||||
// Node module: loopback-context
|
|
||||||
// This file is licensed under the MIT License.
|
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
module.exports = require('async');
|
module.exports = require('async');
|
||||||
|
|
|
@ -1,7 +1,2 @@
|
||||||
// Copyright IBM Corp. 2017. All Rights Reserved.
|
|
||||||
// Node module: loopback-context
|
|
||||||
// This file is licensed under the MIT License.
|
|
||||||
// License text available at https://opensource.org/licenses/MIT
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
module.exports = require('when');
|
module.exports = require('when');
|
||||||
|
|
Loading…
Reference in New Issue