From 4114bea88de7e4d8ce5fb93d1f322d2c75835c2f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 24 Aug 2023 00:44:03 +0200 Subject: chore: clarify permissing licensing For permissive licenses like MIT and BSD, OR EPL doesn't make sense, because the copyright original permission notice must be retained at all times. For code simply copied with minimal modifications that are unrelated to Refinery, we can just use the plain MIT license or BSD-3-clause license. For code with complex modifications related to Refinery, we can instead use the MIT AND EPL-2.0 SPDX expression, which forces downstream users to retain the original MIT notices as required by the MIT license, but also extends Refinery's copyleft to our modifications. --- subprojects/frontend/src/graph/parseBBox.ts | 2 +- subprojects/frontend/src/language/indentation.ts | 2 +- subprojects/frontend/tsconfig.base.json | 2 +- subprojects/frontend/types/ImportMeta.d.ts | 2 +- subprojects/frontend/types/grammar.d.ts | 2 +- subprojects/frontend/types/node/@lezer-generator-rollup.d.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'subprojects/frontend') diff --git a/subprojects/frontend/src/graph/parseBBox.ts b/subprojects/frontend/src/graph/parseBBox.ts index 9806cbca..34df746b 100644 --- a/subprojects/frontend/src/graph/parseBBox.ts +++ b/subprojects/frontend/src/graph/parseBBox.ts @@ -2,7 +2,7 @@ * Copyright 2017, Magnus Jacobsson * Copyright 2023, The Refinery Authors * - * SPDX-License-Identifier: BSD-3-Clause AND EPL-2.0 + * SPDX-License-Identifier: BSD-3-Clause * * This file Incorporates patches from the Refinery authors. * diff --git a/subprojects/frontend/src/language/indentation.ts b/subprojects/frontend/src/language/indentation.ts index 8446d7fa..6806147b 100644 --- a/subprojects/frontend/src/language/indentation.ts +++ b/subprojects/frontend/src/language/indentation.ts @@ -2,7 +2,7 @@ * Copyright (C) 2018-2021 by Marijn Haverbeke and others * Copyright (C) 2021-2023 The Refinery Authors * - * SPDX-License-Identifier: MIT OR EPL-2.0 + * SPDX-License-Identifier: MIT AND EPL-2.0 */ import type { TreeIndentContext } from '@codemirror/language'; diff --git a/subprojects/frontend/tsconfig.base.json b/subprojects/frontend/tsconfig.base.json index 5ef50b5e..545eca35 100644 --- a/subprojects/frontend/tsconfig.base.json +++ b/subprojects/frontend/tsconfig.base.json @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. * Copyright (c) 2023 The Refinery Authors * - * SPDX-License-Identifier: MIT OR EPL-2.0 + * SPDX-License-Identifier: MIT * * This file is based on * https://github.com/tsconfig/bases/blob/7db25a41bc5a9c0f66d91f6f3aa28438afcb2f18/bases/strictest.json diff --git a/subprojects/frontend/types/ImportMeta.d.ts b/subprojects/frontend/types/ImportMeta.d.ts index f5a32ef1..096f088b 100644 --- a/subprojects/frontend/types/ImportMeta.d.ts +++ b/subprojects/frontend/types/ImportMeta.d.ts @@ -2,7 +2,7 @@ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors * Copyright (c) 2021-2023 The Refinery Authors * - * SPDX-License-Identifier: MIT OR EPL-2.0 + * SPDX-License-Identifier: MIT */ interface ImportMeta { diff --git a/subprojects/frontend/types/grammar.d.ts b/subprojects/frontend/types/grammar.d.ts index e7a7eebf..92f99ec3 100644 --- a/subprojects/frontend/types/grammar.d.ts +++ b/subprojects/frontend/types/grammar.d.ts @@ -2,7 +2,7 @@ * Copyright (C) 2018 by Marijn Haverbeke and others * Copyright (C) 2021-2023 The Refinery Authors * - * SPDX-License-Identifier: MIT OR EPL-2.0 + * SPDX-License-Identifier: MIT */ declare module '*.grammar' { diff --git a/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts b/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts index 4ef9f4e3..ce89a44c 100644 --- a/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts +++ b/subprojects/frontend/types/node/@lezer-generator-rollup.d.ts @@ -2,7 +2,7 @@ * Copyright (C) 2018 by Marijn Haverbeke and others * Copyright (C) 2021-2023 The Refinery Authors * - * SPDX-License-Identifier: MIT OR EPL-2.0 + * SPDX-License-Identifier: MIT */ // We have to explicitly redeclare the type of the `./rollup` ESM export of `@lezer/generator`, -- cgit v1.2.3-54-g00ecf