Skip to content

Commit f5e1f76

Browse files
prepare 2.14.1 release (#1)
1 parent 37271e3 commit f5e1f76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+17248
-0
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:11.10.1
6+
steps:
7+
- checkout
8+
9+
- run: npm install
10+
- run: npm run lint
11+
- run: npm run build:min
12+
- run:
13+
command: npm test
14+
environment:
15+
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
16+
- run: npm run check-typescript
17+
- run:
18+
name: dependency audit
19+
command: ./scripts/better-audit.sh
20+
- store_test_results:
21+
path: reports/junit/
22+
- store_artifacts:
23+
path: reports/junit/

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
coverage/
3+
dist/
4+
eventsource.js

.eslintrc.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
---
2+
parser: babel-eslint
3+
root: true
4+
extends:
5+
- prettier
6+
env:
7+
es6: true
8+
node: true
9+
plugins:
10+
- babel
11+
- prettier
12+
globals:
13+
VERSION: true
14+
describe: true
15+
it: true
16+
expect: true
17+
jest: true
18+
beforeAll: true
19+
afterAll: true
20+
beforeEach: true
21+
afterEach: true
22+
window: true
23+
document: true
24+
rules:
25+
# https://github.com/prettier/eslint-plugin-prettier
26+
prettier/prettier:
27+
- error
28+
29+
# https://github.com/babel/eslint-plugin-babel
30+
babel/semi: error
31+
32+
# https://eslint.org/docs/rules/array-callback-return
33+
array-callback-return: error
34+
35+
# https://eslint.org/docs/rules/curly
36+
curly:
37+
- error
38+
- all
39+
40+
# https://eslint.org/docs/rules/no-implicit-coercion
41+
no-implicit-coercion:
42+
- 'off'
43+
- boolean: false
44+
number: true
45+
string: true
46+
allow: []
47+
48+
# https://eslint.org/docs/rules/no-eval
49+
no-eval: error
50+
51+
# https://eslint.org/docs/rules/no-implied-eval
52+
no-implied-eval: error
53+
54+
# https://eslint.org/docs/rules/no-param-reassign
55+
no-param-reassign:
56+
- error
57+
- props: true
58+
59+
# https://eslint.org/docs/rules/no-return-assign
60+
no-return-assign: error
61+
62+
# https://eslint.org/docs/rules/no-self-compare
63+
no-self-compare: error
64+
65+
# https://eslint.org/docs/rules/radix
66+
radix: error
67+
68+
# https://eslint.org/docs/rules/no-array-constructor
69+
no-array-constructor: error
70+
71+
# https://eslint.org/docs/rules/no-new-wrappers
72+
no-new-wrappers: error
73+
74+
# https://eslint.org/docs/rules/no-cond-assign
75+
no-cond-assign: error
76+
77+
# https://eslint.org/docs/rules/no-use-before-define
78+
no-use-before-define:
79+
- error
80+
- functions: false
81+
82+
# https://eslint.org/docs/rules/eqeqeq
83+
eqeqeq: error
84+
85+
# Deprecations are required to turn enforce this
86+
camelcase: warn
87+
88+
# https://eslint.org/docs/rules/no-new-object
89+
no-new-object: error
90+
91+
# https://eslint.org/docs/rules/no-nested-ternary
92+
no-nested-ternary: error
93+
94+
# https://eslint.org/docs/rules/no-unused-vars
95+
no-unused-vars: error
96+
97+
# https://eslint.org/docs/rules/no-var
98+
no-var: error
99+
100+
# https://eslint.org/docs/rules/prefer-const
101+
prefer-const: error
102+
103+
# https://eslint.org/docs/rules/prefer-arrow-callback
104+
prefer-arrow-callback: error
105+
106+
# https://eslint.org/docs/rules/arrow-body-style
107+
arrow-body-style:
108+
- error
109+
- as-needed
110+
111+
# https://eslint.org/docs/rules/no-undef
112+
no-undef: error
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is this a support request?**
11+
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going [here](https://support.launchdarkly.com/) and clicking "submit a request", or by emailing [email protected].
12+
13+
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
14+
15+
**Describe the bug**
16+
A clear and concise description of what the bug is.
17+
18+
**To reproduce**
19+
Steps to reproduce the behavior.
20+
21+
**Expected behavior**
22+
A clear and concise description of what you expected to happen.
23+
24+
**Logs**
25+
If applicable, add any log output related to your problem.
26+
27+
**SDK version**
28+
The version of this SDK that you are using.
29+
30+
**Language version, developer tools**
31+
For instance, Go 1.11 or Ruby 2.5.3. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.
32+
33+
**OS/platform**
34+
For instance, Ubuntu 16.04, Windows 10, or Android 4.0.3. If your code is running in a browser, please also include the browser type and version.
35+
36+
**Additional context**
37+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I would love to see the SDK [...does something new...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context about the feature request here.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package.json

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"printWidth": 120
5+
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Change log
2+
3+
All notable changes to the `launchdarkly-js-sdk-common` package will be documented in this file. Changes that affect the dependent SDKs such as `launchdarkly-js-client-sdk` should also be logged in those projects, in the next release that uses the updated version of this package. This project adheres to [Semantic Versioning](http://semver.org).
4+
5+
6+
Prior to the 2.15.0 release, this code was a monorepo subpackage in the [`js-client-sdk`](https://github.com/launchdarkly/js-client-sdk) repo. See the [changelog](https://github.com/launchdarkly/js-client-sdk/blob/2.14.0/CHANGELOG.md) in that repo for changes prior to that version. It is now maintained in this repo and has its own versioning and changelog.

CONTRIBUTING.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing to This Project
2+
3+
The `launchdarkly-js-sdk-common` package provides core implementation components for several LaunchDarkly SDKs.
4+
5+
## Submitting bug reports and feature requests
6+
7+
Bug reports and feature requests, unless they are very specifically related to a piece of code in this project, should be filed in the individual SDK repositories instead. If you do have an issue specifically for this repository, the LaunchDarkly SDK team monitors the [issue tracker](https://github.com/launchdarkly/js-sdk-common/issues) and will respond to all newly filed issues within two business days.
8+
9+
## Submitting pull requests
10+
11+
We encourage pull requests and other contributions from the community. Before submitting pull requests, ensure that all temporary or unintended code is removed. Don't worry about adding reviewers to the pull request; the LaunchDarkly SDK team will add themselves. The SDK team will acknowledge all pull requests within two business days.
12+
13+
## Build instructions
14+
15+
### Prerequisites
16+
17+
The project uses `npm`, which is bundled in all supported versions of Node.
18+
19+
### Setup
20+
21+
To install project dependencies, from the project root directory:
22+
23+
```
24+
npm install
25+
```
26+
27+
### Testing
28+
29+
To run all unit tests:
30+
31+
```
32+
npm test
33+
```
34+
35+
To verify that the TypeScript declarations compile correctly (this involves compiling the file `test-types.ts`, so if you have changed any types or interfaces, you will want to update that code):
36+
37+
```
38+
npm run check-typescript
39+
```

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2019 Catamorphic, Co.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

0 commit comments

Comments
 (0)