Skip to content

Commit

Permalink
Change license to MIT (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored and fkling committed Apr 12, 2019
1 parent 2fd59a6 commit 5582f91
Show file tree
Hide file tree
Showing 126 changed files with 517 additions and 846 deletions.
14 changes: 8 additions & 6 deletions CONTRIBUTING.md
Expand Up @@ -8,10 +8,10 @@ the process for contributing will follow standard GitHub protocol.

## Pull Requests
We actively welcome your pull requests.
1. Fork the repo and create your branch from `master`.
1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints and typechecks.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

Expand All @@ -21,15 +21,15 @@ to do this once to work on any of Facebook's open source projects.

Complete your CLA here: <https://code.facebook.com/cla>

## Issues
## Issues
We use GitHub issues to track public bugs. Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue.

Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
disclosure of security bugs. In those cases, please go through the process
outlined on that page and do not file a public issue.

## Coding Style
## Coding Style
* Use semicolons;
* Commas last,
* 2 spaces for indentation (no tabs)
Expand All @@ -39,5 +39,7 @@ outlined on that page and do not file a public issue.
* "Attractive"

## License
react-docgen is [MIT licensed](https://github.com/reactjs/react-docgen/blob/master/LICENSE).

By contributing to react-docgen, you agree that your contributions will be licensed
under its BSD license.
under its MIT license.
43 changes: 17 additions & 26 deletions LICENSE
@@ -1,30 +1,21 @@
BSD License
MIT License

For React docs generator software
Copyright (c) Facebook, Inc. and its affiliates.

Copyright (c) 2015, Facebook, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
33 changes: 0 additions & 33 deletions PATENTS

This file was deleted.

10 changes: 4 additions & 6 deletions bin/__tests__/example/MultipleComponents.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions bin/__tests__/example/customResolver.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions bin/__tests__/react-docgen-test.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions bin/react-docgen.js
@@ -1,11 +1,9 @@
#!/usr/bin/env node
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
8 changes: 3 additions & 5 deletions example/generateMarkdown.js
@@ -1,10 +1,8 @@
/**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

function stringOfLength(string, length) {
Expand Down
10 changes: 4 additions & 6 deletions flow-typed/recast.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -12,8 +12,7 @@
},
"files": [
"bin",
"dist",
"PATENTS"
"dist"
],
"engines": {
"node": ">=6"
Expand All @@ -36,7 +35,7 @@
"documentation-generation"
],
"author": "Felix Kling",
"license": "BSD-3-Clause",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.0.0",
"@babel/runtime": "^7.0.0",
Expand Down
13 changes: 5 additions & 8 deletions src/Documentation.js
@@ -1,13 +1,10 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

import type { PropDescriptor } from './types';
Expand Down
10 changes: 4 additions & 6 deletions src/__mocks__/Documentation.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_1.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_11.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
12 changes: 5 additions & 7 deletions src/__tests__/fixtures/component_13.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down Expand Up @@ -64,4 +62,4 @@ class Foo extends React.Component<TextProps> {
}
}

export default Foo;
export default Foo;
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_17.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_2.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_4.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
10 changes: 4 additions & 6 deletions src/__tests__/fixtures/component_7.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand Down
11 changes: 4 additions & 7 deletions src/__tests__/fixtures/component_8.js
@@ -1,10 +1,8 @@
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

Expand All @@ -23,4 +21,3 @@ class Parent extends React.Component {
}

export default Parent;

0 comments on commit 5582f91

Please sign in to comment.