From 814683361502d1b641aeccce9462976a88246a35 Mon Sep 17 00:00:00 2001 From: Rob Snow Date: Tue, 6 Aug 2019 15:41:30 -0700 Subject: [PATCH 1/2] Took license style from https://github.com/facebook/react --- .gitignore | 2 +- CONTRIBUTING.md | 6 +-- LICENSE | 43 ++++++++----------- PATENTS | 33 -------------- bin/__tests__/jscodeshift-test.js | 12 +++--- bin/jscodeshift.js | 12 +++--- bin/jscodeshift.sh | 12 +++--- docs/Collection.js.html | 16 +++---- docs/collections_JSXElement.js.html | 16 +++---- docs/collections_Node.js.html | 16 +++---- docs/collections_VariableDeclarator.js.html | 20 ++++----- docs/core.js.html | 16 +++---- index.js | 12 +++--- package.json | 1 - parser/babel5Compat.js | 12 +++--- parser/babylon.js | 12 +++--- parser/flow.js | 12 +++--- parser/ts.js | 12 +++--- parser/tsOptions.js | 12 +++--- parser/tsx.js | 12 +++--- sample/__tests__/reverse-identifiers-test.js | 8 ++-- sample/reverse-identifiers.js | 8 ++-- src/Collection.js | 12 +++--- src/Runner.js | 12 +++--- src/Worker.js | 12 +++--- src/__tests__/Collection-test.js | 12 +++--- src/__tests__/Worker-test.js | 12 +++--- src/__tests__/argsParser-test.js | 7 ++- src/__tests__/core-test.js | 12 +++--- src/__tests__/matchNode-test.js | 8 ++-- src/__tests__/template-test.js | 12 +++--- src/argsParser.js | 10 ++--- src/collections/JSXElement.js | 12 +++--- src/collections/Node.js | 12 +++--- src/collections/VariableDeclarator.js | 12 +++--- src/collections/__tests__/JSXElement-test.js | 12 +++--- src/collections/__tests__/Node-test.js | 12 +++--- .../__tests__/VariableDeclarator-test.js | 12 +++--- src/collections/index.js | 12 +++--- src/core.js | 12 +++--- src/getParser.js | 12 +++--- src/matchNode.js | 12 +++--- src/template.js | 12 +++--- src/testUtils.js | 8 ++-- src/utils/__tests__/intersection-test.js | 7 ++- src/utils/__tests__/once-test.js | 7 ++- src/utils/__tests__/union-test.js | 7 ++- src/utils/intersection.js | 10 ++--- src/utils/once.js | 10 ++--- src/utils/union.js | 10 ++--- utils/requirePackage.js | 12 +++--- utils/testUtils.js | 12 +++--- 52 files changed, 248 insertions(+), 381 deletions(-) delete mode 100644 PATENTS diff --git a/.gitignore b/.gitignore index 6a0b2580..4edcc594 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /dist node_modules/ - +.idea diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d7832e60..a6de55f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,6 +42,6 @@ outlined on that page and do not file a public issue. * 80 character line length * "Attractive" -## License -By contributing to jscodeshift, you agree that your contributions will be licensed -under its BSD license. +### License + +jscodeshift is [MIT licensed](./LICENSE). diff --git a/LICENSE b/LICENSE index e0a817de..b96dcb04 100644 --- a/LICENSE +++ b/LICENSE @@ -1,30 +1,21 @@ -BSD License +MIT License -For jscodeshift software +Copyright (c) Facebook, Inc. and its affiliates. -Copyright (c) 2015-present, 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. diff --git a/PATENTS b/PATENTS deleted file mode 100644 index 841c6d4c..00000000 --- a/PATENTS +++ /dev/null @@ -1,33 +0,0 @@ -Additional Grant of Patent Rights Version 2 - -"Software" means the jscodeshift software distributed by Facebook, Inc. - -Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software -("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable -(subject to the termination provision below) license under any Necessary -Claims, to make, have made, use, sell, offer to sell, import, and otherwise -transfer the Software. For avoidance of doubt, no license is granted under -Facebook's rights in any patent claims that are infringed by (i) modifications -to the Software made by you or any third party or (ii) the Software in -combination with any software or other technology. - -The license granted hereunder will terminate, automatically and without notice, -if you (or any of your subsidiaries, corporate affiliates or agents) initiate -directly or indirectly, or take a direct financial interest in, any Patent -Assertion: (i) against Facebook or any of its subsidiaries or corporate -affiliates, (ii) against any party if such Patent Assertion arises in whole or -in part from any software, technology, product or service of Facebook or any of -its subsidiaries or corporate affiliates, or (iii) against any party relating -to the Software. Notwithstanding the foregoing, if Facebook or any of its -subsidiaries or corporate affiliates files a lawsuit alleging patent -infringement against you in the first instance, and you respond by filing a -patent infringement counterclaim in that lawsuit against that party that is -unrelated to the Software, the license granted hereunder will not terminate -under section (i) of this paragraph due to such counterclaim. - -A "Necessary Claim" is a claim of a patent owned by Facebook that is -necessarily infringed by the Software standing alone. - -A "Patent Assertion" is any lawsuit or other action alleging direct, indirect, -or contributory infringement or inducement to infringe any patent, including a -cross-claim or counterclaim. diff --git a/bin/__tests__/jscodeshift-test.js b/bin/__tests__/jscodeshift-test.js index 623c62f4..7ac9f032 100644 --- a/bin/__tests__/jscodeshift-test.js +++ b/bin/__tests__/jscodeshift-test.js @@ -1,11 +1,9 @@ -/* - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * 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. + +/** + * Copyright (c) Facebook, Inc. and its affiliates. * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ /*global jest, jasmine, describe, it, expect, beforeEach*/ diff --git a/bin/jscodeshift.js b/bin/jscodeshift.js index 91f7a2b8..8892ca2e 100755 --- a/bin/jscodeshift.js +++ b/bin/jscodeshift.js @@ -1,12 +1,10 @@ #!/usr/bin/env node -/* - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * 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. + +/** + * Copyright (c) Facebook, Inc. and its affiliates. * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/bin/jscodeshift.sh b/bin/jscodeshift.sh index 4ce717bd..b756e077 100755 --- a/bin/jscodeshift.sh +++ b/bin/jscodeshift.sh @@ -1,12 +1,10 @@ #!/usr/bin/env node -/* - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * 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. + +/** + * Copyright (c) Facebook, Inc. and its affiliates. * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; diff --git a/docs/Collection.js.html b/docs/Collection.js.html index ba9d702c..01643ac5 100644 --- a/docs/Collection.js.html +++ b/docs/Collection.js.html @@ -19,21 +19,19 @@

