From f5de2d0ee7315804153cb799553038a293e20218 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Wed, 21 Feb 2024 21:31:03 -0500 Subject: [PATCH] feat(deps): simplify package TS Types exports - we no longer need to specify TypeScript >=4.2 min version since at this point v4.2 is 3 years old, so most users have already upgraded. The TS builds changed after TypeScript v3.7 which is even older and even then the prior code was simply throwing anyway when using a version below 4.2 since it had no Types exports associated --- packages/binding/package.json | 9 +-------- packages/common/package.json | 9 +-------- packages/composite-editor-component/package.json | 9 +-------- packages/custom-footer-component/package.json | 9 +-------- packages/custom-tooltip-plugin/package.json | 9 +-------- packages/empty-warning-component/package.json | 9 +-------- packages/event-pub-sub/package.json | 9 +-------- packages/excel-export/package.json | 9 +-------- packages/graphql/package.json | 9 +-------- packages/odata/package.json | 9 +-------- packages/pagination-component/package.json | 9 +-------- packages/row-detail-view-plugin/package.json | 9 +-------- packages/rxjs-observable/package.json | 9 +-------- packages/text-export/package.json | 9 +-------- packages/utils/package.json | 9 +-------- packages/vanilla-bundle/package.json | 9 +-------- packages/vanilla-force-bundle/package.json | 9 +-------- 17 files changed, 17 insertions(+), 136 deletions(-) diff --git a/packages/binding/package.json b/packages/binding/package.json index 641572519..a353def69 100644 --- a/packages/binding/package.json +++ b/packages/binding/package.json @@ -4,14 +4,7 @@ "description": "Simple Vanilla Implementation of a Binding Engine & Helper to add properties/events 2 way bindings", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/common/package.json b/packages/common/package.json index edc1e0793..e3e2d300c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -4,14 +4,7 @@ "description": "SlickGrid-Universal Common Code", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/composite-editor-component/package.json b/packages/composite-editor-component/package.json index 7bf0e3573..2155df5f1 100644 --- a/packages/composite-editor-component/package.json +++ b/packages/composite-editor-component/package.json @@ -4,14 +4,7 @@ "description": "Slick Composite Editor Component - Vanilla Implementation of a Composite Editor Modal Window Component", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/custom-footer-component/package.json b/packages/custom-footer-component/package.json index fb23429fb..b6838d459 100644 --- a/packages/custom-footer-component/package.json +++ b/packages/custom-footer-component/package.json @@ -4,14 +4,7 @@ "description": "Slick Custom Footer Component - Vanilla Implementation of a Custom Footer Component", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/custom-tooltip-plugin/package.json b/packages/custom-tooltip-plugin/package.json index 2d0c8a92a..4eaceb5a9 100644 --- a/packages/custom-tooltip-plugin/package.json +++ b/packages/custom-tooltip-plugin/package.json @@ -4,14 +4,7 @@ "description": "A plugin to add Custom Tooltip when hovering a cell, it subscribes to the cell", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/empty-warning-component/package.json b/packages/empty-warning-component/package.json index fbf55056b..1eafdf577 100644 --- a/packages/empty-warning-component/package.json +++ b/packages/empty-warning-component/package.json @@ -4,14 +4,7 @@ "description": "Slick Empty Warning Component - Vanilla Implementation of an Empty Dataset Warning Component", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/event-pub-sub/package.json b/packages/event-pub-sub/package.json index 465768051..c29d02bb1 100644 --- a/packages/event-pub-sub/package.json +++ b/packages/event-pub-sub/package.json @@ -4,14 +4,7 @@ "description": "Simple Vanilla Implementation of an Event PubSub Service to do simply publish/subscribe inter-communication while optionally providing data in the event", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/excel-export/package.json b/packages/excel-export/package.json index ada5ef5bd..65b4a1dd8 100644 --- a/packages/excel-export/package.json +++ b/packages/excel-export/package.json @@ -4,14 +4,7 @@ "description": "Excel Export (xls/xlsx) Service.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/graphql/package.json b/packages/graphql/package.json index a4c4160fa..16b1b7cea 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -4,14 +4,7 @@ "description": "GraphQL Service to sync a grid with a GraphQL backend server", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/odata/package.json b/packages/odata/package.json index 4c6c3cc2c..c789ff0af 100644 --- a/packages/odata/package.json +++ b/packages/odata/package.json @@ -4,14 +4,7 @@ "description": "Grid OData Service to sync a grid with an OData backend server", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/pagination-component/package.json b/packages/pagination-component/package.json index 5dea897c5..c68d98e95 100644 --- a/packages/pagination-component/package.json +++ b/packages/pagination-component/package.json @@ -4,14 +4,7 @@ "description": "Slick Pagination Component - Vanilla Implementation of a Pagination Component", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/row-detail-view-plugin/package.json b/packages/row-detail-view-plugin/package.json index de02494a6..e35af8237 100644 --- a/packages/row-detail-view-plugin/package.json +++ b/packages/row-detail-view-plugin/package.json @@ -4,14 +4,7 @@ "description": "SlickRowDetail plugin - A plugin to add Row Detail Panel", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/rxjs-observable/package.json b/packages/rxjs-observable/package.json index 48078f76c..126599af4 100644 --- a/packages/rxjs-observable/package.json +++ b/packages/rxjs-observable/package.json @@ -4,14 +4,7 @@ "description": "RxJS Observable Wrapper", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/text-export/package.json b/packages/text-export/package.json index e3813c361..8f9be1d7f 100644 --- a/packages/text-export/package.json +++ b/packages/text-export/package.json @@ -4,14 +4,7 @@ "description": "Export to Text File (csv/txt) Service.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/utils/package.json b/packages/utils/package.json index 9fcd44ba5..883d7a791 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -4,14 +4,7 @@ "description": "Common set of small utilities", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/vanilla-bundle/package.json b/packages/vanilla-bundle/package.json index 19c26fab6..272c36ac1 100644 --- a/packages/vanilla-bundle/package.json +++ b/packages/vanilla-bundle/package.json @@ -4,14 +4,7 @@ "description": "Vanilla Slick Grid Bundle - Framework agnostic the output is to be used in vanilla JS/TS - Written in TypeScript and we also use Vite to bundle everything into a single JS file.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", diff --git a/packages/vanilla-force-bundle/package.json b/packages/vanilla-force-bundle/package.json index 360261c52..80c249534 100644 --- a/packages/vanilla-force-bundle/package.json +++ b/packages/vanilla-force-bundle/package.json @@ -4,14 +4,7 @@ "description": "Vanilla Slick Grid Bundle (mostly exist for our Salesforce implementation) - Similar to Vanilla Bundle, the only difference is that it adds extra packages within its bundle (CustomTooltip, CompositeEditor & TextExport)", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, + "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts",