@salesforce/ts-types 2.0.8 → 2.0.10

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/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023, Salesforce.com, Inc.
1
+ Copyright (c) 2024, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -8,17 +8,15 @@ import { Optional } from './union';
8
8
  * and values, see the following functions: {@link definiteEntriesOf}, {@link definiteKeysOf}, and
9
9
  * {@link definiteValuesOf}.
10
10
  */
11
- export interface Dictionary<T = unknown> {
11
+ export type Dictionary<T = unknown> = {
12
12
  [key: string]: Optional<T>;
13
- }
13
+ };
14
14
  /**
15
15
  * An alias for an array of `T` elements, where `T` defaults to `unknown`.
16
16
  */
17
- export interface AnyArray<T = unknown> extends Array<T> {
18
- }
17
+ export type AnyArray<T = unknown> = T[];
19
18
  /**
20
19
  * Any object with both a numeric index signature with values of type `T` and a numeric `length`
21
20
  * property. `T` defaults to `unknown` if unspecified.
22
21
  */
23
- export interface AnyArrayLike<T = unknown> extends ArrayLike<T> {
24
- }
22
+ export type AnyArrayLike<T = unknown> = ArrayLike<T>;
@@ -22,5 +22,4 @@ export interface JsonMap extends Dictionary<AnyJson> {
22
22
  /**
23
23
  * Any JSON-compatible array.
24
24
  */
25
- export interface JsonArray extends Array<AnyJson> {
26
- }
25
+ export type JsonArray = AnyJson[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ts-types",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "Types and related utilities for TypeScript",
5
5
  "main": "lib/index.js",
6
6
  "repository": "forcedotcom/ts-types",
@@ -8,7 +8,7 @@
8
8
  "license": "BSD-3-Clause",
9
9
  "types": "lib/index.d.ts",
10
10
  "engines": {
11
- "node": ">=16.0.0"
11
+ "node": ">=18.0.0"
12
12
  },
13
13
  "files": [
14
14
  "lib/**/*.js",
@@ -16,46 +16,23 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "build": "wireit",
19
- "ci-docs": "yarn sf-ci-docs",
20
19
  "clean": "sf-clean",
21
20
  "clean-all": "sf-clean all",
22
21
  "compile": "wireit",
23
22
  "docs": "sf-docs",
24
23
  "format": "wireit",
24
+ "link-check": "wireit",
25
25
  "lint": "wireit",
26
26
  "prepack": "sf-prepack",
27
27
  "prepare": "sf-install",
28
28
  "test": "wireit",
29
29
  "test:only": "wireit"
30
30
  },
31
- "dependencies": {
32
- "tslib": "^2.6.2"
33
- },
31
+ "dependencies": {},
34
32
  "devDependencies": {
35
- "@salesforce/dev-config": "^4.0.1",
36
- "@salesforce/dev-scripts": "^5.10.0",
37
- "@salesforce/prettier-config": "^0.0.3",
38
- "@typescript-eslint/eslint-plugin": "^5.62.0",
39
- "@typescript-eslint/parser": "^5.62.0",
40
- "chai": "^4.3.8",
41
- "eslint": "^8.50.0",
42
- "eslint-config-prettier": "^8.10.0",
43
- "eslint-config-salesforce": "^2.0.2",
44
- "eslint-config-salesforce-license": "^0.2.0",
45
- "eslint-config-salesforce-typescript": "^1.1.2",
46
- "eslint-plugin-header": "^3.1.1",
47
- "eslint-plugin-import": "2.28.1",
48
- "eslint-plugin-jsdoc": "^43.2.0",
49
- "eslint-plugin-prefer-arrow": "^1.2.1",
50
- "husky": "^7.0.4",
51
- "mocha": "^9.1.3",
52
- "nyc": "^15.1.0",
53
- "prettier": "^2.8.8",
54
- "pretty-quick": "^3.1.0",
55
- "sinon": "10.0.0",
56
- "ts-node": "^10.0.0",
57
- "typescript": "^4.9.5",
58
- "wireit": "^0.14.0"
33
+ "@salesforce/dev-scripts": "^10.1.0",
34
+ "ts-node": "^10.9.2",
35
+ "typescript": "^5.4.5"
59
36
  },
60
37
  "wireit": {
61
38
  "build": {
@@ -110,7 +87,8 @@
110
87
  "test": {
111
88
  "dependencies": [
112
89
  "test:only",
113
- "test:compile"
90
+ "test:compile",
91
+ "link-check"
114
92
  ]
115
93
  },
116
94
  "test:only": {
@@ -127,6 +105,15 @@
127
105
  ".nycrc"
128
106
  ],
129
107
  "output": []
108
+ },
109
+ "link-check": {
110
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
111
+ "files": [
112
+ "./*.md",
113
+ "./!(CHANGELOG).md",
114
+ "messages/**/*.md"
115
+ ],
116
+ "output": []
130
117
  }
131
118
  }
132
119
  }