diff --git a/THIRD-PARTY-LICENSES.md b/THIRD-PARTY-LICENSES.md new file mode 100644 index 0000000..693cf46 --- /dev/null +++ b/THIRD-PARTY-LICENSES.md @@ -0,0 +1,38 @@ +# Third-party licenses + +This project is distributed under the MIT License (see `LICENSE`). MIT requires that the upstream LICENSE text be preserved in each third-party dependency's installed artifact — Bun's package cache does this by default. + + +## Summary + +| Category | Count | +|---|---:| +| Permissive | 783 | +| Permissive (w/ attribution) | 78 | +| Weak copyleft | 12 | +| **Total** | **873** | + +## What each category means + +- **Permissive** — MIT, BSD, ISC, 0BSD, Unlicense, CC0, Boost. Use freely; keep the upstream LICENSE text in the dep. +- **Permissive (w/ attribution)** — Apache-2.0, Artistic, CC-BY. Same as permissive, plus preserve any upstream NOTICE file. +- **Weak copyleft** — MPL-2.0, LGPL, EPL, CDDL. Modifications to the licensed files must stay under the same license, but using the library as a dep does not force this project to open-source. + +## Weak-copyleft dependencies + +Explicit list — all safe as unmodified library deps: + +| Package | Version | Ecosystem | License | +|---|---|---|---| +| `@edge-runtime/format` | 2.2.1 | npm | MPL-2.0 | +| `@edge-runtime/node-utils` | 2.3.0 | npm | MPL-2.0 | +| `@edge-runtime/ponyfill` | 2.4.2 | npm | MPL-2.0 | +| `@edge-runtime/primitives` | 4.1.0 | npm | MPL-2.0 | +| `@edge-runtime/vm` | 3.2.0 | npm | MPL-2.0 | +| `@img/sharp-libvips-darwin-arm64` | 1.2.4 | npm | LGPL-3.0-or-later | +| `@vercel/og` | 0.7.2 | npm | MPL-2.0 | +| `edge-runtime` | 2.5.9 | npm | MPL-2.0 | +| `lightningcss` | 1.30.2 | npm | MPL-2.0 | +| `lightningcss-darwin-arm64` | 1.30.2 | npm | MPL-2.0 | +| `next-mdx-remote` | 6.0.0 | npm | MPL-2.0 | +| `pip-requirements-js` | 1.0.2 | npm | MPL-2.0 | diff --git a/package.json b/package.json index db5f3a8..67fe756 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "nextlytics-monorepo", "private": true, + "license": "MIT", "type": "module", "workspaces": [ "packages/*", diff --git a/packages/core/src/server.tsx b/packages/core/src/server.tsx index f6a2e33..a00c99f 100644 --- a/packages/core/src/server.tsx +++ b/packages/core/src/server.tsx @@ -245,7 +245,9 @@ export function Nextlytics(userConfig: NextlyticsConfig): NextlyticsResult { if (!ctx) { // x-nl-page-render-id absent → check if middleware is at least active if (!headersList.get(headerNames.active)) { - console.warn("[Nextlytics] nextlyticsMiddleware should be added in order for Server to work"); + console.warn( + "[Nextlytics] nextlyticsMiddleware should be added in order for Server to work" + ); } return <>{children}; }