Skip to content

Commit

Permalink
Update file headers from BSD3 to MIT
Browse files Browse the repository at this point in the history
Summary: This updates all file headers to use the new MIT license per https://code.facebook.com/posts/300798627056246. I also re-recorded tests, since the header comment is a different length.

Reviewed By: samwgoldman

Differential Revision: D5912951

fbshipit-source-id: faf9c8e5621e6e1f283c7ed83b5124ce306a6ec1
  • Loading branch information
gabelevi authored and facebook-github-bot committed Sep 27, 2017
1 parent bbbac30 commit 4eb62a5
Show file tree
Hide file tree
Showing 317 changed files with 3,482 additions and 4,330 deletions.
7 changes: 2 additions & 5 deletions examples/flux-chat/lib/events.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

declare module events {
Expand Down
7 changes: 2 additions & 5 deletions examples/flux-chat/lib/flux.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

declare module flux {
Expand Down
7 changes: 2 additions & 5 deletions examples/flux-chat/lib/react.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

// HACK: Horrible hack to provide a NodeJS react module. Basically, we copy
Expand Down
7 changes: 2 additions & 5 deletions lib/bom.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/
/* BOM */

Expand Down
7 changes: 2 additions & 5 deletions lib/core.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/
/* JS primitives
cf. http://typescript.codeplex.com/sourcecontrol/latest#typings/lib.d.ts
Expand Down
7 changes: 2 additions & 5 deletions lib/cssom.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

declare class StyleSheet {
Expand Down
13 changes: 5 additions & 8 deletions lib/dom.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
* Copyright (c) 2013-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.
*/
/* Files */

declare class Blob {
Expand Down
7 changes: 2 additions & 5 deletions lib/node.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

interface ErrnoError extends Error {
Expand Down
6 changes: 2 additions & 4 deletions lib/react-dom.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

declare module 'react-dom' {
Expand Down
6 changes: 2 additions & 4 deletions lib/react.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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
7 changes: 2 additions & 5 deletions lib/serviceworkers.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

type FrameType = 'auxiliary' | 'top-level' | 'nested' | 'none';
Expand Down
7 changes: 2 additions & 5 deletions lib/streams.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" 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.
*/

type TextEncodeOptions = {options?: boolean};
Expand Down
4 changes: 2 additions & 2 deletions newtests/array_literal_tuple_spread/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ export default suite(({addFile, addFiles, addCode}) => [
3: const arr: Array<number> = [..."hello"];
^^^^^^^^^^^^^ array type
Type argument \`T\` is incompatible:
291: @@iterator(): Iterator<string>;
^^^^^^ string. This type is incompatible with. See lib: [LIB] core.js:291
288: @@iterator(): Iterator<string>;
^^^^^^ string. This type is incompatible with. See lib: [LIB] core.js:288
3: const arr: Array<number> = [..."hello"];
^^^^^^ number
`,
Expand Down
Loading

0 comments on commit 4eb62a5

Please sign in to comment.