datatables.net 3.0.0-beta.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "js/dataTables.js",
5
5
  "module": "js/dataTables.mjs",
6
6
  "types": "./types/types.d.ts",
7
- "version": "3.0.0-beta.2",
7
+ "version": "3.0.0",
8
8
  "files": [
9
9
  "js/**/*.js",
10
10
  "js/**/*.mjs",
@@ -26,5 +26,6 @@
26
26
  "repository": {
27
27
  "type": "git",
28
28
  "url": "git+https://github.com/DataTables/DataTablesSrc.git"
29
- }
29
+ },
30
+ "dependencies": null
30
31
  }
package/types/types.d.ts CHANGED
@@ -3091,7 +3091,7 @@ declare const _default: {
3091
3091
  * @param jq jQuery
3092
3092
  * @returns Indicator
3093
3093
  */
3094
- declare function factory(root: Window & typeof globalThis, jq: JQueryStatic): boolean;
3094
+ declare function factory(root: Window & typeof globalThis, jq: any): boolean;
3095
3095
 
3096
3096
  type Unpacked<T> = T extends (infer U)[] ? U : T extends (...args: any[]) => infer U ? U : T extends Promise<infer U> ? U : T;
3097
3097
  type DomSelector = string | Node | HTMLElement | JQuery | Dom;
@@ -5042,12 +5042,25 @@ interface DataTablesStatic {
5042
5042
  * @returns true the given table is a DataTable, false otherwise
5043
5043
  */
5044
5044
  isDataTable(table: string | Node | JQuery | Api<any>): boolean;
5045
+ /**
5046
+ * Set the DataTables Plus license key.
5047
+ *
5048
+ * @param key Your DataTables Plus license key
5049
+ */
5050
+ key(key: string): void;
5045
5051
  /**
5046
5052
  * The models that DataTables uses for data storage.
5047
5053
  *
5048
5054
  * @ignore
5049
5055
  */
5050
5056
  models: typeof _default$1;
5057
+ /**
5058
+ * Validate a "Plus" extensions
5059
+ *
5060
+ * @param date The release date of the software. ISO8601 date only format.
5061
+ * @param software Optional the extension name
5062
+ */
5063
+ plus(date: string, software?: string): boolean;
5051
5064
  /**
5052
5065
  * Helpers for `columns.render`.
5053
5066
  *