@grafikr/shopify-typescript 2.1.0 → 2.2.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.
@@ -3,7 +3,7 @@ import type { CustomerPrivacy } from './modules/customerPrivacy';
3
3
  export type Shopify = {
4
4
  loadFeatures: (
5
5
  features: Array<{ name: string; version: string }>,
6
- callback: CallableFunction,
6
+ callback: (error?: Error | null) => void,
7
7
  ) => void;
8
8
  customerPrivacy?: CustomerPrivacy;
9
9
  currency: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafikr/shopify-typescript",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "format": "yarn prettier . --write"
@@ -45,7 +45,7 @@ export type LineItem = {
45
45
  };
46
46
  has_components: boolean;
47
47
 
48
- // Deprecated values
48
+ // Deprecated properties
49
49
  /** @deprecated Use line_level_discount_allocations instead */
50
50
  discounts: [
51
51
  {
@@ -8,9 +8,6 @@ export type ProductVariant = {
8
8
  compare_at_price: string;
9
9
  fulfillment_service: string;
10
10
  inventory_management: string;
11
- option1: string | null;
12
- option2: string | null;
13
- option3: string | null;
14
11
  created_at: string;
15
12
  updated_at: string;
16
13
  taxable: boolean;
@@ -20,4 +17,12 @@ export type ProductVariant = {
20
17
  weight: number;
21
18
  weight_unit: 'g' | 'kg';
22
19
  requires_shipping: boolean;
20
+
21
+ // Deprecated properties
22
+ /** @deprecated Prefer to use options instead. */
23
+ option1: string | null;
24
+ /** @deprecated Prefer to use options instead. */
25
+ option2: string | null;
26
+ /** @deprecated Prefer to use options instead. */
27
+ option3: string | null;
23
28
  };
@@ -4,9 +4,6 @@ import type { FeaturedVariantMedia } from './FeaturedVariantMedia';
4
4
  export type ProductVariant = {
5
5
  id: number;
6
6
  title: string;
7
- option1: string;
8
- option2: string | null;
9
- option3: string | null;
10
7
  sku: string | null;
11
8
  requires_shipping: boolean;
12
9
  taxable: boolean;
@@ -26,4 +23,12 @@ export type ProductVariant = {
26
23
  max: number | null;
27
24
  min: number;
28
25
  };
26
+
27
+ // Deprecated properties
28
+ /** @deprecated Prefer to use options instead. */
29
+ option1: string | null;
30
+ /** @deprecated Prefer to use options instead. */
31
+ option2: string | null;
32
+ /** @deprecated Prefer to use options instead. */
33
+ option3: string | null;
29
34
  };