Source: Collection.js

- - + +
-
/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+            

+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/docs/collections_JSXElement.js.html b/docs/collections_JSXElement.js.html
index b7451594..3bbb3f35 100644
--- a/docs/collections_JSXElement.js.html
+++ b/docs/collections_JSXElement.js.html
@@ -19,21 +19,19 @@
 
     

Source: collections/JSXElement.js

- - + +
-
/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+            

+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/docs/collections_Node.js.html b/docs/collections_Node.js.html
index c7654ba0..a73d854b 100644
--- a/docs/collections_Node.js.html
+++ b/docs/collections_Node.js.html
@@ -19,21 +19,19 @@
 
     

Source: collections/Node.js

- - + +
-
/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+            

+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/docs/collections_VariableDeclarator.js.html b/docs/collections_VariableDeclarator.js.html
index 5584b415..0fb9cc5d 100644
--- a/docs/collections_VariableDeclarator.js.html
+++ b/docs/collections_VariableDeclarator.js.html
@@ -19,21 +19,19 @@
 
     

Source: collections/VariableDeclarator.js

- - + +
-
/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+            

+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
@@ -162,8 +160,8 @@ 

Source: collections/VariableDeclarator.js

scope = scope.parent; } if (scope) { // identifier must refer to declared variable - - // It may look like we filtered out properties, + + // It may look like we filtered out properties, // but the filter only ignored property "keys", not "value"s // In shorthand properties, "key" and "value" both have an // Identifier with the same structure. diff --git a/docs/core.js.html b/docs/core.js.html index fabffa00..12f07348 100644 --- a/docs/core.js.html +++ b/docs/core.js.html @@ -19,21 +19,19 @@

Source: core.js

- - + +
-
/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+            

+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/index.js b/index.js
index a85a22c1..79752754 100644
--- a/index.js
+++ b/index.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 module.exports = require('./src/core');
diff --git a/package.json b/package.json
index b7b7e913..09b1b3c7 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,6 @@
     "babel"
   ],
   "author": "Felix Kling",
