Change license to BSL-1.1 (#18330)

* Change license to BSL1.1

* Mark major version

* Fix formatting

* Remove duplicate heading

* Update formatting

* Copy paste error

* Update license

* Update license

* Format covenants

* Update readme.md

* Update licenses for packages

* Update readme.md

* Update contributors.yml

OG... but to be clear, rijkvanzanten is the one who really built all of this ❤️

* Tweak license in openapi

* Update packages/specs/src/openapi.yaml

* Add MIT license headers

* Use v10 in examples

* Update additional examples

* Update generate-extensions-entrypoint.test.ts

* Update tests to use latest v9 and v10 versions

* use lowercase for naming consistency

* change casing for api license

* Update migrations doc

* Update dictionary

* Consistent ordering of license field in app/package.json

* Use major version in specs again (but as string)

So it's valid for all v10 versions

* Consolidate readme's

---------

Co-authored-by: Ben Haynes <ben@directus.io>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
This commit is contained in:
Rijk van Zanten
2023-04-26 14:10:42 -04:00
committed by GitHub
parent 381f1c9d8e
commit 2bc226d16f
59 changed files with 1469 additions and 3444 deletions

View File

@@ -3,7 +3,7 @@ import type { Snapshot } from '../types/snapshot.js';
import { validateSnapshot } from './validate-snapshot.js';
vi.mock('./package.js', () => ({
version: '9.22.4',
version: '10.0.0',
}));
vi.mock('../database/index.js', () => ({
@@ -24,7 +24,7 @@ describe('should fail on invalid snapshot schema', () => {
});
test('invalid schema', () => {
const snapshot = { version: 1, directus: '9.22.4', collections: {} } as Snapshot;
const snapshot = { version: 1, directus: '10.0.0', collections: {} } as Snapshot;
expect(() => validateSnapshot(snapshot)).toThrowError('"collections" must be an array');
});
@@ -32,15 +32,15 @@ describe('should fail on invalid snapshot schema', () => {
describe('should require force option on version / vendor mismatch', () => {
test('directus version mismatch', () => {
const snapshot = { version: 1, directus: '9.22.3' } as Snapshot;
const snapshot = { version: 1, directus: '9.26.0' } as Snapshot;
expect(() => validateSnapshot(snapshot)).toThrowError(
"Provided snapshot's directus version 9.22.3 does not match the current instance's version 9.22.4"
"Provided snapshot's directus version 9.26.0 does not match the current instance's version 10.0.0"
);
});
test('db vendor mismatch', () => {
const snapshot = { version: 1, directus: '9.22.4', vendor: 'postgres' } as Snapshot;
const snapshot = { version: 1, directus: '10.0.0', vendor: 'postgres' } as Snapshot;
expect(() => validateSnapshot(snapshot)).toThrowError(
"Provided snapshot's vendor postgres does not match the current instance's vendor sqlite."
@@ -49,7 +49,7 @@ describe('should require force option on version / vendor mismatch', () => {
});
test('should allow bypass on version / vendor mismatch via force option ', () => {
const snapshot = { version: 1, directus: '9.22.3', vendor: 'postgres' } as Snapshot;
const snapshot = { version: 1, directus: '9.26.0', vendor: 'postgres' } as Snapshot;
expect(validateSnapshot(snapshot, true)).toBeUndefined();
});