From 00e31aa44524e68fd647f74d335e3ab7179a353c Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 24 Jun 2020 15:37:44 +0300 Subject: [PATCH] Update LICENSE and remove license header from source files Replicates https://github.com/graphql/graphql-js/pull/1960 --- LICENSE | 2 +- package.json | 3 --- scripts/watch.js | 9 +-------- src/__tests__/starWarsConnectionTests.js | 9 +-------- src/__tests__/starWarsData.js | 7 +------ src/__tests__/starWarsMutationTests.js | 9 +-------- src/__tests__/starWarsObjectIdentificationTests.js | 9 +-------- src/__tests__/starWarsSchema.js | 9 +-------- src/connection/__tests__/arrayconnection.js | 9 +-------- src/connection/__tests__/connection.js | 9 +-------- src/connection/arrayconnection.js | 9 +-------- src/connection/connection.js | 9 +-------- src/connection/connectiontypes.js | 9 +-------- src/index.js | 9 +-------- src/mutation/__tests__/mutation.js | 9 +-------- src/mutation/mutation.js | 9 +-------- src/node/__tests__/global.js | 9 +-------- src/node/__tests__/node.js | 9 +-------- src/node/__tests__/nodeasync.js | 9 +-------- src/node/__tests__/plural.js | 9 +-------- src/node/node.js | 9 +-------- src/node/plural.js | 9 +-------- src/utils/__tests__/base64.js | 9 +-------- src/utils/base64.js | 9 +-------- 24 files changed, 23 insertions(+), 178 deletions(-) diff --git a/LICENSE b/LICENSE index 9e05101..cd2262e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2015-present, Facebook, Inc. +Copyright (c) 2019 GraphQL Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 2b8f6cc..aea26a0 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,6 @@ "name": "graphql-relay", "version": "0.6.0", "description": "A library to help construct a graphql-js server supporting react-relay.", - "contributors": [ - "Daniel Schafer " - ], "license": "MIT", "homepage": "https://github.com/graphql/graphql-relay-js", "bugs": { diff --git a/scripts/watch.js b/scripts/watch.js index 6b36ea7..0a85d89 100644 --- a/scripts/watch.js +++ b/scripts/watch.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import sane from 'sane'; import { resolve as resolvePath } from 'path'; diff --git a/src/__tests__/starWarsConnectionTests.js b/src/__tests__/starWarsConnectionTests.js index 8459ff3..d2f69ad 100644 --- a/src/__tests__/starWarsConnectionTests.js +++ b/src/__tests__/starWarsConnectionTests.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/starWarsData.js b/src/__tests__/starWarsData.js index b8c5e69..62ce3fc 100644 --- a/src/__tests__/starWarsData.js +++ b/src/__tests__/starWarsData.js @@ -1,9 +1,4 @@ -/** - * Copyright (c) 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. - */ +// @flow /** * This defines a basic set of data for our Star Wars Schema. diff --git a/src/__tests__/starWarsMutationTests.js b/src/__tests__/starWarsMutationTests.js index f18deeb..c1afb50 100644 --- a/src/__tests__/starWarsMutationTests.js +++ b/src/__tests__/starWarsMutationTests.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/starWarsObjectIdentificationTests.js b/src/__tests__/starWarsObjectIdentificationTests.js index 0cca793..e3b3159 100644 --- a/src/__tests__/starWarsObjectIdentificationTests.js +++ b/src/__tests__/starWarsObjectIdentificationTests.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { expect } from 'chai'; import { describe, it } from 'mocha'; diff --git a/src/__tests__/starWarsSchema.js b/src/__tests__/starWarsSchema.js index 0d6f88a..875450a 100644 --- a/src/__tests__/starWarsSchema.js +++ b/src/__tests__/starWarsSchema.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLID, diff --git a/src/connection/__tests__/arrayconnection.js b/src/connection/__tests__/arrayconnection.js index cd8c739..5c16a28 100644 --- a/src/connection/__tests__/arrayconnection.js +++ b/src/connection/__tests__/arrayconnection.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/connection/__tests__/connection.js b/src/connection/__tests__/connection.js index 35dea80..07477ff 100644 --- a/src/connection/__tests__/connection.js +++ b/src/connection/__tests__/connection.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLInt, diff --git a/src/connection/arrayconnection.js b/src/connection/arrayconnection.js index 2a043b9..744d4a7 100644 --- a/src/connection/arrayconnection.js +++ b/src/connection/arrayconnection.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import type { Connection, diff --git a/src/connection/connection.js b/src/connection/connection.js index 3ef89d0..ab52273 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLBoolean, diff --git a/src/connection/connectiontypes.js b/src/connection/connectiontypes.js index ca5b921..4b27d38 100644 --- a/src/connection/connectiontypes.js +++ b/src/connection/connectiontypes.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow /** * An flow type alias for cursors in this implementation. diff --git a/src/index.js b/src/index.js index 8857e04..6db6610 100644 --- a/src/index.js +++ b/src/index.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow // Flow types for creating connection types in the schema export type { diff --git a/src/mutation/__tests__/mutation.js b/src/mutation/__tests__/mutation.js index a7f1c6a..8c5d515 100644 --- a/src/mutation/__tests__/mutation.js +++ b/src/mutation/__tests__/mutation.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow // 80+ char lines are useful in describe/it, so ignore in this file. /* eslint-disable max-len */ diff --git a/src/mutation/mutation.js b/src/mutation/mutation.js index d5abe4f..8f8b8c9 100644 --- a/src/mutation/mutation.js +++ b/src/mutation/mutation.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLInputObjectType, diff --git a/src/node/__tests__/global.js b/src/node/__tests__/global.js index f631244..4e5b4d0 100644 --- a/src/node/__tests__/global.js +++ b/src/node/__tests__/global.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/node/__tests__/node.js b/src/node/__tests__/node.js index b6ae3ae..f0eb62a 100644 --- a/src/node/__tests__/node.js +++ b/src/node/__tests__/node.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/node/__tests__/nodeasync.js b/src/node/__tests__/nodeasync.js index 6b81459..839eb30 100644 --- a/src/node/__tests__/nodeasync.js +++ b/src/node/__tests__/nodeasync.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/node/__tests__/plural.js b/src/node/__tests__/plural.js index 82831d2..c88856a 100644 --- a/src/node/__tests__/plural.js +++ b/src/node/__tests__/plural.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/node/node.js b/src/node/node.js index ae96a6e..2ef70fe 100644 --- a/src/node/node.js +++ b/src/node/node.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLInterfaceType, diff --git a/src/node/plural.js b/src/node/plural.js index 3c61112..d4ef3da 100644 --- a/src/node/plural.js +++ b/src/node/plural.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { GraphQLList, GraphQLNonNull } from 'graphql'; diff --git a/src/utils/__tests__/base64.js b/src/utils/__tests__/base64.js index e1b042a..d2836e8 100644 --- a/src/utils/__tests__/base64.js +++ b/src/utils/__tests__/base64.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow import { describe, it } from 'mocha'; import { expect } from 'chai'; diff --git a/src/utils/base64.js b/src/utils/base64.js index 0213ec0..1f25b32 100644 --- a/src/utils/base64.js +++ b/src/utils/base64.js @@ -1,11 +1,4 @@ -/** - * Copyright (c) 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. - * - * @flow - */ +// @flow export type Base64String = string;