-  "license": "BSD-3-Clause",
   "dependencies": {
     "@babel/core": "^7.1.6",
     "@babel/parser": "^7.1.6",
diff --git a/parser/babel5Compat.js b/parser/babel5Compat.js
index a160fffe..8c12c4be 100644
--- a/parser/babel5Compat.js
+++ b/parser/babel5Compat.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/parser/babylon.js b/parser/babylon.js
index e657ef80..d83900c2 100644
--- a/parser/babylon.js
+++ b/parser/babylon.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/parser/flow.js b/parser/flow.js
index 5e582665..2b4cef8a 100644
--- a/parser/flow.js
+++ b/parser/flow.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/parser/ts.js b/parser/ts.js
index 2e95e85b..0563c5e5 100644
--- a/parser/ts.js
+++ b/parser/ts.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/parser/tsOptions.js b/parser/tsOptions.js
index 6a6f5b70..05e249a9 100644
--- a/parser/tsOptions.js
+++ b/parser/tsOptions.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/parser/tsx.js b/parser/tsx.js
index 05171b99..60ea69f1 100644
--- a/parser/tsx.js
+++ b/parser/tsx.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/sample/__tests__/reverse-identifiers-test.js b/sample/__tests__/reverse-identifiers-test.js
index dc3ff439..68095c88 100644
--- a/sample/__tests__/reverse-identifiers-test.js
+++ b/sample/__tests__/reverse-identifiers-test.js
@@ -1,10 +1,8 @@
 /**
- *  Copyright (c) 2016-present, 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.
  */
 
 /**
diff --git a/sample/reverse-identifiers.js b/sample/reverse-identifiers.js
index 62f6aae4..e7e4be36 100644
--- a/sample/reverse-identifiers.js
+++ b/sample/reverse-identifiers.js
@@ -1,10 +1,8 @@
 /**
- *  Copyright (c) 2016-present, 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.
  */
 
 /**
diff --git a/src/Collection.js b/src/Collection.js
index 5a17cfd3..8da1fec9 100644
--- a/src/Collection.js
+++ b/src/Collection.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/Runner.js b/src/Runner.js
index 311caec0..41f43d30 100644
--- a/src/Runner.js
+++ b/src/Runner.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/Worker.js b/src/Worker.js
index 3c96e2b9..5bb1fac3 100644
--- a/src/Worker.js
+++ b/src/Worker.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/__tests__/Collection-test.js b/src/__tests__/Collection-test.js
index 9db6ef3f..86682470 100644
--- a/src/__tests__/Collection-test.js
+++ b/src/__tests__/Collection-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/__tests__/Worker-test.js b/src/__tests__/Worker-test.js
index b2baec84..f17bd2d6 100644
--- a/src/__tests__/Worker-test.js
+++ b/src/__tests__/Worker-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/__tests__/argsParser-test.js b/src/__tests__/argsParser-test.js
index 0719f988..06871980 100644
--- a/src/__tests__/argsParser-test.js
+++ b/src/__tests__/argsParser-test.js
@@ -1,9 +1,8 @@
 /**
- * Copyright (c) Facebook, Inc. and its affiliates. 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.
  */
 
 /*global jest, describe, it, expect, beforeEach*/
diff --git a/src/__tests__/core-test.js b/src/__tests__/core-test.js
index 8fa11947..e7f794d5 100644
--- a/src/__tests__/core-test.js
+++ b/src/__tests__/core-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/__tests__/matchNode-test.js b/src/__tests__/matchNode-test.js
index 8a2feb95..05f4dec2 100644
--- a/src/__tests__/matchNode-test.js
+++ b/src/__tests__/matchNode-test.js
@@ -1,10 +1,8 @@
 /**
- * Copyright (c) 2015-present, 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.
  */
 
 /*global jest, describe, it, expect, beforeEach*/
diff --git a/src/__tests__/template-test.js b/src/__tests__/template-test.js
index 3dd99bc3..6e7b6940 100644
--- a/src/__tests__/template-test.js
+++ b/src/__tests__/template-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/argsParser.js b/src/argsParser.js
index 4c02ca57..b81f9f6b 100644
--- a/src/argsParser.js
+++ b/src/argsParser.js
@@ -1,10 +1,8 @@
-/*
- *  Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
- *
- *  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.
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 function throwError(exitCode, message, helpText) {
diff --git a/src/collections/JSXElement.js b/src/collections/JSXElement.js
index 90ea076e..6e37bccb 100644
--- a/src/collections/JSXElement.js
+++ b/src/collections/JSXElement.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/Node.js b/src/collections/Node.js
index 482e9700..a1a909dd 100644
--- a/src/collections/Node.js
+++ b/src/collections/Node.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/VariableDeclarator.js b/src/collections/VariableDeclarator.js
index 7200c97d..7aac377d 100644
--- a/src/collections/VariableDeclarator.js
+++ b/src/collections/VariableDeclarator.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/__tests__/JSXElement-test.js b/src/collections/__tests__/JSXElement-test.js
index 89e9335c..7d8bd1a5 100644
--- a/src/collections/__tests__/JSXElement-test.js
+++ b/src/collections/__tests__/JSXElement-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/__tests__/Node-test.js b/src/collections/__tests__/Node-test.js
index ebde9ddf..73f8cb11 100644
--- a/src/collections/__tests__/Node-test.js
+++ b/src/collections/__tests__/Node-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/__tests__/VariableDeclarator-test.js b/src/collections/__tests__/VariableDeclarator-test.js
index 92c8aa3c..d5a4ad37 100644
--- a/src/collections/__tests__/VariableDeclarator-test.js
+++ b/src/collections/__tests__/VariableDeclarator-test.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/collections/index.js b/src/collections/index.js
index 24656bb8..12c77008 100644
--- a/src/collections/index.js
+++ b/src/collections/index.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 module.exports = {
diff --git a/src/core.js b/src/core.js
index df28d610..9f51a69d 100644
--- a/src/core.js
+++ b/src/core.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/getParser.js b/src/getParser.js
index 3190189a..ce999940 100644
--- a/src/getParser.js
+++ b/src/getParser.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/matchNode.js b/src/matchNode.js
index 4248745e..345894fd 100644
--- a/src/matchNode.js
+++ b/src/matchNode.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/template.js b/src/template.js
index 1fea331b..71e51941 100644
--- a/src/template.js
+++ b/src/template.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/src/testUtils.js b/src/testUtils.js
index 7ccbf4ff..3c923a54 100644
--- a/src/testUtils.js
+++ b/src/testUtils.js
@@ -1,10 +1,8 @@
 /**
- *  Copyright (c) 2016-present, 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.
  */
 
 /* global expect, describe, it */
diff --git a/src/utils/__tests__/intersection-test.js b/src/utils/__tests__/intersection-test.js
index db31f21f..f8c2b119 100644
--- a/src/utils/__tests__/intersection-test.js
+++ b/src/utils/__tests__/intersection-test.js
@@ -1,9 +1,8 @@
 /**
- * Copyright (c) Facebook, Inc. and its affiliates. 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.
  */
 
 'use strict';
diff --git a/src/utils/__tests__/once-test.js b/src/utils/__tests__/once-test.js
index 563f5d63..2f085c87 100644
--- a/src/utils/__tests__/once-test.js
+++ b/src/utils/__tests__/once-test.js
@@ -1,9 +1,8 @@
 /**
- * Copyright (c) Facebook, Inc. and its affiliates. 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.
  */
 
 'use strict';
diff --git a/src/utils/__tests__/union-test.js b/src/utils/__tests__/union-test.js
index e5710ed7..222b6619 100644
--- a/src/utils/__tests__/union-test.js
+++ b/src/utils/__tests__/union-test.js
@@ -1,9 +1,8 @@
 /**
- * Copyright (c) Facebook, Inc. and its affiliates. 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.
  */
 
 'use strict';
diff --git a/src/utils/intersection.js b/src/utils/intersection.js
index 1fce2014..1384daf8 100644
--- a/src/utils/intersection.js
+++ b/src/utils/intersection.js
@@ -1,10 +1,8 @@
-/*
- *  Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
- *
- *  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.
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 module.exports = function(arrays) {
diff --git a/src/utils/once.js b/src/utils/once.js
index d451d0e4..0d56ed78 100644
--- a/src/utils/once.js
+++ b/src/utils/once.js
@@ -1,10 +1,8 @@
-/*
- *  Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
- *
- *  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.
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 /**
diff --git a/src/utils/union.js b/src/utils/union.js
index 1455c067..bbe3e9c7 100644
--- a/src/utils/union.js
+++ b/src/utils/union.js
@@ -1,10 +1,8 @@
-/*
- *  Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
- *
- *  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.
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 module.exports = function(arrays) {
diff --git a/utils/requirePackage.js b/utils/requirePackage.js
index 104cd3b1..47c613f9 100644
--- a/utils/requirePackage.js
+++ b/utils/requirePackage.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015-present, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';
diff --git a/utils/testUtils.js b/utils/testUtils.js
index 7fbe9de7..e5accea1 100644
--- a/utils/testUtils.js
+++ b/utils/testUtils.js
@@ -1,11 +1,9 @@
-/*
- *  Copyright (c) 2015, Facebook, Inc.
- *  All rights reserved.
- *
- *  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.
+
+/**
+ * Copyright (c) Facebook, Inc. and its affiliates.
  *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
  */
 
 'use strict';

From 2c269a78d324f04661e72596174d77a3deebc85d Mon Sep 17 00:00:00 2001
From: Christoph Nakazawa 
Date: Wed, 7 Aug 2019 09:10:06 +0100
Subject: [PATCH 2/2] Update .gitignore

---
 .gitignore | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 4edcc594..aa57f8d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,2 @@
 /dist
 node_modules/
-.idea