Skip to content

Commit 4f5e351

Browse files
authored
Relicense as MIT (#1046)
Read about this change: https://medium.com/@leeb/relicensing-the-graphql-specification-e7d07a52301b * Change LICENSE to MIT * Change all source headers to refer to MIT * Remove PATENTS file * Update README.md and CONTRIBUTING.md to refer to MIT and remove reference to PATENTS * Update package.json to MIT * Update build and deploy resources to not distribute PATENTS file.
1 parent eb01a23 commit 4f5e351

File tree

176 files changed

+709
-980
lines changed

Some content is hidden

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

176 files changed

+709
-980
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ git push --follow-tags
100100
## License
101101

102102
By contributing to graphql-js, you agree that your contributions will be
103-
licensed under its BSD license.
103+
licensed under its MIT license.

LICENSE

+17-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
1-
BSD License
1+
MIT License
22

3-
For GraphQL software
3+
Copyright (c) 2015-present, Facebook, Inc.
44

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

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

10-
* Redistributions of source code must retain the above copyright notice, this
11-
list of conditions and the following disclaimer.
12-
13-
* Redistributions in binary form must reproduce the above copyright notice,
14-
this list of conditions and the following disclaimer in the documentation
15-
and/or other materials provided with the distribution.
16-
17-
* Neither the name Facebook nor the names of its contributors may be used to
18-
endorse or promote products derived from this software without specific
19-
prior written permission.
20-
21-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

PATENTS

-11
This file was deleted.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ Changes are tracked as [GitHub releases](https://github.com/graphql/graphql-js/r
130130

131131
### License
132132

133-
GraphQL is [BSD-licensed](https://github.com/graphql/graphql-js/blob/master/LICENSE).
134-
We also provide an additional [patent grant](https://github.com/graphql/graphql-js/blob/master/PATENTS).
133+
GraphQL.js is [MIT-licensed](https://github.com/graphql/graphql-js/blob/master/LICENSE).

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"Nicholas Schrock <[email protected]>",
88
"Daniel Schafer <[email protected]>"
99
],
10-
"license": "BSD-3-Clause",
10+
"license": "MIT",
1111
"main": "index.js",
1212
"homepage": "https://github.com/graphql/graphql-js",
1313
"bugs": {

resources/gitpublish.sh

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ node -e "var package = require('./package.json'); \
1818

1919
cp README.md npm/
2020
cp LICENSE npm/
21-
cp PATENTS npm/
2221

2322
cd npm
2423
git init

resources/inline-invariant.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
'use strict';

resources/lint/no-async.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2017, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2017-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
module.exports = function(context) {

resources/mocha-bootload.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
var chai = require('chai');

resources/watch.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import sane from 'sane';

src/__tests__/starWarsData.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
5-
* LICENSE file in the root directory of this source tree. An additional grant
6-
* of patent rights can be found in the PATENTS file in the same directory.
2+
* Copyright (c) 2015-present, Facebook, Inc.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
78
*/
89

910
/**

src/__tests__/starWarsIntrospection-test.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { expect } from 'chai';

src/__tests__/starWarsQuery-test.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { expect } from 'chai';

src/__tests__/starWarsSchema.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import {

src/__tests__/starWarsValidation-test.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { expect } from 'chai';

src/error/GraphQLError.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { getLocation } from '../language/location';

src/error/__tests__/GraphQLError-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import { expect } from 'chai';

src/error/formatError.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import invariant from '../jsutils/invariant';

src/error/index.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
export { GraphQLError } from './GraphQLError';

src/error/locatedError.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { GraphQLError } from './GraphQLError';

src/error/syntaxError.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
/* @flow */
21
/**
3-
* Copyright (c) 2015, Facebook, Inc.
4-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
53
*
6-
* This source code is licensed under the BSD-style license found in the
7-
* LICENSE file in the root directory of this source tree. An additional grant
8-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow
98
*/
109

1110
import { getLocation } from '../language/location';

src/execution/__tests__/abstract-promise-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import { expect } from 'chai';

src/execution/__tests__/abstract-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import { expect } from 'chai';

src/execution/__tests__/directives-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import { expect } from 'chai';

src/execution/__tests__/executor-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
import { expect } from 'chai';

src/execution/__tests__/lists-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2015, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) 2015-present, Facebook, Inc.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
// 80+ char lines are useful in describe/it, so ignore in this file.

0 commit comments

Comments
 (0)