@agnostack/next-shopify 1.7.0-alpha.14 → 1.7.0-alpha.15
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/dist/helpers/callback.d.ts +1 -1
- package/dist/helpers/callback.js +8 -11
- package/dist/helpers/callback.js.map +1 -1
- package/dist/utils/billing.d.ts +11 -20
- package/dist/utils/billing.js +49 -187
- package/dist/utils/billing.js.map +1 -1
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/constants.js +1 -72
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/display.d.ts +1 -1
- package/dist/utils/session.js +1 -3
- package/dist/utils/session.js.map +1 -1
- package/dist/withShopify.js +7 -10
- package/dist/withShopify.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -553
package/dist/helpers/callback.js
CHANGED
|
@@ -4,9 +4,7 @@ const shopify_api_1 = require("@shopify/shopify-api");
|
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const callbackHelper = async ({ req, res, serverRuntimeConfig }) => {
|
|
6
6
|
var _a;
|
|
7
|
-
|
|
8
|
-
// const { PAGE_PATHS, PAYMENT_CONFIG } = serverRuntimeConfig
|
|
9
|
-
const { PAGE_PATHS } = serverRuntimeConfig;
|
|
7
|
+
const { PAGE_PATHS, PAYMENT_CONFIG } = serverRuntimeConfig;
|
|
10
8
|
const { shop, host } = req.query;
|
|
11
9
|
if (utils_1.stringEmpty(shop) || utils_1.stringEmpty(host)) {
|
|
12
10
|
return {
|
|
@@ -27,14 +25,13 @@ const callbackHelper = async ({ req, res, serverRuntimeConfig }) => {
|
|
|
27
25
|
// TODO: explore objectToQuerystring
|
|
28
26
|
const embeddedURL = await shopify.auth.getEmbeddedAppUrl(authPayload);
|
|
29
27
|
redirectUrl = `${embeddedURL}?${new URLSearchParams(req.query).toString()}`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// }
|
|
28
|
+
if (PAYMENT_CONFIG === null || PAYMENT_CONFIG === void 0 ? void 0 : PAYMENT_CONFIG.required) {
|
|
29
|
+
const confirmationUrl = await utils_1.ensureBilling(shopify, session, PAYMENT_CONFIG);
|
|
30
|
+
console.log(`>>> > callbackHelper > confirmationUrl:`, confirmationUrl);
|
|
31
|
+
if (utils_1.stringNotEmpty(confirmationUrl)) {
|
|
32
|
+
redirectUrl = confirmationUrl;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
38
35
|
}
|
|
39
36
|
catch (error) {
|
|
40
37
|
const errorMessage = 'Error handling callback route';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.js","sourceRoot":"","sources":["../../src/helpers/callback.js"],"names":[],"mappings":";;AAAA,sDAAyG;AAEzG,oCAWiB;AAEjB,MAAM,cAAc,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,EAAE,EAAE;;IACjE,
|
|
1
|
+
{"version":3,"file":"callback.js","sourceRoot":"","sources":["../../src/helpers/callback.js"],"names":[],"mappings":";;AAAA,sDAAyG;AAEzG,oCAWiB;AAEjB,MAAM,cAAc,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,EAAE,EAAE;;IACjE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,mBAAmB,CAAA;IAC1D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAA;IAEhC,IAAI,mBAAW,CAAC,IAAI,CAAC,IAAI,mBAAW,CAAC,IAAI,CAAC,EAAE;QAC1C,OAAO;YACL,UAAU,EAAE,GAAG;YACf,WAAW,EAAE,GAAG,UAAU,CAAC,wBAAgB,CAAC,KAAK,CAAC,SAAS,mBAAW,CAAC,gBAAgB,EAAE;SAC1F,CAAA;KACF;IAED,IAAI,WAAW,CAAA;IAEf,IAAI;QACF,kD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.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ensureBilling(): Promise<any>;
|
|
13
|
-
hasActiveRecurringPayment(): Promise<boolean>;
|
|
14
|
-
hasActiveOneTimePayment(endCursor?: any): any;
|
|
15
|
-
hasActivePayment(): Promise<any>;
|
|
16
|
-
requestPayment(): Promise<any>;
|
|
17
|
-
requestSinglePayment(returnUrl: any): Promise<any>;
|
|
18
|
-
requestRecurringPayment(returnUrl: any): Promise<any>;
|
|
19
|
-
}
|
|
20
|
-
export function generatePaymentConfig(): {};
|
|
1
|
+
export function ensureBilling(shopify: any, session: any, paymentConfig: any): Promise<any>;
|
|
2
|
+
export function generatePaymentConfig(paymentConfig: any, data: any): {
|
|
3
|
+
required: boolean;
|
|
4
|
+
test: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
config: {
|
|
7
|
+
interval: any;
|
|
8
|
+
amount: any;
|
|
9
|
+
currencyCode: any;
|
|
10
|
+
};
|
|
11
|
+
};
|
package/dist/utils/billing.js
CHANGED
|
@@ -1,210 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generatePaymentConfig = exports.
|
|
3
|
+
exports.generatePaymentConfig = exports.ensureBilling = void 0;
|
|
4
4
|
const shopify_api_1 = require("@shopify/shopify-api");
|
|
5
5
|
const display_1 = require("./display");
|
|
6
6
|
const constants_1 = require("./constants");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
this.shopify = shopify;
|
|
18
|
-
this.shop = session.shop;
|
|
19
|
-
this.graphClient = new shopify.clients.Graphql({ session });
|
|
20
|
-
this.session = session;
|
|
21
|
-
this.accessToken = session.accessToken;
|
|
22
|
-
this.appId = APP_ID;
|
|
23
|
-
this.appBaseUrl = APP_BASE_URL;
|
|
24
|
-
this.paymentConfig = display_1.ensureObject(PAYMENT_CONFIG);
|
|
25
|
-
this.isRecurring = constants_1.RECURRING_INTERVALS.includes(this.paymentConfig.type);
|
|
26
|
-
}
|
|
27
|
-
async ensureBilling() {
|
|
28
|
-
var _a;
|
|
29
|
-
try {
|
|
30
|
-
if (await this.hasActivePayment()) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
return this.requestPayment();
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
if (error instanceof shopify_api_1.GraphqlQueryError) {
|
|
37
|
-
throw new shopify_api_1.BillingError({
|
|
38
|
-
message: 'Failed to verify or initialize payment',
|
|
39
|
-
errorData: display_1.ensureArray((_a = error.response) === null || _a === void 0 ? void 0 : _a.errors).map(({ message }) => display_1.ensureString(message)),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
throw error;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
async hasActiveRecurringPayment() {
|
|
46
|
-
var _a, _b, _c;
|
|
47
|
-
const currentInstallations = await this.graphClient.query({
|
|
48
|
-
data: constants_1.RECURRING_PURCHASES_QUERY,
|
|
7
|
+
const hasValidBilling = (session, paymentConfig) => (display_1.stringNotEmpty(session === null || session === void 0 ? void 0 : session.shop) &&
|
|
8
|
+
display_1.stringNotEmpty(session === null || session === void 0 ? void 0 : session.accessToken) &&
|
|
9
|
+
display_1.stringNotEmpty(paymentConfig === null || paymentConfig === void 0 ? void 0 : paymentConfig.name) &&
|
|
10
|
+
display_1.objectNotEmpty(paymentConfig === null || paymentConfig === void 0 ? void 0 : paymentConfig.config) &&
|
|
11
|
+
Object.values(constants_1.BILLING_INTERVALS).includes(paymentConfig === null || paymentConfig === void 0 ? void 0 : paymentConfig.type));
|
|
12
|
+
const ensureBilling = async (shopify, session, paymentConfig) => {
|
|
13
|
+
if (!hasValidBilling(session, paymentConfig)) {
|
|
14
|
+
throw new shopify_api_1.BillingError({
|
|
15
|
+
message: 'Invalid billing configuration',
|
|
49
16
|
});
|
|
50
|
-
const subscriptions = (_c = (_b = (_a = currentInstallations === null || currentInstallations === void 0 ? void 0 : currentInstallations.body) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.currentAppInstallation) === null || _c === void 0 ? void 0 : _c.activeSubscriptions;
|
|
51
|
-
const matchingSubscription = display_1.ensureArray(subscriptions).find((node) => (((node === null || node === void 0 ? void 0 : node.name) === this.paymentConfig.name)
|
|
52
|
-
&& (!display_1.isTrue(node === null || node === void 0 ? void 0 : node.test) || this.paymentConfig.test)
|
|
53
|
-
// ORIG && (isTrue(chargeTest) === this.paymentConfig.test)
|
|
54
|
-
));
|
|
55
|
-
return display_1.objectNotEmpty(matchingSubscription);
|
|
56
17
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
65
|
-
const purchases = (_c = (_b = (_a = currentInstallations === null || currentInstallations === void 0 ? void 0 : currentInstallations.body) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.currentAppInstallation) === null || _c === void 0 ? void 0 : _c.oneTimePurchases;
|
|
66
|
-
// TODO: clean this up
|
|
67
|
-
const matchingPurchase = display_1.ensureArray(purchases === null || purchases === void 0 ? void 0 : purchases.edges).find(({ node } = {}) => {
|
|
68
|
-
if (((node === null || node === void 0 ? void 0 : node.name) === this.paymentConfig.name) && ((node === null || node === void 0 ? void 0 : node.status) === 'ACTIVE')) {
|
|
69
|
-
// console.log(`>>> ~ node`, {
|
|
70
|
-
// node,
|
|
71
|
-
// truish: (!isTrue(node?.test) || this.paymentConfig.test),
|
|
72
|
-
// })
|
|
73
|
-
}
|
|
74
|
-
return (((node === null || node === void 0 ? void 0 : node.name) === this.paymentConfig.name)
|
|
75
|
-
&& ((node === null || node === void 0 ? void 0 : node.status) === 'ACTIVE')
|
|
76
|
-
&& (!display_1.isTrue(node === null || node === void 0 ? void 0 : node.test) || this.paymentConfig.test)
|
|
77
|
-
// ORIG && (isTrue(node?.test) === this.paymentConfig.test)
|
|
78
|
-
);
|
|
79
|
-
});
|
|
80
|
-
if (display_1.objectNotEmpty(matchingPurchase)) {
|
|
81
|
-
return true;
|
|
18
|
+
try {
|
|
19
|
+
if (display_1.isTrue(await shopify.billing.check({
|
|
20
|
+
plans: [paymentConfig.name],
|
|
21
|
+
isTest: display_1.isTrue(paymentConfig.test),
|
|
22
|
+
session,
|
|
23
|
+
}))) {
|
|
24
|
+
return undefined;
|
|
82
25
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
async hasActivePayment() {
|
|
89
|
-
if (this.isRecurring) {
|
|
90
|
-
return this.hasActiveRecurringPayment();
|
|
91
|
-
}
|
|
92
|
-
return this.hasActiveOneTimePayment();
|
|
93
|
-
}
|
|
94
|
-
async requestPayment() {
|
|
95
|
-
// TODO: explore objectToQuerystring
|
|
96
|
-
const queryParams = [
|
|
97
|
-
`shop=${this.shop}`,
|
|
98
|
-
`host=${Buffer.from(`${this.shop}/admin`).toString('base64')}`
|
|
99
|
-
];
|
|
100
|
-
const returnUrl = `${this.appBaseUrl}?${queryParams.join('&')}`;
|
|
101
|
-
const data = this.isRecurring
|
|
102
|
-
? await this.requestRecurringPayment(returnUrl)
|
|
103
|
-
: await this.requestSinglePayment(returnUrl);
|
|
104
|
-
if (display_1.arrayNotEmpty(data === null || data === void 0 ? void 0 : data.userErrors)) {
|
|
105
|
-
throw new shopify_api_1.BillingError({
|
|
106
|
-
message: 'User error requesting payment',
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return data === null || data === void 0 ? void 0 : data.confirmationUrl;
|
|
110
|
-
}
|
|
111
|
-
async requestSinglePayment(returnUrl) {
|
|
112
|
-
var _a, _b, _c, _d;
|
|
113
|
-
const { price, name, test, } = this.paymentConfig;
|
|
114
|
-
const mutationResponse = await this.graphClient.query({
|
|
115
|
-
data: {
|
|
116
|
-
query: constants_1.ONE_TIME_PURCHASE_MUTATION,
|
|
117
|
-
variables: {
|
|
118
|
-
test,
|
|
119
|
-
name,
|
|
120
|
-
price,
|
|
121
|
-
returnUrl,
|
|
122
|
-
},
|
|
123
|
-
},
|
|
26
|
+
return shopify.billing.request({
|
|
27
|
+
plan: paymentConfig.name,
|
|
28
|
+
isTest: display_1.isTrue(paymentConfig.test),
|
|
29
|
+
session,
|
|
124
30
|
});
|
|
125
|
-
if (((_a = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _a === void 0 ? void 0 : _a.errors) && display_1.arrayNotEmpty((_b = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _b === void 0 ? void 0 : _b.errors)) {
|
|
126
|
-
throw new shopify_api_1.BillingError({
|
|
127
|
-
message: 'Error executing one-time purchase',
|
|
128
|
-
errorData: display_1.ensureArray(mutationResponse.body.errors).map(({ message }) => display_1.ensureString(message)).join('. '),
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
return (_d = (_c = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.appPurchaseOneTimeCreate;
|
|
132
31
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
const mutationResponse = await this.graphClient.query({
|
|
137
|
-
data: {
|
|
138
|
-
query: constants_1.RECURRING_PURCHASE_MUTATION,
|
|
139
|
-
variables: {
|
|
140
|
-
test,
|
|
141
|
-
name,
|
|
142
|
-
returnUrl,
|
|
143
|
-
lineItems: [{
|
|
144
|
-
plan: {
|
|
145
|
-
appRecurringPricingDetails: {
|
|
146
|
-
interval,
|
|
147
|
-
price,
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
}],
|
|
151
|
-
},
|
|
152
|
-
},
|
|
32
|
+
catch (error) {
|
|
33
|
+
throw new shopify_api_1.BillingError({
|
|
34
|
+
message: 'Failed to verify or initialize payment',
|
|
153
35
|
});
|
|
154
|
-
if (((_a = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _a === void 0 ? void 0 : _a.errors) && display_1.arrayNotEmpty((_b = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _b === void 0 ? void 0 : _b.errors)) {
|
|
155
|
-
throw new shopify_api_1.BillingError({
|
|
156
|
-
message: 'Error executing recurring purchase',
|
|
157
|
-
errorData: display_1.ensureArray(mutationResponse.body.errors).map(({ message }) => display_1.ensureString(message)).join('. '),
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return (_d = (_c = mutationResponse === null || mutationResponse === void 0 ? void 0 : mutationResponse.body) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.appSubscriptionCreate;
|
|
161
36
|
}
|
|
162
|
-
}
|
|
163
|
-
exports.
|
|
164
|
-
// TODO enable billing management
|
|
37
|
+
};
|
|
38
|
+
exports.ensureBilling = ensureBilling;
|
|
165
39
|
// eslint-disable-next-line arrow-body-style
|
|
166
|
-
const generatePaymentConfig = () => {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
price,
|
|
172
|
-
currency = 'USD',
|
|
173
|
-
type = BILLING_INTERVALS.ONE_TIME,
|
|
174
|
-
} = ensureObject(paymentConfig)
|
|
175
|
-
const { debugMode, environment } = ensureObject(data)
|
|
176
|
-
|
|
177
|
-
if (objectEmpty(paymentConfig) || stringEmpty(environment)) {
|
|
178
|
-
return undefined
|
|
40
|
+
const generatePaymentConfig = (paymentConfig, data) => {
|
|
41
|
+
const { name, price, currency = 'USD', type = constants_1.BILLING_INTERVALS.ONE_TIME, } = display_1.ensureObject(paymentConfig);
|
|
42
|
+
const { debugMode, environment } = display_1.ensureObject(data);
|
|
43
|
+
if (display_1.objectEmpty(paymentConfig) || display_1.stringEmpty(environment)) {
|
|
44
|
+
return undefined;
|
|
179
45
|
}
|
|
180
|
-
|
|
181
|
-
const notProduction = (environment !== 'production')
|
|
182
|
-
|
|
46
|
+
const notProduction = (environment !== 'production');
|
|
183
47
|
// TODO ensure this logic is correct
|
|
184
|
-
let test = environment !== 'production'
|
|
48
|
+
let test = environment !== 'production';
|
|
185
49
|
if (debugMode) {
|
|
186
|
-
|
|
50
|
+
test = true;
|
|
187
51
|
}
|
|
188
|
-
|
|
52
|
+
const billingName = `${name}${notProduction ? ` - ${environment}` : ''} - ${display_1.unsnakecase(type)}`;
|
|
189
53
|
const _paymentConfig = {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
54
|
+
required: (environment !== 'development'),
|
|
55
|
+
test,
|
|
56
|
+
name: billingName,
|
|
57
|
+
config: {
|
|
58
|
+
interval: type,
|
|
59
|
+
amount: price,
|
|
60
|
+
currencyCode: currency,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
199
63
|
// TODO: clean this up
|
|
200
64
|
console.log(`>>> ~ _paymentConfig`, {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
})
|
|
205
|
-
|
|
206
|
-
return _paymentConfig
|
|
207
|
-
*/
|
|
65
|
+
_paymentConfig,
|
|
66
|
+
debugMode,
|
|
67
|
+
debugEnv: process.env.DEBUG,
|
|
68
|
+
});
|
|
69
|
+
return _paymentConfig;
|
|
208
70
|
};
|
|
209
71
|
exports.generatePaymentConfig = generatePaymentConfig;
|
|
210
72
|
//# sourceMappingURL=billing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/utils/billing.js"],"names":[],"m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,CAAC,KAAK;KAC5B,CAAC,CAAA;IAEF,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA;AAzCY,QAAA,qBAAqB,yBAyCjC"}
|
|
@@ -17,9 +17,4 @@ export namespace BILLING_INTERVALS {
|
|
|
17
17
|
const EVERY_30_DAYS: string;
|
|
18
18
|
const ANNUAL: string;
|
|
19
19
|
}
|
|
20
|
-
export const RECURRING_INTERVALS: string[];
|
|
21
20
|
export const SHOP_QUERY: "\n {\n shop {\n name\n }\n }\n";
|
|
22
|
-
export const RECURRING_PURCHASES_QUERY: "\n query appSubscription {\n currentAppInstallation {\n activeSubscriptions {\n name, test\n }\n }\n }\n";
|
|
23
|
-
export const ONE_TIME_PURCHASES_QUERY: "\n query appPurchases($endCursor: String) {\n currentAppInstallation {\n oneTimePurchases(first: 250, sortKey: CREATED_AT, after: $endCursor) {\n edges {\n node {\n name, test, status\n }\n }\n pageInfo {\n hasNextPage, endCursor\n }\n }\n }\n }\n";
|
|
24
|
-
export const RECURRING_PURCHASE_MUTATION: "\n mutation test(\n $name: String!\n $lineItems: [AppSubscriptionLineItemInput!]!\n $returnUrl: URL!\n $test: Boolean\n ) {\n appSubscriptionCreate(\n name: $name\n lineItems: $lineItems\n returnUrl: $returnUrl\n test: $test\n ) {\n confirmationUrl\n userErrors {\n field\n message\n }\n }\n }\n";
|
|
25
|
-
export const ONE_TIME_PURCHASE_MUTATION: "\n mutation test(\n $name: String!\n $price: MoneyInput!\n $returnUrl: URL!\n $test: Boolean\n ) {\n appPurchaseOneTimeCreate(\n name: $name\n price: $price\n returnUrl: $returnUrl\n test: $test\n ) {\n confirmationUrl\n userErrors {\n field\n message\n }\n }\n }\n";
|
package/dist/utils/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SHOP_QUERY = exports.BILLING_INTERVALS = exports.API_WEBHOOK_TOPICS = exports.API_ROUTE_NAMES = exports.PAGE_ROUTE_NAMES = exports.COLLECTION_ROOT = void 0;
|
|
4
4
|
exports.COLLECTION_ROOT = 'oauth-data';
|
|
5
5
|
exports.PAGE_ROUTE_NAMES = {
|
|
6
6
|
EXIT: 'pageRouteExit',
|
|
@@ -19,10 +19,6 @@ exports.BILLING_INTERVALS = {
|
|
|
19
19
|
EVERY_30_DAYS: 'EVERY_30_DAYS',
|
|
20
20
|
ANNUAL: 'ANNUAL',
|
|
21
21
|
};
|
|
22
|
-
exports.RECURRING_INTERVALS = [
|
|
23
|
-
exports.BILLING_INTERVALS.EVERY_30_DAYS,
|
|
24
|
-
exports.BILLING_INTERVALS.ANNUAL
|
|
25
|
-
];
|
|
26
22
|
// TODO can we remove?
|
|
27
23
|
/*
|
|
28
24
|
export const SHOP_DATA_QUERY = `
|
|
@@ -69,71 +65,4 @@ exports.SHOP_QUERY = `
|
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
67
|
`;
|
|
72
|
-
exports.RECURRING_PURCHASES_QUERY = `
|
|
73
|
-
query appSubscription {
|
|
74
|
-
currentAppInstallation {
|
|
75
|
-
activeSubscriptions {
|
|
76
|
-
name, test
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
exports.ONE_TIME_PURCHASES_QUERY = `
|
|
82
|
-
query appPurchases($endCursor: String) {
|
|
83
|
-
currentAppInstallation {
|
|
84
|
-
oneTimePurchases(first: 250, sortKey: CREATED_AT, after: $endCursor) {
|
|
85
|
-
edges {
|
|
86
|
-
node {
|
|
87
|
-
name, test, status
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
pageInfo {
|
|
91
|
-
hasNextPage, endCursor
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
exports.RECURRING_PURCHASE_MUTATION = `
|
|
98
|
-
mutation test(
|
|
99
|
-
$name: String!
|
|
100
|
-
$lineItems: [AppSubscriptionLineItemInput!]!
|
|
101
|
-
$returnUrl: URL!
|
|
102
|
-
$test: Boolean
|
|
103
|
-
) {
|
|
104
|
-
appSubscriptionCreate(
|
|
105
|
-
name: $name
|
|
106
|
-
lineItems: $lineItems
|
|
107
|
-
returnUrl: $returnUrl
|
|
108
|
-
test: $test
|
|
109
|
-
) {
|
|
110
|
-
confirmationUrl
|
|
111
|
-
userErrors {
|
|
112
|
-
field
|
|
113
|
-
message
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
118
|
-
exports.ONE_TIME_PURCHASE_MUTATION = `
|
|
119
|
-
mutation test(
|
|
120
|
-
$name: String!
|
|
121
|
-
$price: MoneyInput!
|
|
122
|
-
$returnUrl: URL!
|
|
123
|
-
$test: Boolean
|
|
124
|
-
) {
|
|
125
|
-
appPurchaseOneTimeCreate(
|
|
126
|
-
name: $name
|
|
127
|
-
price: $price
|
|
128
|
-
returnUrl: $returnUrl
|
|
129
|
-
test: $test
|
|
130
|
-
) {
|
|
131
|
-
confirmationUrl
|
|
132
|
-
userErrors {
|
|
133
|
-
field
|
|
134
|
-
message
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
`;
|
|
139
68
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.js"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAA;AAE9B,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,gBAAgB;CACxB,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,sBAAsB;IACrC,eAAe,EAAE,wBAAwB;CAC1C,CAAA;AAEY,QAAA,kBAAkB,GAAG;IAChC,eAAe,EAAE,iBAAiB;CACnC,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;CACjB,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.js"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAA;AAE9B,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,gBAAgB;CACxB,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,sBAAsB;IACrC,eAAe,EAAE,wBAAwB;CAC1C,CAAA;AAEY,QAAA,kBAAkB,GAAG;IAChC,eAAe,EAAE,iBAAiB;CACnC,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;CACjB,CAAA;AAED,sBAAsB;AACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCE;AAEW,QAAA,UAAU,GAAG;;;;;;CAMzB,CAAA"}
|
package/dist/utils/display.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function getGUID(): any;
|
|
2
2
|
export function getInteger(): any;
|
|
3
3
|
export function querystringToObject(queryString: any): {
|
|
4
|
-
[k: string]:
|
|
4
|
+
[k: string]: string;
|
|
5
5
|
};
|
|
6
6
|
export function isType(value: any, type: any): boolean;
|
|
7
7
|
export function ensureObject(object: any): any;
|
package/dist/utils/session.js
CHANGED
|
@@ -53,9 +53,7 @@ const getVerifiedSession = async ({ req, res, shop, shopify, serverRuntimeConfig
|
|
|
53
53
|
throw new errors_1.ShopifyAuthenticationError('Invalid shop');
|
|
54
54
|
}
|
|
55
55
|
if (PAYMENT_CONFIG === null || PAYMENT_CONFIG === void 0 ? void 0 : PAYMENT_CONFIG.required) {
|
|
56
|
-
const
|
|
57
|
-
// TODO: clean up
|
|
58
|
-
const confirmationUrl = await billingManager.ensureBilling();
|
|
56
|
+
const confirmationUrl = await billing_1.ensureBilling(shopify, session, PAYMENT_CONFIG);
|
|
59
57
|
console.log(`>>> > getVerifiedSession > confirmationUrl:`, confirmationUrl);
|
|
60
58
|
if (display_1.stringNotEmpty(confirmationUrl)) {
|
|
61
59
|
throw new errors_1.ShopifyAuthenticationError('Invalid payment status', { redirectUrl: confirmationUrl });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.js"],"names":[],"mappings":";;;AAAA,sDAAwD;AAExD,uCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/utils/session.js"],"names":[],"mappings":";;;AAAA,sDAAwD;AAExD,uCAA0C;AAC1C,uCAAyC;AACzC,qCAAqD;AACrD,2CAAwC;AACxC,yCAMmB;AAEnB,uEAAuE;AAChE,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,mBAAmB,CAAA;IAErE,qCAAqC;IACrC,MAAM,IAAI,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EAAC,CAAA;IAEpE,MAAM,cAAc,GAAG,iCAAsB,CAAC,WAAW,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAA;IAExF,OAAO;QACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,wBAAa,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC;QACtE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,uBAAY,CAAC,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC;QAC1D,MAAM,EAAE,KAAK,EA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entries(API_ROUTES).reduce((_apiPaths, [routeName, route]) => (Object.assign(Object.assign({}, _apiPaths), { [routeName]: `${basePath}${route}` })), {});
|
|
78
78
|
const API_URLS = Object.entries(API_PATHS).reduce((_apiUrls, [routeName, routePath]) => (Object.assign(Object.assign({}, _apiUrls), { [routeName]: `${appBaseUrl}${routePath}` })), {});
|
|
79
79
|
const APP_HOST_NAME = appUrl.hostname;
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
isEmbeddedApp: true,
|
|
88
|
-
};
|
|
80
|
+
const PAYMENT_CONFIG = utils_1.generatePaymentConfig(paymentConfig, data);
|
|
81
|
+
const { name: billingName, config: billingConfig } = utils_1.ensureObject(PAYMENT_CONFIG);
|
|
82
|
+
const APP_CONFIG = Object.assign({ apiVersion: SHOPIFY_API_VERSION, apiKey: SHOPIFY_API_PUBLIC_KEY, apiSecretKey: SHOPIFY_API_KEY, hostName: APP_HOST_NAME, hostScheme: appUrl.protocol.replace(':', ''), scopes: SHOPIFY_API_SCOPES.replace(/, /g, ',').split(','), isEmbeddedApp: true }, (utils_1.stringNotEmpty(billingName) && utils_1.objectNotEmpty(billingConfig)) && {
|
|
83
|
+
billing: {
|
|
84
|
+
[billingName]: billingConfig,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
89
87
|
const APP_WEBHOOKS = {
|
|
90
88
|
// TODO!!!: this should be adding in any extra stuff passed in from plugin config
|
|
91
89
|
[utils_1.API_WEBHOOK_TOPICS.APP_UNINSTALLED]: [{
|
|
92
90
|
url: API_URLS[utils_1.API_ROUTE_NAMES.APP_UNINSTALLED],
|
|
93
91
|
}],
|
|
94
92
|
};
|
|
95
|
-
const PAYMENT_CONFIG = utils_1.generatePaymentConfig(paymentConfig, data);
|
|
96
93
|
const publicRuntimeConfig = Object.assign(Object.assign({}, _publicRuntimeConfig), { SHOPIFY_API_PUBLIC_KEY,
|
|
97
94
|
SHOPIFY_RUN_MODE,
|
|
98
95
|
APP_BASE_URL,
|
package/dist/withShopify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withShopify.js","sourceRoot":"","sources":["../src/withShopify.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAAyD;AAEzD,0DAAoD;AAEpD,
|
|
1
|
+
{"version":3,"file":"withShopify.js","sourceRoot":"","sources":["../src/withShopify.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAAyD;AAEzD,0DAAoD;AAEpD,mCAWgB;AAET,MAAM,WAAW,GAAG,KAAK,EAAE,SAAS,EAAE,EAAyB,EAAE,EAAE;QAA7B,EAAE,UAAU,OAAa,EAAR,MAAM,cAAvB,cAAyB,CAAF;IAClE,MAAM,KAKF,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,EALd,EACJ,QAAQ,EAAE,SAAS,EACnB,mBAAmB,EAAE,oBAAoB,GAAG,EAAE,EAC9C,mBAAmB,EAAE,qBAAqB,GAAG,EAAE,OAE7B,EADf,WAAW,cAJV,0DAKL,CAAmB,CAAA;IAEpB,MAAM,KAIF,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAJV;IACJ,6DAA6D;IAC7D,aAAa,OAEC,EAFC,sDAAsD;IAClE,YAAY,cAHX,iBAIL,CAAe,CAAA;IAEhB,MAAM,QAAQ,GAAG,oBAAY,CAAC,SAAS,CAAC,CAAA;IAExC,MAAM,EACJ,IAAI,EACJ,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EAAE,EACV,CAAC,wBAAgB,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,EACjD,CAAC,wBAAgB,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,GACrD,GAAG,EAAE,EACN,SAAS,EAAE,EACT,CAAC,uBAAe,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,WAAW,EACnD,CAAC,uBAAe,CAAC,aAAa,C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|
-
"version": "1.7.0-alpha.
|
|
3
|
+
"version": "1.7.0-alpha.15",
|
|
4
4
|
"author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
|
|
5
5
|
"owner": "agnoStack",
|
|
6
6
|
"description": "Please contact agnoStack via info@agnostack.com for any questions",
|
package/CHANGELOG.md
DELETED
|
@@ -1,553 +0,0 @@
|
|
|
1
|
-
# [1.7.0-alpha.14](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.13...v1.7.0-alpha.14) (2023-05-22)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* removed logs/working ([3990c06](https://github.com/agnostack/next-shopify/commit/3990c061d91d3b289bc3ddc8bda4f94b7fde2230))
|
|
7
|
-
|
|
8
|
-
# [1.7.0-alpha.13](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.12...v1.7.0-alpha.13) (2023-05-22)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* updated error handling ([e7f4336](https://github.com/agnostack/next-shopify/commit/e7f433642c587c72d5ab8f878c7db9b84a781711))
|
|
14
|
-
|
|
15
|
-
# [1.7.0-alpha.12](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.11...v1.7.0-alpha.12) (2023-05-22)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
* misc fixes ([981bb5d](https://github.com/agnostack/next-shopify/commit/981bb5d710cf6863025e508fa3bb065972516849))
|
|
21
|
-
|
|
22
|
-
# [1.7.0-alpha.11](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.10...v1.7.0-alpha.11) (2023-05-22)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* misc fixes ([776bdfc](https://github.com/agnostack/next-shopify/commit/776bdfc74daacf1b322b2fd9c1a375ac21164199))
|
|
28
|
-
|
|
29
|
-
# [1.7.0-alpha.10](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.9...v1.7.0-alpha.10) (2023-05-22)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* misc fixes ([eaa15a4](https://github.com/agnostack/next-shopify/commit/eaa15a47b84bc7f442300b13999f0c4609bdb04c))
|
|
35
|
-
|
|
36
|
-
# [1.7.0-alpha.9](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.8...v1.7.0-alpha.9) (2023-05-22)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* updated to add logs ([464cabe](https://github.com/agnostack/next-shopify/commit/464cabe65bb0bc3c1c8b1a7f69e41a21abe2b216))
|
|
42
|
-
|
|
43
|
-
# [1.7.0-alpha.8](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.7...v1.7.0-alpha.8) (2023-05-22)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Bug Fixes
|
|
47
|
-
|
|
48
|
-
* updated to add logs ([e0ec49b](https://github.com/agnostack/next-shopify/commit/e0ec49b8b2e4308986df757463438893334765c1))
|
|
49
|
-
|
|
50
|
-
# [1.7.0-alpha.7](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.6...v1.7.0-alpha.7) (2023-05-22)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
* updated to add logs ([db51b0a](https://github.com/agnostack/next-shopify/commit/db51b0a0f39752fd93bdf2383e6df9dc1857f8bd))
|
|
56
|
-
|
|
57
|
-
# [1.7.0-alpha.6](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.5...v1.7.0-alpha.6) (2023-05-22)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* updated to add logs ([07e6d80](https://github.com/agnostack/next-shopify/commit/07e6d80743487bbb11d31ce5881ff435eaa3b154))
|
|
63
|
-
|
|
64
|
-
# [1.7.0-alpha.5](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.4...v1.7.0-alpha.5) (2023-05-22)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Bug Fixes
|
|
68
|
-
|
|
69
|
-
* updates to add initializeShopify ([fa8c9c1](https://github.com/agnostack/next-shopify/commit/fa8c9c1f669d6d06916a6b41182df9282e4aeb35))
|
|
70
|
-
|
|
71
|
-
# [1.7.0-alpha.4](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.3...v1.7.0-alpha.4) (2023-05-22)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
* updates to webhook setup ([2411998](https://github.com/agnostack/next-shopify/commit/241199893654bd43234c771081c349ec47f9a00a))
|
|
77
|
-
|
|
78
|
-
# [1.7.0-alpha.3](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.2...v1.7.0-alpha.3) (2023-05-22)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Bug Fixes
|
|
82
|
-
|
|
83
|
-
* updates APP_WEBHOOKS ([5d521f5](https://github.com/agnostack/next-shopify/commit/5d521f5eec42c9e885e4b8b1fd69ebc8345ef26f))
|
|
84
|
-
|
|
85
|
-
# [1.7.0-alpha.2](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.1...v1.7.0-alpha.2) (2023-05-22)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Bug Fixes
|
|
89
|
-
|
|
90
|
-
* updates for rawBodyConfig ([69a177b](https://github.com/agnostack/next-shopify/commit/69a177b014a1c28091047d5644f9ecee769893e8))
|
|
91
|
-
|
|
92
|
-
# [1.7.0-alpha.1](https://github.com/agnostack/next-shopify/compare/v1.6.0...v1.7.0-alpha.1) (2023-05-22)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Bug Fixes
|
|
96
|
-
|
|
97
|
-
* add logging ([265411d](https://github.com/agnostack/next-shopify/commit/265411d490c58ea6bb7eef4e99af2f660f535903))
|
|
98
|
-
* add logging ([705576c](https://github.com/agnostack/next-shopify/commit/705576cfd57e55e42e052a6c514c985d4807e751))
|
|
99
|
-
* add logging ([de1a42a](https://github.com/agnostack/next-shopify/commit/de1a42a8d9419e368f1f03c7959b2182008484f8))
|
|
100
|
-
* add logging ([de906bc](https://github.com/agnostack/next-shopify/commit/de906bc1c53bb925665e9b8e3fa6b0fe96d11015))
|
|
101
|
-
* add logging ([f83f67c](https://github.com/agnostack/next-shopify/commit/f83f67c841008e89155c7daf524590c85f4434db))
|
|
102
|
-
* add logging ([937c9b9](https://github.com/agnostack/next-shopify/commit/937c9b91c10438c770885cada2751acd41004686))
|
|
103
|
-
* add logging ([129c949](https://github.com/agnostack/next-shopify/commit/129c9495989a3b4f0baa11a1b4fc413752af3998))
|
|
104
|
-
* add logging ([d6ed80a](https://github.com/agnostack/next-shopify/commit/d6ed80a18daef00d78f4811d64ac166bef066261))
|
|
105
|
-
* add logging ([d8b9c87](https://github.com/agnostack/next-shopify/commit/d8b9c878f6d547c57a601961ef74dd1d4fa99c56))
|
|
106
|
-
* add logging ([7678d08](https://github.com/agnostack/next-shopify/commit/7678d08b51cfb5d744d61e7946f228adbc19db6f))
|
|
107
|
-
* add logging ([6d615ed](https://github.com/agnostack/next-shopify/commit/6d615edc85b58b84e0055d04d1af6326ed4a34f0))
|
|
108
|
-
* add logging ([cffd724](https://github.com/agnostack/next-shopify/commit/cffd7248ddf0430b7b98dffdaa9c10919dc5d641))
|
|
109
|
-
* add logging ([c6aed0d](https://github.com/agnostack/next-shopify/commit/c6aed0d600b871bed88bcd19183e2431b675235d))
|
|
110
|
-
* add logging ([5ddffee](https://github.com/agnostack/next-shopify/commit/5ddffeef58bc9fa7c7670bcfdd003abfe060e8f7))
|
|
111
|
-
* add logging ([645ebcd](https://github.com/agnostack/next-shopify/commit/645ebcda460f68ac7e74f2478b08a0b2f513487b))
|
|
112
|
-
* add logging ([323b262](https://github.com/agnostack/next-shopify/commit/323b26274ac308b42f12b4d0edc4beb64ae736d3))
|
|
113
|
-
* add logging ([ef561cc](https://github.com/agnostack/next-shopify/commit/ef561cc4b1006aed5d8b2f58bd2feebf500a42c5))
|
|
114
|
-
* add logging ([d1464f9](https://github.com/agnostack/next-shopify/commit/d1464f93838a404cdff02ed3d4667970d219bf88))
|
|
115
|
-
* add logging ([327f694](https://github.com/agnostack/next-shopify/commit/327f6943b13813232d4a4c690b8b5a06a6357b77))
|
|
116
|
-
* add logging ([96d6ee0](https://github.com/agnostack/next-shopify/commit/96d6ee097b0fa5628c8f0e1eecef07741f1a30e1))
|
|
117
|
-
* add logging ([f64a3a0](https://github.com/agnostack/next-shopify/commit/f64a3a0914f121306c0dfb83a234635489a0950b))
|
|
118
|
-
* add logging ([cd5bade](https://github.com/agnostack/next-shopify/commit/cd5badec1bf62e8b717862e3360d36b0822645dd))
|
|
119
|
-
* add logging ([165e10d](https://github.com/agnostack/next-shopify/commit/165e10dc6bdb49a8d5d7e886e1fd2118a9348600))
|
|
120
|
-
* add logging ([90f2f93](https://github.com/agnostack/next-shopify/commit/90f2f9319a2d7e59e756ea556fa6dc9526fa8ac1))
|
|
121
|
-
* add logging ([7b3db91](https://github.com/agnostack/next-shopify/commit/7b3db91448e5c5de207cf6f4f501755b50d612ca))
|
|
122
|
-
* add logging ([e9fc407](https://github.com/agnostack/next-shopify/commit/e9fc40732b06eae38491475c2919b445bab74c7b))
|
|
123
|
-
* add logging ([6607c9b](https://github.com/agnostack/next-shopify/commit/6607c9b6a424a2cc66c0a906ff437da376f8ee09))
|
|
124
|
-
* add logging ([1423104](https://github.com/agnostack/next-shopify/commit/142310458b0c10a35ceed3f93d38180b8e3a1724))
|
|
125
|
-
* add logging ([f6660cc](https://github.com/agnostack/next-shopify/commit/f6660cc569a08fc9dc8fdabeb3b71c70d4d388d5))
|
|
126
|
-
* add logging ([78de0db](https://github.com/agnostack/next-shopify/commit/78de0db8e187438813eda6c08a70cf24ac4f8ed3))
|
|
127
|
-
* add logging ([6b0372a](https://github.com/agnostack/next-shopify/commit/6b0372a0280408c9db5280d57781a7c237759aeb))
|
|
128
|
-
* add logging ([308917a](https://github.com/agnostack/next-shopify/commit/308917a5f8dcd4518a379d0e008c6668b09555d9))
|
|
129
|
-
* add logging ([a29588d](https://github.com/agnostack/next-shopify/commit/a29588df55baed13aa76cfea155558bf7eb8f5d7))
|
|
130
|
-
* add logging ([030fb20](https://github.com/agnostack/next-shopify/commit/030fb20dd456d08235b504c5fd818a1ab55a1670))
|
|
131
|
-
* add logging ([68480c4](https://github.com/agnostack/next-shopify/commit/68480c41582219449918f2a8456e5d9fbdac6a82))
|
|
132
|
-
* add logging ([c52baf1](https://github.com/agnostack/next-shopify/commit/c52baf1fa3eab2e3a05bc5ed1e1272c3053e3fdb))
|
|
133
|
-
* add logging ([52be76a](https://github.com/agnostack/next-shopify/commit/52be76ad59f4f2f8e32cb18c1a9463f5908dc027))
|
|
134
|
-
* add logging ([bfe8015](https://github.com/agnostack/next-shopify/commit/bfe8015cecf5be46e2d226f54bf973c3ff08c9a7))
|
|
135
|
-
* add logging ([963f987](https://github.com/agnostack/next-shopify/commit/963f987c0ea2c3bb3c527b51b365be779fd8aa5e))
|
|
136
|
-
* add logging ([f5f8808](https://github.com/agnostack/next-shopify/commit/f5f8808069be00a2e6406f72ef34606ded0685be))
|
|
137
|
-
* add logging ([7b60454](https://github.com/agnostack/next-shopify/commit/7b604542595f2a3dd97b74d0b2a1f2d8721da04b))
|
|
138
|
-
* add logging ([f7f684d](https://github.com/agnostack/next-shopify/commit/f7f684d3a0f42cedb00cbadd3a2a2ac4a712b45b))
|
|
139
|
-
* add logging ([f0aff34](https://github.com/agnostack/next-shopify/commit/f0aff340e365d09caed8001ea912d93c91bba4cd))
|
|
140
|
-
* add logging ([430d57e](https://github.com/agnostack/next-shopify/commit/430d57e35fabcf37676e3271e02ef48821b9ee8a))
|
|
141
|
-
* add logging ([d73470f](https://github.com/agnostack/next-shopify/commit/d73470f995f12fb947bdfed550b64cac43f5ba93))
|
|
142
|
-
* add logging ([481a9cb](https://github.com/agnostack/next-shopify/commit/481a9cb814410290c62c74c01acfbe76564c05f2))
|
|
143
|
-
* add logging ([9ebb589](https://github.com/agnostack/next-shopify/commit/9ebb5893134bd5709cd229a1f1706c0268cbe4c2))
|
|
144
|
-
* add logging ([3cf8d24](https://github.com/agnostack/next-shopify/commit/3cf8d2493bbbd7d73ca668e0852699fb9f14d50e))
|
|
145
|
-
* add logging ([a33718e](https://github.com/agnostack/next-shopify/commit/a33718e6eca757ff340262c12242725941d3ad6b))
|
|
146
|
-
* add logging ([36d473a](https://github.com/agnostack/next-shopify/commit/36d473ae77e8ef255f4b610ebc01a354a107157e))
|
|
147
|
-
* add logging ([0a6848f](https://github.com/agnostack/next-shopify/commit/0a6848f1dd51cda45ba75e950bcdcb40387905dc))
|
|
148
|
-
* add logging ([831f4d9](https://github.com/agnostack/next-shopify/commit/831f4d9cc72b4b16bf829344bdfc7a60b5c0c1d9))
|
|
149
|
-
* add logging ([9d725f6](https://github.com/agnostack/next-shopify/commit/9d725f604de8e270ebc4aa539da0232936f3d40e))
|
|
150
|
-
* add logging ([95718c1](https://github.com/agnostack/next-shopify/commit/95718c17c2dfec8c548004b28e652bbd31085c9c))
|
|
151
|
-
* add logging ([37d6d95](https://github.com/agnostack/next-shopify/commit/37d6d95da5ff54eeef48a16de3d7664d7f57695f))
|
|
152
|
-
* add logging ([c44158b](https://github.com/agnostack/next-shopify/commit/c44158be1c9afd151e7b77fbf5eee3061eac8276))
|
|
153
|
-
* add logging ([1114232](https://github.com/agnostack/next-shopify/commit/1114232b163c674c38c1ff590a06a26692579dcc))
|
|
154
|
-
* add logging ([118103c](https://github.com/agnostack/next-shopify/commit/118103c5e2925729758286b0756b81e68c23de2e))
|
|
155
|
-
* add logging ([51a1359](https://github.com/agnostack/next-shopify/commit/51a1359da93329a1eac494d928780a9d44820a05))
|
|
156
|
-
* add logging 2 ([9d5135a](https://github.com/agnostack/next-shopify/commit/9d5135a4ed8ca167c2d47f43512bc3104955c877))
|
|
157
|
-
* add logging 2 ([6a90e72](https://github.com/agnostack/next-shopify/commit/6a90e72ab4df36f1bfdd4c541ee7b17c1a2ff2d1))
|
|
158
|
-
* add logging 3 ([f226a38](https://github.com/agnostack/next-shopify/commit/f226a38fbf8a3b1203ec126e78e16d080463cb04))
|
|
159
|
-
* add logging 3 ([7985cae](https://github.com/agnostack/next-shopify/commit/7985caebed56e2d81db67240e27b4207906588c0))
|
|
160
|
-
* add logging 3 ([0f298a8](https://github.com/agnostack/next-shopify/commit/0f298a893320566b05068f03021cbea468314bf8))
|
|
161
|
-
* add logging 3 ([e837d01](https://github.com/agnostack/next-shopify/commit/e837d0187a25cacd0096d7e0df2244909567dd7f))
|
|
162
|
-
* add logging 3 ([e01329b](https://github.com/agnostack/next-shopify/commit/e01329b6377afb9878b81c1d69aea95e3dcd945c))
|
|
163
|
-
* add logging 3 ([a256e9f](https://github.com/agnostack/next-shopify/commit/a256e9f3b97c3474055344f00bb97f45a64231d2))
|
|
164
|
-
* added new query ([576a4d3](https://github.com/agnostack/next-shopify/commit/576a4d30d769902eaaa75b611e2312926f4a8858))
|
|
165
|
-
* cleanup ([383ee16](https://github.com/agnostack/next-shopify/commit/383ee1610b555c006bb99a2f5110af6b8e28cd30))
|
|
166
|
-
* linting ([8edb6f5](https://github.com/agnostack/next-shopify/commit/8edb6f56b5554b28874563c75a3f0a367acfe462))
|
|
167
|
-
* updated to add APP_ID as param ([93f355f](https://github.com/agnostack/next-shopify/commit/93f355f7190516e640a538adaaf9b76377bb9a34))
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Features
|
|
171
|
-
|
|
172
|
-
* add logging ([dcaf35a](https://github.com/agnostack/next-shopify/commit/dcaf35a49546e2d80484439a7acdaa645e911b77))
|
|
173
|
-
* add logging ([5330b23](https://github.com/agnostack/next-shopify/commit/5330b233fec7d33c2fdb8d785e910c70084a4b1b))
|
|
174
|
-
* add logs ([aa77546](https://github.com/agnostack/next-shopify/commit/aa7754605f893028efb4a94fab9fd3f9076a8dca))
|
|
175
|
-
|
|
176
|
-
# [1.6.0](https://github.com/agnostack/next-shopify/compare/v1.5.4...v1.6.0) (2023-05-19)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
## [1.5.4](https://github.com/agnostack/next-shopify/compare/v1.5.3...v1.5.4) (2022-12-13)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### Bug Fixes
|
|
183
|
-
|
|
184
|
-
* debug ([f73b563](https://github.com/agnostack/next-shopify/commit/f73b5635e44583ebb1b69871a2598e56a2923e5f))
|
|
185
|
-
* debugging ([fd0a5cf](https://github.com/agnostack/next-shopify/commit/fd0a5cf558c939140dce1c786e8691366e69c6ef))
|
|
186
|
-
* logging ([dff02c3](https://github.com/agnostack/next-shopify/commit/dff02c32477652bb541451f0a0e42638601cffdb))
|
|
187
|
-
* name update ([200862f](https://github.com/agnostack/next-shopify/commit/200862f7390bf588170a2bc16ffc49adfff69cc0))
|
|
188
|
-
* remove log ([0f4801a](https://github.com/agnostack/next-shopify/commit/0f4801a5adb87956b3ceccfdc56c6c5d2996d6da))
|
|
189
|
-
* update changelog ([2cbd35a](https://github.com/agnostack/next-shopify/commit/2cbd35ab87aebaa8b57e8260e37b22f29e219d8f))
|
|
190
|
-
* updated logs ([9abfe32](https://github.com/agnostack/next-shopify/commit/9abfe326ed7e0e16690064040498421a855c8e76))
|
|
191
|
-
* updates ([a1040ca](https://github.com/agnostack/next-shopify/commit/a1040cafa68088dc80710abd1a09b3daab6e9626))
|
|
192
|
-
|
|
193
|
-
## [1.5.4-alpha.4](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.3...v1.5.4-alpha.4) (2022-12-13)
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### Bug Fixes
|
|
197
|
-
|
|
198
|
-
* name update ([200862f](https://github.com/agnostack/next-shopify/commit/200862f7390bf588170a2bc16ffc49adfff69cc0))
|
|
199
|
-
|
|
200
|
-
## [1.5.4-alpha.3](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.2...v1.5.4-alpha.3) (2022-12-13)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Bug Fixes
|
|
204
|
-
|
|
205
|
-
* updates ([a1040ca](https://github.com/agnostack/next-shopify/commit/a1040cafa68088dc80710abd1a09b3daab6e9626))
|
|
206
|
-
|
|
207
|
-
## [1.5.4-alpha.2](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.1...v1.5.4-alpha.2) (2022-12-13)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### Bug Fixes
|
|
211
|
-
|
|
212
|
-
* logging ([dff02c3](https://github.com/agnostack/next-shopify/commit/dff02c32477652bb541451f0a0e42638601cffdb))
|
|
213
|
-
|
|
214
|
-
## [1.5.4-alpha.1](https://github.com/agnostack/next-shopify/compare/v1.5.3...v1.5.4-alpha.1) (2022-12-13)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Bug Fixes
|
|
218
|
-
|
|
219
|
-
* debug ([f73b563](https://github.com/agnostack/next-shopify/commit/f73b5635e44583ebb1b69871a2598e56a2923e5f))
|
|
220
|
-
* debugging ([fd0a5cf](https://github.com/agnostack/next-shopify/commit/fd0a5cf558c939140dce1c786e8691366e69c6ef))
|
|
221
|
-
* update changelog ([2cbd35a](https://github.com/agnostack/next-shopify/commit/2cbd35ab87aebaa8b57e8260e37b22f29e219d8f))
|
|
222
|
-
* updated logs ([9abfe32](https://github.com/agnostack/next-shopify/commit/9abfe326ed7e0e16690064040498421a855c8e76))
|
|
223
|
-
|
|
224
|
-
## [1.5.3](https://github.com/agnostack/next-shopify/compare/v1.5.2...v1.5.3) (2022-11-30)
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
### Bug Fixes
|
|
228
|
-
|
|
229
|
-
* removed logs ([7475924](https://github.com/agnostack/next-shopify/commit/7475924baa1c24337dc7d620d64c3354ab98f9bb))
|
|
230
|
-
|
|
231
|
-
## [1.5.2](https://github.com/agnostack/next-shopify/compare/v1.5.1...v1.5.2) (2022-11-30)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### Bug Fixes
|
|
235
|
-
|
|
236
|
-
* updated logs ([aa95cd9](https://github.com/agnostack/next-shopify/commit/aa95cd96ae04dd9a2ea3c92a9eb2625eb20b4395))
|
|
237
|
-
* updated logs ([f13d27d](https://github.com/agnostack/next-shopify/commit/f13d27df15fefd3a7e64bc43262446cfc78dffc3))
|
|
238
|
-
|
|
239
|
-
## [1.5.1](https://github.com/agnostack/next-shopify/compare/v1.5.0...v1.5.1) (2022-11-30)
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
### Bug Fixes
|
|
243
|
-
|
|
244
|
-
* updated to add logs ([3e5c200](https://github.com/agnostack/next-shopify/commit/3e5c200311e4dc2dcbeebd8f89fca8f6e5ea9331))
|
|
245
|
-
* updated to add logs ([210ca86](https://github.com/agnostack/next-shopify/commit/210ca8616b151fd0dd573a0951ad8819cc0c2f59))
|
|
246
|
-
|
|
247
|
-
# [1.5.0](https://github.com/agnostack/next-shopify/compare/v1.4.10...v1.5.0) (2022-11-29)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
### Features
|
|
251
|
-
|
|
252
|
-
* fixed graphHelper ([5f92f13](https://github.com/agnostack/next-shopify/commit/5f92f13ca5ef7325a233f1570831d430002d02bf))
|
|
253
|
-
|
|
254
|
-
## [1.4.10](https://github.com/agnostack/next-shopify/compare/v1.4.9...v1.4.10) (2022-11-29)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
### Bug Fixes
|
|
258
|
-
|
|
259
|
-
* updated JSON parse ([4ac5608](https://github.com/agnostack/next-shopify/commit/4ac560800c5cd12ac324917456abf5f32977dbcd))
|
|
260
|
-
|
|
261
|
-
## [1.4.9](https://github.com/agnostack/next-shopify/compare/v1.4.8...v1.4.9) (2022-11-29)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Bug Fixes
|
|
265
|
-
|
|
266
|
-
* added ERROR_CODES constants ([842495e](https://github.com/agnostack/next-shopify/commit/842495e6b8763b06ba65230c66640b60d24073af))
|
|
267
|
-
|
|
268
|
-
## [1.4.8](https://github.com/agnostack/next-shopify/compare/v1.4.7...v1.4.8) (2022-11-28)
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
### Bug Fixes
|
|
272
|
-
|
|
273
|
-
* testing session fallback ([4dbaf67](https://github.com/agnostack/next-shopify/commit/4dbaf67e5adc1b9bbcaefd04c588b34cab6ab1d6))
|
|
274
|
-
|
|
275
|
-
## [1.4.7](https://github.com/agnostack/next-shopify/compare/v1.4.6...v1.4.7) (2022-11-28)
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
### Bug Fixes
|
|
279
|
-
|
|
280
|
-
* testing session fallback ([1f569dd](https://github.com/agnostack/next-shopify/commit/1f569dd8bb71bb128aa42b723ae771387d7b2397))
|
|
281
|
-
|
|
282
|
-
## [1.4.6](https://github.com/agnostack/next-shopify/compare/v1.4.5...v1.4.6) (2022-11-23)
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
### Bug Fixes
|
|
286
|
-
|
|
287
|
-
* moved to stringEmpty ([b8aebb5](https://github.com/agnostack/next-shopify/commit/b8aebb574ae951a16fb80df8c2d756a50674f9c3))
|
|
288
|
-
* updated to remove logs ([b29755f](https://github.com/agnostack/next-shopify/commit/b29755f4c459e7c85ea0cf1c502fc096d33d3617))
|
|
289
|
-
|
|
290
|
-
## [1.4.5](https://github.com/agnostack/next-shopify/compare/v1.4.4...v1.4.5) (2022-11-23)
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
### Bug Fixes
|
|
294
|
-
|
|
295
|
-
* wip testing ([3bda4b6](https://github.com/agnostack/next-shopify/commit/3bda4b6eab70f335a472bd126ad7c02d86e8df0e))
|
|
296
|
-
|
|
297
|
-
## [1.4.4](https://github.com/agnostack/next-shopify/compare/v1.4.3...v1.4.4) (2022-11-23)
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
### Bug Fixes
|
|
301
|
-
|
|
302
|
-
* updated query handling ([72367bc](https://github.com/agnostack/next-shopify/commit/72367bc21e9036b4e2643f172f93a8133b7bdff4))
|
|
303
|
-
|
|
304
|
-
## [1.4.3](https://github.com/agnostack/next-shopify/compare/v1.4.2...v1.4.3) (2022-11-23)
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
### Bug Fixes
|
|
308
|
-
|
|
309
|
-
* updates ([5638c05](https://github.com/agnostack/next-shopify/commit/5638c056d920251b82c1dc3461be334c3e458bf4))
|
|
310
|
-
* wip, testing ([6e0b21c](https://github.com/agnostack/next-shopify/commit/6e0b21c1dab0210c1a92646de21f864c05f6626b))
|
|
311
|
-
|
|
312
|
-
## [1.4.2](https://github.com/agnostack/next-shopify/compare/v1.4.1...v1.4.2) (2022-11-22)
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
### Bug Fixes
|
|
316
|
-
|
|
317
|
-
* updated getAuthErrorResponse ([8f3e9b1](https://github.com/agnostack/next-shopify/commit/8f3e9b19bcdeb7f3d2d760a0255faaf259fa27d8))
|
|
318
|
-
* updated responses as JSON ([4088961](https://github.com/agnostack/next-shopify/commit/408896129437cb3d1e4d587f80fef3d1ec6c4be8))
|
|
319
|
-
|
|
320
|
-
## [1.4.1](https://github.com/agnostack/next-shopify/compare/v1.4.0...v1.4.1) (2022-11-22)
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
### Bug Fixes
|
|
324
|
-
|
|
325
|
-
* updated default value ([501fc61](https://github.com/agnostack/next-shopify/commit/501fc61d2ec13b6e1a65f2d1acbae2d7d3c620f6))
|
|
326
|
-
|
|
327
|
-
# [1.4.0](https://github.com/agnostack/next-shopify/compare/v1.3.1...v1.4.0) (2022-11-21)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
### Bug Fixes
|
|
331
|
-
|
|
332
|
-
* add ensureSecurityHeader ([667abc1](https://github.com/agnostack/next-shopify/commit/667abc1bef3c39583c57ff41b13c5b86ba7bd722))
|
|
333
|
-
* add setData to FBSessionHandler ([36695b3](https://github.com/agnostack/next-shopify/commit/36695b3eda89126748cf5dd27604a8fe6817b4c4))
|
|
334
|
-
* add uninstall ([bb6837d](https://github.com/agnostack/next-shopify/commit/bb6837d139ae28d93ebcceceb55fccc072acf442))
|
|
335
|
-
* change cookie sameSite to none ([f20a167](https://github.com/agnostack/next-shopify/commit/f20a16709f25775d0fb79a2a551998466b806c28))
|
|
336
|
-
* cleanup ([b9719c0](https://github.com/agnostack/next-shopify/commit/b9719c07f6aed42cfd0204fb4d66558fd2081796))
|
|
337
|
-
* debug ([0e5f0e2](https://github.com/agnostack/next-shopify/commit/0e5f0e2a0ca251844dce10ca152b0efad918a243))
|
|
338
|
-
* debug ([f3724d8](https://github.com/agnostack/next-shopify/commit/f3724d864e173d1b31d3822004fd75ac28d47a0e))
|
|
339
|
-
* debug ([69170ff](https://github.com/agnostack/next-shopify/commit/69170fffdcfe84044df6ce3f575dbfbaabe4f60a))
|
|
340
|
-
* debug ([4a886a4](https://github.com/agnostack/next-shopify/commit/4a886a4bb88c675a52e40aee121d4424666ab524))
|
|
341
|
-
* debug ([069c0dd](https://github.com/agnostack/next-shopify/commit/069c0dd9526b801267ac0998e557240ddd423612))
|
|
342
|
-
* debug ([61a69ba](https://github.com/agnostack/next-shopify/commit/61a69ba063f5bfe8673c9b4fbc29bdca4647ea09))
|
|
343
|
-
* debug ([d4767a7](https://github.com/agnostack/next-shopify/commit/d4767a7e8757a8f755b41aadb525fa14423f9f02))
|
|
344
|
-
* debug ([ae1bbf6](https://github.com/agnostack/next-shopify/commit/ae1bbf68b809e5574328e6e315d49d1033d8f15f))
|
|
345
|
-
* debug ([cd9b4e6](https://github.com/agnostack/next-shopify/commit/cd9b4e6985a1fc86ab953b2441e19ba4ac4b6c99))
|
|
346
|
-
* debug ([34899ff](https://github.com/agnostack/next-shopify/commit/34899ff59cc2d9826de31508051cfe9c9a6269f5))
|
|
347
|
-
* debug ([f8e415f](https://github.com/agnostack/next-shopify/commit/f8e415f1cd34743b5e26603065addb87d1a3fa54))
|
|
348
|
-
* debug routes ([987e28c](https://github.com/agnostack/next-shopify/commit/987e28c4989f004364b182cd7065be48e53e81b4))
|
|
349
|
-
* debug routes ([cefaf73](https://github.com/agnostack/next-shopify/commit/cefaf731a34f758545574339509a8196e84a87bf))
|
|
350
|
-
* debugging ([1f6b379](https://github.com/agnostack/next-shopify/commit/1f6b379204bda2616b32d08efedb1a87f2855c75))
|
|
351
|
-
* file cleanup ([4d7d26a](https://github.com/agnostack/next-shopify/commit/4d7d26a65d5c9d92a89a0f26c13c99af9462bdf3))
|
|
352
|
-
* file cleanup ([dfe8efb](https://github.com/agnostack/next-shopify/commit/dfe8efb34ef8a6ef37ccd38aa6d69c258c14282e))
|
|
353
|
-
* fix import path ([05317aa](https://github.com/agnostack/next-shopify/commit/05317aab6868a6428d5d141d0f69cd22b1667a11))
|
|
354
|
-
* headers ([d039f3c](https://github.com/agnostack/next-shopify/commit/d039f3caf53d884bc7104427084d5ee536c43523))
|
|
355
|
-
* make it stop ([394182e](https://github.com/agnostack/next-shopify/commit/394182e9f9ebbd4826ac7a173b3fff0b18046cba))
|
|
356
|
-
* modfy wrapRoute ([3ae2f72](https://github.com/agnostack/next-shopify/commit/3ae2f72db314d0b6b37af2fbd91916fa1e0a83aa))
|
|
357
|
-
* modify clear cookie approach ([c0a0dc5](https://github.com/agnostack/next-shopify/commit/c0a0dc5ef3e5c08bc8a663f937c232825ee8df0f))
|
|
358
|
-
* modify header rules ([fc0b4a3](https://github.com/agnostack/next-shopify/commit/fc0b4a3900a8b2556fbcf68fabd874f4df21c00f))
|
|
359
|
-
* modify header rules ([53983bb](https://github.com/agnostack/next-shopify/commit/53983bb7b888a55c96de6e0c3f6f9dd6930be98c))
|
|
360
|
-
* modify headers ([4848edf](https://github.com/agnostack/next-shopify/commit/4848edf4b275f1ab08aaec54f4a792d4c53d6e15))
|
|
361
|
-
* query ([b7795ce](https://github.com/agnostack/next-shopify/commit/b7795ce72f54cd7ba608d852bb236f0e2aeffbb1))
|
|
362
|
-
* refactor hasActivePayment ([7bb350e](https://github.com/agnostack/next-shopify/commit/7bb350e50a9f84aa84907c4fa8c6cba1e8dd2544))
|
|
363
|
-
* refactor hasActivePayment ([aa303c9](https://github.com/agnostack/next-shopify/commit/aa303c9a28e24e2939acf1378b8e324d22720669))
|
|
364
|
-
* rename ([f99a48f](https://github.com/agnostack/next-shopify/commit/f99a48f5a064cc5fe12e3492c99dcb18fa62b6c0))
|
|
365
|
-
* rename ([992f2dd](https://github.com/agnostack/next-shopify/commit/992f2dde10bf92f8e8eec2c337f15ccf7f52e93e))
|
|
366
|
-
* return from wrapRoute ([d3a4b28](https://github.com/agnostack/next-shopify/commit/d3a4b28ea1e0002321cd5bdd6756bc67dd25a7a9))
|
|
367
|
-
* return from wrapRoute ([0423342](https://github.com/agnostack/next-shopify/commit/0423342eee38103af98c4fb9ca317aaf865ec288))
|
|
368
|
-
* revert ([182fef5](https://github.com/agnostack/next-shopify/commit/182fef5a837219e0a6b8babff9b4ac2e309020df))
|
|
369
|
-
* revert sameSite lax ([ca1b6dd](https://github.com/agnostack/next-shopify/commit/ca1b6ddc895b812768090074a39b39f6848b4b7e))
|
|
370
|
-
* the never ending debugging process ([09eb418](https://github.com/agnostack/next-shopify/commit/09eb418be5c10f644eb2c485aa6339e1c8c687a3))
|
|
371
|
-
* update shopify version ([c5fece0](https://github.com/agnostack/next-shopify/commit/c5fece029cd870ce1a502343a707c6c42b7051c4))
|
|
372
|
-
* updated to add logs ([6500277](https://github.com/agnostack/next-shopify/commit/65002779ac3870791a0ec230d11a770b8fd0f0e3))
|
|
373
|
-
* use rest with version ([b2f6320](https://github.com/agnostack/next-shopify/commit/b2f6320ef51d69554d5ae6193b878d656528da0d))
|
|
374
|
-
* use sameSite lax ([28a5fed](https://github.com/agnostack/next-shopify/commit/28a5fed2e512049c66ede168911c089d0e092bb8))
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
### Features
|
|
378
|
-
|
|
379
|
-
* revamped Firebase calls ([33a56c1](https://github.com/agnostack/next-shopify/commit/33a56c1a0a6b972b5523d3cbe911e14c3df415d2))
|
|
380
|
-
|
|
381
|
-
## [1.3.1](https://github.com/agnostack/next-shopify/compare/v1.3.0...v1.3.1) (2022-11-15)
|
|
382
|
-
|
|
383
|
-
### Bug Fixes
|
|
384
|
-
|
|
385
|
-
* add appId ([27d4517](https://github.com/agnostack/next-shopify/commit/27d4517b64873e8e475448e91d8eeff1ca5e23a3))
|
|
386
|
-
* add BillingError check to callbackHandler ([979a07b](https://github.com/agnostack/next-shopify/commit/979a07b5571cb31c7763b4feef41f12c0d487a0a))
|
|
387
|
-
* add callback redirects ([ab4d7e1](https://github.com/agnostack/next-shopify/commit/ab4d7e146c76d0233fdcb957939a664ece1049c5))
|
|
388
|
-
* add security headers ([70b1c88](https://github.com/agnostack/next-shopify/commit/70b1c88aec65be6cbb0699a8f03134af6487d690))
|
|
389
|
-
* cleaned up changelog ([7f5c6a4](https://github.com/agnostack/next-shopify/commit/7f5c6a46e52cb7d52ba618fbc15e66b1be435c10))
|
|
390
|
-
* cleanup ([07459b4](https://github.com/agnostack/next-shopify/commit/07459b42d11f9a21fc3092b988fe22ef3b469a12))
|
|
391
|
-
* cleanup ([2b13ff2](https://github.com/agnostack/next-shopify/commit/2b13ff2c4d3c6d5f51e96c39b36b0b7b4a0a9e8a))
|
|
392
|
-
* cleanup ([55ef76b](https://github.com/agnostack/next-shopify/commit/55ef76b46541079df857b3352eb7bb28ce79ce6c))
|
|
393
|
-
* cleanup ([e826ebc](https://github.com/agnostack/next-shopify/commit/e826ebc9869c8e550dcb6c47e6ec03691020833b))
|
|
394
|
-
* debugging ([0478539](https://github.com/agnostack/next-shopify/commit/047853922ca9a3ab0b4c52f893b5e0e7020ba634))
|
|
395
|
-
* debugging ([74d3272](https://github.com/agnostack/next-shopify/commit/74d3272e4ce27197ffabd476d96d7d8eb664cb03))
|
|
396
|
-
* debugging ([96256bb](https://github.com/agnostack/next-shopify/commit/96256bb9cab6fc8754a2253e06ffedd2e44fe9f3))
|
|
397
|
-
* debugging ([0ff555f](https://github.com/agnostack/next-shopify/commit/0ff555fbfdac1264167f0974e84248d9bb52150b))
|
|
398
|
-
* debugging ([d561951](https://github.com/agnostack/next-shopify/commit/d5619517bed5283a17fc6dad12e83172969a0c69))
|
|
399
|
-
* debugging ([9f8c616](https://github.com/agnostack/next-shopify/commit/9f8c616ee5f39753c48df3b6161ffbd92dcf0f38))
|
|
400
|
-
* debugging ([07cda43](https://github.com/agnostack/next-shopify/commit/07cda432e2c9048be634449277c61d805dcdd67b))
|
|
401
|
-
* debugging ([cb24738](https://github.com/agnostack/next-shopify/commit/cb24738e3b18cbc109410dc6a1e44d27835c9ad6))
|
|
402
|
-
* error handling ([448eb17](https://github.com/agnostack/next-shopify/commit/448eb17c6ea736b0fc8e2be133077a3de42d9260))
|
|
403
|
-
* existingCharge syntax ([e6fc173](https://github.com/agnostack/next-shopify/commit/e6fc1732dff0203674c2234f5da41d3c58cacd8e))
|
|
404
|
-
* modify headers ([a34d5e8](https://github.com/agnostack/next-shopify/commit/a34d5e8a657ff19a18dac7a61a2801ee33730ed8))
|
|
405
|
-
* modify headers ([1b4525c](https://github.com/agnostack/next-shopify/commit/1b4525c6a48e2726a96af719fdb21a2014f74c8a))
|
|
406
|
-
* modify headers ([bda72b9](https://github.com/agnostack/next-shopify/commit/bda72b98e653dd07a48d73eca2696e24aee35a39))
|
|
407
|
-
* modify headers ([3a28664](https://github.com/agnostack/next-shopify/commit/3a28664d64464ac46ae2234eb73120995c87b735))
|
|
408
|
-
* modify headers ([6a849f6](https://github.com/agnostack/next-shopify/commit/6a849f645ebe939d543b95cb11747b98e7cf4bba))
|
|
409
|
-
* modify headers ([871ceef](https://github.com/agnostack/next-shopify/commit/871ceefddbec30ea081874ca9d51b41cec8ecbea))
|
|
410
|
-
* modify headers ([fb206c7](https://github.com/agnostack/next-shopify/commit/fb206c7329f915a9eea939ede9d6d53648d2f332))
|
|
411
|
-
* modify headers ([9c91680](https://github.com/agnostack/next-shopify/commit/9c9168052c12fd321640c8803bed70490fcb73ab))
|
|
412
|
-
* modify headers ([0b8a429](https://github.com/agnostack/next-shopify/commit/0b8a42977155cca02861fa89d986bc7710690d1f))
|
|
413
|
-
* modify headers ([c9e083c](https://github.com/agnostack/next-shopify/commit/c9e083cf0688e8b61baaa28a7500ff6eb099ce9b))
|
|
414
|
-
* modify headers ([b685777](https://github.com/agnostack/next-shopify/commit/b68577720a619888cfbc8ead17d39d39f8d780a2))
|
|
415
|
-
* modify headers ([0f7f42c](https://github.com/agnostack/next-shopify/commit/0f7f42c612efc1f432c45f0773b089a3a77ef818))
|
|
416
|
-
* modify headers ([8ca49b9](https://github.com/agnostack/next-shopify/commit/8ca49b95a3334be2198687c022971fcf9e7fce5c))
|
|
417
|
-
* modify headers ([d6ec5b4](https://github.com/agnostack/next-shopify/commit/d6ec5b45b0120741173650033a600c6d96522b09))
|
|
418
|
-
* modify headers ([dbf1ef6](https://github.com/agnostack/next-shopify/commit/dbf1ef639de33e54ded2c2569faf0fccdb85203e))
|
|
419
|
-
* modify headers ([32f8797](https://github.com/agnostack/next-shopify/commit/32f87973cf6046575b314a4a3eca84befb4dfdf6))
|
|
420
|
-
* modify headers ([7838ed3](https://github.com/agnostack/next-shopify/commit/7838ed3cf6067818718306561e3d6206ce049f80))
|
|
421
|
-
* modify headers ([eefd83b](https://github.com/agnostack/next-shopify/commit/eefd83bed1815ff57479a2cf88398d8a09037743))
|
|
422
|
-
* move await ([2cc94c3](https://github.com/agnostack/next-shopify/commit/2cc94c3204296652a83ae01a740939f934d5fd77))
|
|
423
|
-
* rest desctructure ([18b6d24](https://github.com/agnostack/next-shopify/commit/18b6d246c1fe02544ffdf7357c855ee8549c65d6))
|
|
424
|
-
* singlePayment ([373c200](https://github.com/agnostack/next-shopify/commit/373c200a9301499a93979b372e6e35bcfd4079a9))
|
|
425
|
-
* syntax error ([69f4e62](https://github.com/agnostack/next-shopify/commit/69f4e628290c2c9e2d7d4a75e4a2bca15ca55d4b))
|
|
426
|
-
|
|
427
|
-
# [1.3.0](https://github.com/agnostack/next-shopify/compare/v1.2.0...v1.3.0) (2022-11-14)
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
### Bug Fixes
|
|
431
|
-
|
|
432
|
-
* add headers to response ([ab79594](https://github.com/agnostack/next-shopify/commit/ab795947e7db5e2da00a9cb47762b0280fbf7cb3))
|
|
433
|
-
* add headers to response ([43f8911](https://github.com/agnostack/next-shopify/commit/43f8911511fc2aaeed40526f1ec6b8177beb7c99))
|
|
434
|
-
* add verification error handling ([f995b88](https://github.com/agnostack/next-shopify/commit/f995b88ec113a22c142fc0d36815cb690ae000fe))
|
|
435
|
-
* cleanup ([de15385](https://github.com/agnostack/next-shopify/commit/de153858ae2765a3371bf3c8a5f224dc6c842de8))
|
|
436
|
-
* debugging ([cd5b3f9](https://github.com/agnostack/next-shopify/commit/cd5b3f935495db221fec60802796104fc559910a))
|
|
437
|
-
* debugging ([db47f73](https://github.com/agnostack/next-shopify/commit/db47f73284b721188cfdae67fad1c0d0615fd4c5))
|
|
438
|
-
* debugging ([1df68ed](https://github.com/agnostack/next-shopify/commit/1df68ed4f0eb3e893cf910df95fabff6ccc4d42c))
|
|
439
|
-
* leverage mutated object ([5c3701c](https://github.com/agnostack/next-shopify/commit/5c3701c4d0f2c0d4ea894e55402968d5f450ea82))
|
|
440
|
-
* modify ensureBilling ([4acb0f6](https://github.com/agnostack/next-shopify/commit/4acb0f6e9c4b0b0547161d325fbda84c8d869ec8))
|
|
441
|
-
* modify session logic ([f846992](https://github.com/agnostack/next-shopify/commit/f846992f7e886bfa35c34a1d96e2cf97b5a369ee))
|
|
442
|
-
* move to appBaseUrl ([bf6ce79](https://github.com/agnostack/next-shopify/commit/bf6ce791254502f27b2158c12a7837ea6c14bd82))
|
|
443
|
-
* testing logs ([49e9467](https://github.com/agnostack/next-shopify/commit/49e9467397f403726d0b98d18630b2ac1e7bb47c))
|
|
444
|
-
* testing logs ([7555045](https://github.com/agnostack/next-shopify/commit/7555045e0d0524ba448108202aa8510b14ae0e8c))
|
|
445
|
-
* testing logs ([5891b10](https://github.com/agnostack/next-shopify/commit/5891b105ffa8150fdab39bd5ed3be5520509f885))
|
|
446
|
-
* updated auth helper ([8b3af3e](https://github.com/agnostack/next-shopify/commit/8b3af3e38cad63596ee0d5ca19b622899d1695ad))
|
|
447
|
-
* updated to add publicruntimeconf ([593e444](https://github.com/agnostack/next-shopify/commit/593e44406b8e39ab39ac51c44e8f4f568fd138a1))
|
|
448
|
-
* updated to use API_URLS ([ccba350](https://github.com/agnostack/next-shopify/commit/ccba350a8637d664ebd75e18125ec5a434aa7a97))
|
|
449
|
-
* work in progress ([5472aa1](https://github.com/agnostack/next-shopify/commit/5472aa1e8eeddf6febbe7cca988bdc0303251147))
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
### Features
|
|
453
|
-
|
|
454
|
-
* added API_URLS ([60a153b](https://github.com/agnostack/next-shopify/commit/60a153bc3fbd7b82847bed2cd6a0c7da7902f4d9))
|
|
455
|
-
|
|
456
|
-
# [1.2.0](https://github.com/agnostack/next-shopify/compare/v1.1.1...v1.2.0) (2022-11-13)
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
### Bug Fixes
|
|
460
|
-
|
|
461
|
-
* added debugMode check for paymentConfig ([4dd9ef7](https://github.com/agnostack/next-shopify/commit/4dd9ef7c58169127f68b53f329a934b864267e86))
|
|
462
|
-
* added logs ([7899327](https://github.com/agnostack/next-shopify/commit/7899327f178ae6d376aa0ee2a5ca933fa0401a0b))
|
|
463
|
-
* added logs and hmac check ([8249098](https://github.com/agnostack/next-shopify/commit/8249098079e8e79aff0455cf9ce254211b0e63eb))
|
|
464
|
-
* additional logging ([fdaebef](https://github.com/agnostack/next-shopify/commit/fdaebef5eb4eeab4f977c2bcb3364592eca90d4a))
|
|
465
|
-
* logging to ensure cookie working ([eefa459](https://github.com/agnostack/next-shopify/commit/eefa459f4f2e37237bb801897ed892d922a6fc1a))
|
|
466
|
-
* more logs (and fixed paymentConfig name ([d3c7fc3](https://github.com/agnostack/next-shopify/commit/d3c7fc32d56aeb9099a6fc1c38d855d08992f029))
|
|
467
|
-
* reduced required version ([bf96eae](https://github.com/agnostack/next-shopify/commit/bf96eaeea9766519cb17f8e1db78bb8d0c45c3b6))
|
|
468
|
-
* reverted to singleton ([b25954f](https://github.com/agnostack/next-shopify/commit/b25954f0cd03d6f01ab2ccefc772ecdc64e996df))
|
|
469
|
-
* testing logs ([b6b6b0e](https://github.com/agnostack/next-shopify/commit/b6b6b0ea98d0e548c07835b28de3e94ed74f58a5))
|
|
470
|
-
* updated beginAuth ([a43b7db](https://github.com/agnostack/next-shopify/commit/a43b7dbfd60d3b307c5eb07511a796e3bc0855db))
|
|
471
|
-
* updated FirebaseSessionHandler ([d62160c](https://github.com/agnostack/next-shopify/commit/d62160c4ffd6d45dc80527c23226752cadf68c8f))
|
|
472
|
-
* updated getRedirectUrl ([b4755b9](https://github.com/agnostack/next-shopify/commit/b4755b90aad5e6fc8a3c140cbd73907f80243560))
|
|
473
|
-
* updated initializeFireStore and getInitializedShopify to no longer be async ([4684e2c](https://github.com/agnostack/next-shopify/commit/4684e2c171ada39a79e60cdd07bb73c32da88268))
|
|
474
|
-
* updated to add logs ([d688695](https://github.com/agnostack/next-shopify/commit/d688695052ee0b71721198fbe6231146fb76f70a))
|
|
475
|
-
* updated to remove singleton ([21367d5](https://github.com/agnostack/next-shopify/commit/21367d5ab55de9da29e43eab64fe69c7889e77f0))
|
|
476
|
-
* updated to simplify params ([e84b58b](https://github.com/agnostack/next-shopify/commit/e84b58b244f9969672d62ac424f1026d11b398bf))
|
|
477
|
-
* updates/clean up ([acec04f](https://github.com/agnostack/next-shopify/commit/acec04fe306bb4d54fbeffcc5051459c734e1bb5))
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
### Features
|
|
481
|
-
|
|
482
|
-
* added fb-admin ([63aab0d](https://github.com/agnostack/next-shopify/commit/63aab0d3bc1b6b1e36ab74447dc1eecf580df22c))
|
|
483
|
-
* added support for netlifyUrl ([aef5844](https://github.com/agnostack/next-shopify/commit/aef58445ff53ed25352a8cc342287b5b8ffef2d4))
|
|
484
|
-
* moved to fb-admin ([a097358](https://github.com/agnostack/next-shopify/commit/a0973583af6c93d9230843670808621e2094570a))
|
|
485
|
-
|
|
486
|
-
## [1.1.1](https://github.com/agnostack/next-shopify/compare/v1.1.0...v1.1.1) (2022-11-11)
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
### Bug Fixes
|
|
490
|
-
|
|
491
|
-
* add billing manager ([65bbfc7](https://github.com/agnostack/next-shopify/commit/65bbfc75fc1ca1814640da0e9fe28f57bb9cdf4c))
|
|
492
|
-
* add initial handleQuery ([ae74450](https://github.com/agnostack/next-shopify/commit/ae74450e632573ccebb4b48bb958a363e83d8024))
|
|
493
|
-
* add initial handleQuery ([45b2e11](https://github.com/agnostack/next-shopify/commit/45b2e1153a7c0d2a45d8ccad9a10e94208564e98))
|
|
494
|
-
* add payment config method ([8fda8c2](https://github.com/agnostack/next-shopify/commit/8fda8c2c569d780336cd487d02a3e6cc5bd73784))
|
|
495
|
-
* added debug logs ([934b436](https://github.com/agnostack/next-shopify/commit/934b43655b6c78b1d1c2aef83bfe2443f5cb6534))
|
|
496
|
-
* added handleRest, updated handleQuery ([3228ce8](https://github.com/agnostack/next-shopify/commit/3228ce8bb41854aef44ecc3fb78a971401461ea8))
|
|
497
|
-
* added logs and JSON.parse ([eb1e59e](https://github.com/agnostack/next-shopify/commit/eb1e59ee465b972db51fdde097d84ebee3c339bc))
|
|
498
|
-
* added logs, change to use body direct ([67c7d5d](https://github.com/agnostack/next-shopify/commit/67c7d5d7261a623c693ee1f4846f6395f492346e))
|
|
499
|
-
* added message in response (and debug logs) ([d713bb5](https://github.com/agnostack/next-shopify/commit/d713bb597780efa96c7781763bd4f57bd14ea61c))
|
|
500
|
-
* added querystringToObject ([2e5e9dc](https://github.com/agnostack/next-shopify/commit/2e5e9dc219de4bf61514a55909b36368b340c47d))
|
|
501
|
-
* cleanup ([0fdc2dc](https://github.com/agnostack/next-shopify/commit/0fdc2dc3f9996aaab792edc338c2b9af6fbe37e7))
|
|
502
|
-
* cleanup linting ([341f87b](https://github.com/agnostack/next-shopify/commit/341f87b65b42c93303f40c2c49117bd5ada99602))
|
|
503
|
-
* fix destructure ([37b9d7c](https://github.com/agnostack/next-shopify/commit/37b9d7cd12d8b9b266206a7a5dcc223120075c21))
|
|
504
|
-
* modify conditional check ([efccb36](https://github.com/agnostack/next-shopify/commit/efccb362722a71d84fe0ae79d894d4952f57a2fb))
|
|
505
|
-
* modify rest payload ([8ce8810](https://github.com/agnostack/next-shopify/commit/8ce8810fc2f04834237cc874ad92c9fecbf13e93))
|
|
506
|
-
* modify rest payload ([eabae19](https://github.com/agnostack/next-shopify/commit/eabae194ad5f9864b84872ee65f0213134123d87))
|
|
507
|
-
* optimization ([12636d0](https://github.com/agnostack/next-shopify/commit/12636d0e3e007c80ec2e6c10ebcf368ea7fd408f))
|
|
508
|
-
* payment config ([b69394e](https://github.com/agnostack/next-shopify/commit/b69394e9abc53a3a0f6c8be1f350f393274b4de6))
|
|
509
|
-
* refactored to export helpers ([35eafde](https://github.com/agnostack/next-shopify/commit/35eafdef0acdcc2f882729088918a40dc47607c3))
|
|
510
|
-
* remove logs ([9095a54](https://github.com/agnostack/next-shopify/commit/9095a54a3be188e4e2254faf88a1ddadc5a4e503))
|
|
511
|
-
* removed logs, destructured data ([ac84948](https://github.com/agnostack/next-shopify/commit/ac84948abb894629647a9671d21ce94cb71af42a))
|
|
512
|
-
* removed logs, return only body ([2f706c9](https://github.com/agnostack/next-shopify/commit/2f706c911e23e23555bf67ecc6c5f5bc37b26d02))
|
|
513
|
-
* removed old export ([4cc445d](https://github.com/agnostack/next-shopify/commit/4cc445dbffcc25c3ab77bf04091ba3db3676a0b9))
|
|
514
|
-
* renamed query to graph ([af40892](https://github.com/agnostack/next-shopify/commit/af40892835e72c1c39e0f4983e0758a12ada4245))
|
|
515
|
-
* updated invalid import ([2cdbf41](https://github.com/agnostack/next-shopify/commit/2cdbf41a7b17c447587f876231830c707e9ebc90))
|
|
516
|
-
* updated method signatures ([26316c8](https://github.com/agnostack/next-shopify/commit/26316c80d1a9a9b8663dd864a2270b2617c0492b))
|
|
517
|
-
* var names ([e322bff](https://github.com/agnostack/next-shopify/commit/e322bffaa56439d8c694061fa8990f7c64def0a9))
|
|
518
|
-
|
|
519
|
-
# [1.1.0](https://github.com/agnostack/next-shopify/compare/v1.0.0...v1.1.0) (2022-11-08)
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
### Bug Fixes
|
|
523
|
-
|
|
524
|
-
* added debug logs ([e6b9703](https://github.com/agnostack/next-shopify/commit/e6b97038580e5802319eb93fd272eb0c27ec4ad3))
|
|
525
|
-
* added default destructure ([2f14c5c](https://github.com/agnostack/next-shopify/commit/2f14c5c972463df7130387e64b420bf4a56b45fa))
|
|
526
|
-
* reverted interactive prompt ([ab2a841](https://github.com/agnostack/next-shopify/commit/ab2a841ccd3bdb9cf659b2be02aa8ebadee627cd))
|
|
527
|
-
* small refactor on apiHandlers ([fc9315d](https://github.com/agnostack/next-shopify/commit/fc9315d4de6c69096399ae1573f8bc2d4982dffe))
|
|
528
|
-
* split out helper methods ([8148682](https://github.com/agnostack/next-shopify/commit/8148682f3ee940948cf01521b1428a994880c515))
|
|
529
|
-
* temp set to test prompts ([0a97fd2](https://github.com/agnostack/next-shopify/commit/0a97fd2186b46b6362fd54c1dfdb7810211aee10))
|
|
530
|
-
* updated broken lock file ([3515c81](https://github.com/agnostack/next-shopify/commit/3515c812f531bcd2f8eca264432346ef748afb0c))
|
|
531
|
-
* updated console logs ([e3450f2](https://github.com/agnostack/next-shopify/commit/e3450f28ccd29d7de3d78d1cb1857ff9e892ccf4))
|
|
532
|
-
* updated status and send handlers ([874f9d6](https://github.com/agnostack/next-shopify/commit/874f9d6bd99ac7293a9782493bb7e10593367609))
|
|
533
|
-
* updated to grab from APP_CONFIG ([e5f4c13](https://github.com/agnostack/next-shopify/commit/e5f4c13d5592000ffbf9791fba12b3c236178997))
|
|
534
|
-
* updated to remove debug logs ([58bcdaf](https://github.com/agnostack/next-shopify/commit/58bcdafa6f64fe64ff9b25efac492f599034030e))
|
|
535
|
-
* updated uninstall route ([6f8462a](https://github.com/agnostack/next-shopify/commit/6f8462a7012d18c5205f1f9f22a7940b6b335329))
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
### Features
|
|
539
|
-
|
|
540
|
-
* initial implementation of withShopify > serverRuntimeConfig ([8a4771d](https://github.com/agnostack/next-shopify/commit/8a4771db503fa9fcbec15c5690f31f85b154c40e))
|
|
541
|
-
* initial test implementation ([b212bff](https://github.com/agnostack/next-shopify/commit/b212bffc7aa76e12686444a09d3b6af71294a1dc))
|
|
542
|
-
# 1.0.0 (2022-11-07)
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
### Bug Fixes
|
|
546
|
-
|
|
547
|
-
* initial commit ([1bc1cf1](https://github.com/agnostack/next-shopify/commit/1bc1cf1125052a8c71778c67e68d08d0c391ee7f))
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
### Features
|
|
551
|
-
|
|
552
|
-
* inital commit/prerelease ([df46523](https://github.com/agnostack/next-shopify/commit/df465232c95a1162423c664473d3c535bfb7b949))
|
|
553
|
-
* initial release ([40c6a31](https://github.com/agnostack/next-shopify/commit/40c6a31786757878841849e58e6b58a5c76df5c0))
|