Skip to content

Commit

Permalink
change from older bsd+patents to mit license (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunil Pai committed Oct 5, 2019
1 parent 8452262 commit 62dbcdb
Show file tree
Hide file tree
Showing 42 changed files with 161 additions and 224 deletions.
44 changes: 17 additions & 27 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
BSD License
MIT License

For react-codemod software
Copyright (c) 2015-present, Facebook, Inc.

Copyright (c) 2013-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.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,8 @@ used internally within Facebook or were contributed by the community, and we
rely on community contributions to fix any issues discovered or make any
improvements. If you want to contribute, you're welcome to submit a pull
request.

### License


react-codemod is [MIT licensed](./LICENSE).
8 changes: 8 additions & 0 deletions bin/__tests__/react-codemod-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/* eslint-env jest */

/**
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

// todo - tests for class, pure-component, pure-render-mixin sub options

let gitStatusReturnValue;
Expand Down
11 changes: 9 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

// react-codemod optional-name-of-transform optional/path/to/src [...options]

const globby = require('globby');
Expand Down Expand Up @@ -67,8 +75,7 @@ function runTransform({ files, flags, parser, transformer, answers }) {

if (parser === 'tsx') {
args.push('--extensions=tsx,ts,jsx,js');
}
else {
} else {
args.push('--extensions=jsx,js');
}

Expand Down
8 changes: 8 additions & 0 deletions bin/react-codemod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env node

/**
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

// react-codemod optional-name-of-transform optional/path/to/src [...options]

require('./cli').run();
Expand Down
8 changes: 3 additions & 5 deletions jest/env.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/React-DOM-to-react-dom-factories.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/React-PropTypes-to-prop-types.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/ReactNative-View-propTypes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-pure-mixin2.input.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule Bar
* @typechecks
* @flow
*/
Expand Down
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-pure-mixin2.output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule Bar
* @typechecks
* @flow
*/
Expand Down
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-pure-mixin4.input.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule HelloGuys
* @fbt {"foo": "bar"}
* @flow
* @typechecks
Expand Down
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-pure-mixin4.output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule HelloGuys
* @fbt {"foo": "bar"}
* @flow
* @typechecks
Expand Down
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-top-comment.input.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule FooBar
* @typechecks
* @flow
*/
Expand Down
6 changes: 4 additions & 2 deletions transforms/__testfixtures__/class/class-top-comment.output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Copyright 2004-present Facebook. All Rights Reserved.
* Copyright 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule FooBar
* @typechecks
* @flow
*/
Expand Down
8 changes: 3 additions & 5 deletions transforms/__tests__/React-DOM-to-react-dom-factories-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/React-PropTypes-to-prop-types-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/ReactNative-View-propTypes-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/class-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/create-element-to-jsx-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/custom-sort-group.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/custom-sort.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/error-boundaries.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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 transforms/__tests__/findDOMNode-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
* Copyright 2015-present, Facebook, Inc.
*
* 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
Loading

0 comments on commit 62dbcdb

Please sign in to comment.