@atlaspack/types-internal 2.14.5 → 2.14.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaspack/types-internal
2
2
 
3
+ ## 2.14.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b)]:
8
+ - @atlaspack/feature-flags@2.16.0
9
+
10
+ ## 2.14.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b)]:
15
+ - @atlaspack/feature-flags@2.15.1
16
+
3
17
  ## 2.14.5
4
18
 
5
19
  ### Patch Changes
package/lib/index.d.ts CHANGED
@@ -936,9 +936,17 @@ export interface Config {
936
936
  * of the passed searchPath.
937
937
  */
938
938
  getConfigFrom<T>(searchPath: FilePath, filePaths: Array<FilePath>, options?: {
939
+ /**
940
+ * @deprecated Use `configKey` instead.
941
+ */
939
942
  packageKey?: string;
940
943
  parse?: boolean;
941
944
  exclude?: boolean;
945
+ } | {
946
+ /**
947
+ * If specified, only invalidate when this config key changes.
948
+ */
949
+ configKey?: string;
942
950
  }): Promise<ConfigResultWithFilePath<T> | null | undefined>;
943
951
 
944
952
  /** Finds the nearest package.json from the config's searchPath. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/types-internal",
3
- "version": "2.14.5",
3
+ "version": "2.14.7",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "main": "src/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@atlaspack/diagnostic": "2.14.1",
20
- "@atlaspack/feature-flags": "2.15.0",
20
+ "@atlaspack/feature-flags": "2.16.0",
21
21
  "@parcel/source-map": "^2.1.1",
22
22
  "utility-types": "^3.10.0"
23
23
  },
package/src/index.js CHANGED
@@ -975,11 +975,21 @@ export interface Config {
975
975
  getConfigFrom<T>(
976
976
  searchPath: FilePath,
977
977
  filePaths: Array<FilePath>,
978
- options?: {|
979
- packageKey?: string,
980
- parse?: boolean,
981
- exclude?: boolean,
982
- |},
978
+ options?:
979
+ | {|
980
+ /**
981
+ * @deprecated Use `configKey` instead.
982
+ */
983
+ packageKey?: string,
984
+ parse?: boolean,
985
+ exclude?: boolean,
986
+ |}
987
+ | {|
988
+ /**
989
+ * If specified, only invalidate when this config key changes.
990
+ */
991
+ configKey?: string,
992
+ |},
983
993
  ): Promise<?ConfigResultWithFilePath<T>>;
984
994
  /** Finds the nearest package.json from the config's searchPath. */
985
995
  getPackage(): Promise<?PackageJSON>;