UNPKG

34.8 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
6## [1.6.6](https://github.com/Shopify/app-bridge/compare/v1.6.5...v1.6.6) (2019-06-21)
7
8
9### Features
10
11* add support for share ([5379196](https://github.com/Shopify/app-bridge/commit/5379196))
12
13
14
15
16
17## [1.6.5](https://github.com/Shopify/app-bridge/compare/v1.6.5-alpha.2...v1.6.5) (2019-06-14)
18
19**Note:** Version bump only for package @shopify/app-bridge
20
21
22
23
24
25## [1.6.5-alpha.2](https://github.com/Shopify/app-bridge/compare/v1.6.5-alpha.1...v1.6.5-alpha.2) (2019-06-13)
26
27
28### Bug Fixes
29
30* **validator:** ensure update validator pass all arguments to next ([66133ec](https://github.com/Shopify/app-bridge/commit/66133ec))
31
32
33
34
35
36## [1.6.5-alpha.1](https://github.com/Shopify/app-bridge/compare/v1.6.5-alpha.0...v1.6.5-alpha.1) (2019-06-12)
37
38**Note:** Version bump only for package @shopify/app-bridge
39
40
41
42
43
44## [1.6.5-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.6.4...v1.6.5-alpha.0) (2019-06-12)
45
46
47### Bug Fixes
48
49* use CDN-specific package fields ([8dd88aa](https://github.com/Shopify/app-bridge/commit/8dd88aa))
50
51
52
53
54
55## [1.6.4](https://github.com/Shopify/app-bridge/compare/v1.6.3...v1.6.4) (2019-06-11)
56
57
58### Bug Fixes
59
60* **host:** normalize feature permission update payload ([5834f59](https://github.com/Shopify/app-bridge/commit/5834f59))
61* **host:** normalize feature permission update payload ([#1010](https://github.com/Shopify/app-bridge/issues/1010)) ([cff6265](https://github.com/Shopify/app-bridge/commit/cff6265))
62
63
64
65
66
67## [1.6.3](https://github.com/Shopify/app-bridge/compare/v1.6.2...v1.6.3) (2019-06-10)
68
69**Note:** Version bump only for package @shopify/app-bridge
70
71
72
73
74
75## [1.6.2](https://github.com/Shopify/app-bridge/compare/v1.6.2-alpha.0...v1.6.2) (2019-06-10)
76
77**Note:** Version bump only for package @shopify/app-bridge
78
79
80
81
82
83## [1.6.2-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.6.1...v1.6.2-alpha.0) (2019-06-06)
84
85
86### Bug Fixes
87
88* **contextual-save-bar:** correctly map the group name to its event name ([ea52b45](https://github.com/Shopify/app-bridge/commit/ea52b45))
89
90
91
92
93
94## [1.6.1](https://github.com/Shopify/app-bridge/compare/v1.6.0...v1.6.1) (2019-06-05)
95
96**Note:** Version bump only for package @shopify/app-bridge
97
98
99
100
101
102# [1.6.0](https://github.com/Shopify/app-bridge/compare/v1.6.0-alpha.2...v1.6.0) (2019-06-04)
103
104**Note:** Version bump only for package @shopify/app-bridge
105
106
107
108
109
110# [1.6.0-alpha.2](https://github.com/Shopify/app-bridge/compare/v1.6.0-alpha.1...v1.6.0-alpha.2) (2019-06-04)
111
112
113### Features
114
115* **nfc:** added nfc action support to scanner action ([55b4810](https://github.com/Shopify/app-bridge/commit/55b4810))
116
117
118
119
120
121# [1.6.0-alpha.1](https://github.com/Shopify/app-bridge/compare/v1.6.0-alpha.0...v1.6.0-alpha.1) (2019-06-03)
122
123**Note:** Version bump only for package @shopify/app-bridge
124
125
126
127
128
129# [1.6.0-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.5.4...v1.6.0-alpha.0) (2019-06-03)
130
131
132### Features
133
134* **contextual save bar:** remove deprecated options ([d9976c3](https://github.com/Shopify/app-bridge/commit/d9976c3))
135
136
137
138
139
140## [1.5.4](https://github.com/Shopify/app-bridge/compare/v1.5.3...v1.5.4) (2019-05-29)
141
142**Note:** Version bump only for package @shopify/app-bridge
143
144
145
146
147
148## [1.5.3](https://github.com/Shopify/app-bridge/compare/v1.5.2...v1.5.3) (2019-05-24)
149
150
151### Features
152
153* modal auto sizing ([b1b21a1](https://github.com/Shopify/app-bridge/commit/b1b21a1))
154* modal auto sizing ([#892](https://github.com/Shopify/app-bridge/issues/892)) ([4620eec](https://github.com/Shopify/app-bridge/commit/4620eec))
155
156
157
158
159
160## [1.5.2](https://github.com/Shopify/app-bridge/compare/v1.5.1...v1.5.2) (2019-05-24)
161
162**Note:** Version bump only for package @shopify/app-bridge
163
164
165
166
167
168## [1.5.1](https://github.com/Shopify/app-bridge/compare/v1.5.0...v1.5.1) (2019-05-24)
169
170**Note:** Version bump only for package @shopify/app-bridge
171
172
173
174
175
176# [1.5.0](https://github.com/Shopify/app-bridge/compare/v1.4.2...v1.5.0) (2019-05-23)
177
178**Note:** Version bump only for package @shopify/app-bridge
179
180
181
182
183
184## [1.4.2](https://github.com/Shopify/app-bridge/compare/v1.4.2-alpha.0...v1.4.2) (2019-05-23)
185
186**Note:** Version bump only for package @shopify/app-bridge
187
188
189
190
191
192## [1.4.2-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.4.1...v1.4.2-alpha.0) (2019-05-23)
193
194
195### Features
196
197* add context save bar action set ([3633682](https://github.com/Shopify/app-bridge/commit/3633682))
198* add contextual save bar action set ([#931](https://github.com/Shopify/app-bridge/issues/931)) ([8ef8792](https://github.com/Shopify/app-bridge/commit/8ef8792))
199* **host:** add contextual save bar reducer and feature permission ([5fa5e6c](https://github.com/Shopify/app-bridge/commit/5fa5e6c))
200
201
202
203
204
205## [1.4.1](https://github.com/Shopify/app-bridge/compare/v1.4.0...v1.4.1) (2019-05-23)
206
207**Note:** Version bump only for package @shopify/app-bridge
208
209
210
211
212
213# [1.4.0](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.8...v1.4.0) (2019-05-23)
214
215**Note:** Version bump only for package @shopify/app-bridge
216
217
218
219
220
221## [1.3.1-alpha.8](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.7...v1.3.1-alpha.8) (2019-05-22)
222
223**Note:** Version bump only for package @shopify/app-bridge
224
225
226
227
228
229## [1.3.1-alpha.7](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.6...v1.3.1-alpha.7) (2019-05-22)
230
231**Note:** Version bump only for package @shopify/app-bridge
232
233
234
235
236
237## [1.3.1-alpha.6](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.5...v1.3.1-alpha.6) (2019-05-21)
238
239**Note:** Version bump only for package @shopify/app-bridge
240
241
242
243
244
245## [1.3.1-alpha.5](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.4...v1.3.1-alpha.5) (2019-05-21)
246
247
248### Added
249
250* **docs:** add docs for Feature Detection
251* **docs:** add docs for Point of Sale
252
253
254
255
256## [1.3.1-alpha.4](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.3...v1.3.1-alpha.4) (2019-05-17)
257
258
259### Bug Fixes
260
261* **message-transport:** add `frameWindow` to identify source of dispatch ([#885](https://github.com/Shopify/app-bridge/issues/885)) ([4558215](https://github.com/Shopify/app-bridge/commit/4558215))
262
263
264
265
266
267## [1.3.1-alpha.3](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.2...v1.3.1-alpha.3) (2019-05-15)
268
269
270### Features
271
272* **features request:** added Feature Request Action ([#917](https://github.com/Shopify/app-bridge/issues/917)) ([2124acf](https://github.com/Shopify/app-bridge/commit/2124acf))
273
274
275
276
277
278## [1.3.1-alpha.2](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.1...v1.3.1-alpha.2) (2019-05-10)
279
280**Note:** Version bump only for package @shopify/app-bridge
281
282
283
284
285
286## [1.3.1-alpha.1](https://github.com/Shopify/app-bridge/compare/v1.3.1-alpha.0...v1.3.1-alpha.1) (2019-05-10)
287
288**Note:** Version bump only for package @shopify/app-bridge
289
290
291
292
293
294## [1.3.1-alpha.0](https://github.com/Shopify/app-bridge/compare/v1.3.1-next.2...v1.3.1-alpha.0) (2019-05-03)
295
296**Note:** Version bump only for package @shopify/app-bridge
297
298
299
300
301
302## [1.3.1-next.2](https://github.com/Shopify/app-bridge/compare/v1.3.1-next.1...v1.3.1-next.2) (2019-05-03)
303
304**Note:** Version bump only for package @shopify/app-bridge
305
306
307
308
309
310<a name="1.3.1-next.1"></a>
311## [1.3.1-next.1](https://github.com/Shopify/app-bridge/compare/v1.3.1-next.0...v1.3.1-next.1) (2019-05-02)
312
313
314### Features
315
316* **fullscreen:** fix wrong group for fullscreen action interface ([b230791](https://github.com/Shopify/app-bridge/commit/b230791))
317
318
319
320
321<a name="1.3.1-next.0"></a>
322## [1.3.1-next.0](https://github.com/Shopify/app-bridge/compare/v1.3.0...v1.3.1-next.0) (2019-05-02)
323
324
325### Features
326
327* **fullscreen:** add fullscreen action ([1e1cf27](https://github.com/Shopify/app-bridge/commit/1e1cf27))
328
329
330
331
332<a name="1.3.0"></a>
333# [1.3.0](https://github.com/Shopify/app-bridge/compare/v1.3.0-next.0...v1.3.0) (2019-04-23)
334
335
336
337
338**Note:** Version bump only for package @shopify/app-bridge
339
340<a name="1.3.0-next.0"></a>
341# [1.3.0-next.0](https://github.com/Shopify/app-bridge/compare/v1.2.1-next.0...v1.3.0-next.0) (2019-04-18)
342
343
344### Features
345
346* **app redirect:** notify host when apps subscribe to actions ([3363089](https://github.com/Shopify/app-bridge/commit/3363089))
347* **resource picker:** add actionVerb to options ([616f923](https://github.com/Shopify/app-bridge/commit/616f923))
348
349
350
351
352<a name="1.2.1-next.0"></a>
353## [1.2.1-next.0](https://github.com/Shopify/app-bridge/compare/v1.2.0...v1.2.1-next.0) (2019-04-15)
354
355
356### Features
357
358* **frameless:** add support for frameless mode on mobile ([#823](https://github.com/Shopify/app-bridge/issues/823)) ([a35b1cf](https://github.com/Shopify/app-bridge/commit/a35b1cf))
359
360
361
362
363<a name="1.2.0"></a>
364# [1.2.0](https://github.com/Shopify/app-bridge/compare/v1.2.0-next.3...v1.2.0) (2019-03-28)
365
366
367
368
369**Note:** Version bump only for package @shopify/app-bridge
370
371<a name="1.2.0-next.3"></a>
372# [1.2.0-next.3](https://github.com/Shopify/app-bridge/compare/v1.2.0-next.2...v1.2.0-next.3) (2019-03-25)
373
374
375
376
377**Note:** Version bump only for package @shopify/app-bridge
378
379<a name="1.2.0-next.2"></a>
380# [1.2.0-next.2](https://github.com/Shopify/app-bridge/compare/v1.2.0-next.1...v1.2.0-next.2) (2019-03-25)
381
382
383
384
385**Note:** Version bump only for package @shopify/app-bridge
386
387<a name="1.2.0-1"></a>
388# [1.2.0-1](https://github.com/Shopify/app-bridge/compare/v1.0.8-0...v1.2.0-1) (2019-03-25)
389
390
391### Bug Fixes
392
393* **dev-build:** change the file names of the UMD build ([#799](https://github.com/Shopify/app-bridge/issues/799)) ([d5bc78f](https://github.com/Shopify/app-bridge/commit/d5bc78f))
394
395
396### Features
397
398* **app communication:** enable context for message transports ([20d2df9](https://github.com/Shopify/app-bridge/commit/20d2df9))
399* **app communication:** gate features when app dispatch or subscribe ([543e0eb](https://github.com/Shopify/app-bridge/commit/543e0eb))
400
401
402
403
404<a name="1.2.0-0"></a>
405# [1.2.0-0](https://github.com/Shopify/app-bridge/compare/v1.1.2...v1.2.0-0) (2019-03-11)
406
407
408### Features
409
410* **app communication:** enable context for message transports ([20d2df9](https://github.com/Shopify/app-bridge/commit/20d2df9))
411* **app communication:** gate features when app dispatch or subscribe ([543e0eb](https://github.com/Shopify/app-bridge/commit/543e0eb))
412
413
414
415
416<a name="1.1.2"></a>
417## [1.1.2](https://github.com/Shopify/app-bridge/compare/v1.1.1...v1.1.2) (2019-03-08)
418
419
420### Bug Fixes
421
422* **dev-build:** change the file names of the UMD build ([#799](https://github.com/Shopify/app-bridge/issues/799)) ([d5bc78f](https://github.com/Shopify/app-bridge/commit/d5bc78f))
423
424
425
426
427<a name="1.1.1"></a>
428## [1.1.1](https://github.com/Shopify/app-bridge/compare/1.1.0...1.1.1) (2019-03-08)
429
430This release is to fix a faulty deploy.
431
432
433**Note:** Version bump only for package @shopify/app-bridge
434
435<a name="1.1.0"></a>
436# [1.1.0](https://github.com/Shopify/app-bridge/compare/v1.0.8-0...v1.1.0) (2019-03-08)
437
438This release is to fix a faulty deploy.
439
440
441**Note:** Version bump only for package @shopify/app-bridge
442
443<a name="1.0.8-0"></a>
444## [1.0.8-0](https://github.com/Shopify/app-bridge/compare/v1.0.7...v1.0.8-0) (2019-03-04)
445
446
447### Bug Fixes
448
449* Increase default toast duration from 3000 to 5000 ([e46a13e](https://github.com/Shopify/app-bridge/commit/e46a13e))
450* **cart:** added LineItem based discount to Cart and to the validator ([1ebeb0a](https://github.com/Shopify/app-bridge/commit/1ebeb0a))
451* **resource-picker:** set default option `showHidden` to `true` ([#723](https://github.com/Shopify/app-bridge/pull/723))
452* **client:** handle server side render instead of throwing an error ([#724](https://github.com/Shopify/app-bridge/pull/724))
453
454### Features
455
456* **dev-build:** add development build with validator ([#702](https://github.com/Shopify/app-bridge/pull/702))
457* **interface:** actionWrapper adds clientInterface name and version ([bc20662](https://github.com/Shopify/app-bridge/commit/bc20662))
458* add dispatchClientEventHandler to host middleware ([#768](https://github.com/Shopify/app-bridge/issues/768)) ([1daa5ff](https://github.com/Shopify/app-bridge/commit/1daa5ff))
459
460
461
462
463<a name="1.0.7"></a>
464## [1.0.7](https://github.com/Shopify/app-bridge/compare/v1.0.6...v1.0.7) (2019-02-01)
465
466
467
468
469**Note:** Version bump only for package @shopify/app-bridge
470
471<a name="1.0.6"></a>
472## [1.0.6](https://github.com/Shopify/app-bridge/compare/v1.0.5...v1.0.6) (2019-02-01)
473
474
475### Bug Fixes
476
477* **collection-picker:** export collection rule type ([#715](https://github.com/Shopify/app-bridge/issues/715)) ([bff0aba](https://github.com/Shopify/app-bridge/commit/bff0aba))
478* **resource-picker:** set default option `showHidden` to `true` ([#718](https://github.com/Shopify/app-bridge/issues/718)) ([825c2dc](https://github.com/Shopify/app-bridge/commit/825c2dc))
479
480
481
482
483<a name="1.0.5"></a>
484## [1.0.5](https://github.com/Shopify/app-bridge/compare/v1.0.4...v1.0.5) (2019-01-30)
485
486
487### Bug Fixes
488
489* **collection-picker:** update collection picker type ([#711](https://github.com/Shopify/app-bridge/issues/711)) ([bdd677a](https://github.com/Shopify/app-bridge/commit/bdd677a))
490
491
492
493
494<a name="1.0.4"></a>
495## [1.0.4](https://github.com/Shopify/app-bridge/compare/v1.0.4-0...v1.0.4) (2019-01-18)
496
497
498
499
500**Note:** Version bump only for package @shopify/app-bridge
501
502<a name="1.0.4-0"></a>
503## [1.0.4-0](https://github.com/Shopify/app-bridge/compare/v1.0.3...v1.0.4-0) (2019-01-18)
504
505
506
507
508**Note:** Version bump only for package @shopify/app-bridge
509
510<a name="1.0.3"></a>
511## [1.0.3](https://github.com/Shopify/app-bridge/compare/v1.0.3-0...v1.0.3) (2019-01-07)
512
513
514### Bug Fixes
515
516* set Button Group ActionType.UPDATE to APP::BUTTONGROUP::UPDATE ([2ba88e3](https://github.com/Shopify/app-bridge/commit/2ba88e3))
517
518
519
520
521<a name="1.0.3-0"></a>
522## [1.0.3-0](https://github.com/Shopify/app-bridge/compare/v1.0.2...v1.0.3-0) (2018-12-22)
523
524
525### Features
526
527* **camera:** add camera feature ([87dc86a](https://github.com/Shopify/app-bridge/commit/87dc86a))
528
529
530
531
532<a name="1.0.2"></a>
533## [1.0.2](https://github.com/Shopify/app-bridge/compare/v1.0.2-0...v1.0.2) (2018-12-21)
534
535
536### Bug Fixes
537
538* **feature-detection:** fix FeaturesAvailable type ([08f01bd](https://github.com/Shopify/app-bridge/commit/08f01bd))
539
540
541
542
543<a name="1.0.2-0"></a>
544## [1.0.2-0](https://github.com/Shopify/app-bridge/compare/v1.0.1...v1.0.2-0) (2018-12-21)
545
546
547
548
549**Note:** Version bump only for package @shopify/app-bridge
550
551<a name="1.0.0"></a>
552# [1.0.0](https://github.com/Shopify/app-bridge/compare/v1.0.0-4...v1.0.0) (2018-12-20)
553
554
555
556
557**Note:** Version bump only for package @shopify/app-bridge
558
559<a name="1.0.0-4"></a>
560# [1.0.0-4](https://github.com/Shopify/app-bridge/compare/v1.0.0-3...v1.0.0-4) (2018-12-20)
561
562
563### Bug Fixes
564
565* fix helpers for ts compatibility ([#656](https://github.com/Shopify/app-bridge/issues/656)) ([637474a](https://github.com/Shopify/app-bridge/commit/637474a))
566* make app.hooks optional and verify it exists before running hooks ([#658](https://github.com/Shopify/app-bridge/issues/658)) ([8423fbe](https://github.com/Shopify/app-bridge/commit/8423fbe))
567
568
569
570
571<a name="1.0.0-3"></a>
572# [1.0.0-3](https://github.com/Shopify/app-bridge/compare/v1.0.0-2...v1.0.0-3) (2018-12-19)
573
574
575
576
577**Note:** Version bump only for package @shopify/app-bridge
578
579
580
581
582<a name="1.0.0-2"></a>
583# [1.0.0-2](https://github.com/Shopify/app-bridge/compare/v1.0.0-1...v1.0.0-2) (2018-12-19)
584
585
586### Bug Fixes
587
588* issue with TitleBar buttons unable to be manually updated ([959db99](https://github.com/Shopify/app-bridge/commit/959db99))
589* remove isDismissible option from Toast action ([#650](https://github.com/Shopify/app-bridge/issues/650)) ([806cb20](https://github.com/Shopify/app-bridge/commit/806cb20))
590
591### Features
592
593* **error:** convert ButtonGroup to new validator ([d28d81d](https://github.com/Shopify/app-bridge/commit/d28d81d))
594* **error:** enable lifecycle hooks for Dispatch and Update ([264d992](https://github.com/Shopify/app-bridge/commit/264d992))
595* **features:** added feature detection ([dddc8c8](https://github.com/Shopify/app-bridge/commit/dddc8c8))
596* **validator:** implement optional modal validator ([0ab8366](https://github.com/Shopify/app-bridge/commit/0ab8366))
597* **validator:** implement optional validator for cart ([d127d83](https://github.com/Shopify/app-bridge/commit/d127d83))
598* **validator:** implement optional validator for navigation ([f407cbc](https://github.com/Shopify/app-bridge/commit/f407cbc))
599* **validator:** implement optional validator for Print ([d6fe732](https://github.com/Shopify/app-bridge/commit/d6fe732))
600* **validator:** implement optional validator for Toast and Loading ([8981e8c](https://github.com/Shopify/app-bridge/commit/8981e8c))
601* **validator:** move resource picker validation to middleware ([7ae4696](https://github.com/Shopify/app-bridge/commit/7ae4696))
602* **validator:** TitleBar ([f43d5f4](https://github.com/Shopify/app-bridge/commit/f43d5f4))
603
604
605### BREAKING CHANGES
606
607* `isDismissible` option removed from Toast action
608
609
610
611
612<a name="1.0.0-1"></a>
613# [1.0.0-1](https://github.com/Shopify/app-bridge/compare/v1.0.0-0...v1.0.0-1) (2018-12-03)
614
615
616### Bug Fixes
617
618* ensure window exists before accessing its methods and props ([443650d](https://github.com/Shopify/app-bridge/commit/443650d))
619* error handling for undefined shopOrigin and apiKey ([ffccd9a](https://github.com/Shopify/app-bridge/commit/ffccd9a))
620* **app-bridge:** add webpack config to gitignore exclusion ([e55dece](https://github.com/Shopify/app-bridge/commit/e55dece))
621* **app-bridge:** fix typescript lib generation for older clients ([451d300](https://github.com/Shopify/app-bridge/commit/451d300))
622
623
624
625
626<a name="1.0.0-0"></a>
627# [1.0.0-0](https://github.com/Shopify/app-bridge/compare/v0.1.2-2...v1.0.0-0) (2018-11-29)
628
629
630### Bug Fixes
631
632* add additional config app config data ([6949603](https://github.com/Shopify/app-bridge/commit/6949603))
633* CI tasks and dev ([68f5210](https://github.com/Shopify/app-bridge/commit/68f5210))
634* do not lock origin when dispatching to apps ([c3af876](https://github.com/Shopify/app-bridge/commit/c3af876))
635* fix cart actions and tests ([#395](https://github.com/Shopify/app-bridge/issues/395)) ([d570be1](https://github.com/Shopify/app-bridge/commit/d570be1))
636* fix CHANGELOG ([#412](https://github.com/Shopify/app-bridge/issues/412)) ([adbbd64](https://github.com/Shopify/app-bridge/commit/adbbd64))
637* fix discount payload to support discountCode ([#518](https://github.com/Shopify/app-bridge/issues/518)) ([6f04b6e](https://github.com/Shopify/app-bridge/commit/6f04b6e))
638* restrict origin for post message ([bce7d3a](https://github.com/Shopify/app-bridge/commit/bce7d3a))
639* separate namespaces for umd entrypoints ([e9d987a](https://github.com/Shopify/app-bridge/commit/e9d987a))
640* Stop using alias to import client types to fix `actions` module ([09053f3](https://github.com/Shopify/app-bridge/commit/09053f3))
641* test cases ([a6a1597](https://github.com/Shopify/app-bridge/commit/a6a1597))
642* **host:** fix decorator throwing error on server side render ([6643f8a](https://github.com/Shopify/app-bridge/commit/6643f8a))
643* **host:** only initialize app after component has mounted ([737ff43](https://github.com/Shopify/app-bridge/commit/737ff43))
644* **resource picker:** add showVariants to payload ([f259358](https://github.com/Shopify/app-bridge/commit/f259358))
645* **resource picker:** correctly set local options ([89748bb](https://github.com/Shopify/app-bridge/commit/89748bb))
646* tests ([6c706f6](https://github.com/Shopify/app-bridge/commit/6c706f6))
647* update paths in the test app to be relative to the app origin ([e5fd908](https://github.com/Shopify/app-bridge/commit/e5fd908))
648* update the History action docs to be more accurate ([f9075da](https://github.com/Shopify/app-bridge/commit/f9075da))
649
650
651### Features
652
653* add detailed collection interface ([d0eefed](https://github.com/Shopify/app-bridge/commit/d0eefed))
654* change POS cart actions to follow new dispatch pattern ([32a0c03](https://github.com/Shopify/app-bridge/commit/32a0c03))
655* **button:** add danger button style ([#424](https://github.com/Shopify/app-bridge/issues/424)) ([5cf58ed](https://github.com/Shopify/app-bridge/commit/5cf58ed))
656* **redirect:** add newContext to Redirect actions ([#425](https://github.com/Shopify/app-bridge/issues/425)) ([e8e9040](https://github.com/Shopify/app-bridge/commit/e8e9040))
657* **resource picker:** add cancel action ([8728614](https://github.com/Shopify/app-bridge/commit/8728614))
658* **resource picker:** show variant option ([19e63b7](https://github.com/Shopify/app-bridge/commit/19e63b7))
659* **toast:** changed Toast into Flash ([#457](https://github.com/Shopify/app-bridge/issues/457)) ([5d8aa15](https://github.com/Shopify/app-bridge/commit/5d8aa15))
660* sub-packages ([3f7575c](https://github.com/Shopify/app-bridge/commit/3f7575c))
661* support UMD library builds ([9480595](https://github.com/Shopify/app-bridge/commit/9480595))
662
663
664
665
666<a name="0.8.2"></a>
667## [0.8.2](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.8.1...@shopify/app-bridge@0.8.2) (2018-11-13)
668
669
670### Bug Fixes
671
672* fix discount payload to support discountCode ([#518](https://github.com/Shopify/app-bridge/issues/518)) ([6f04b6e](https://github.com/Shopify/app-bridge/commit/6f04b6e))
673* separate namespaces for umd entrypoints ([e9d987a](https://github.com/Shopify/app-bridge/commit/e9d987a))
674
675
676
677
678<a name="0.8.1"></a>
679## [0.8.1](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.8.0...@shopify/app-bridge@0.8.1) (2018-11-01)
680
681
682### Bug Fixes
683
684* **host:** fix decorator throwing error on server side render ([6643f8a](https://github.com/Shopify/app-bridge/commit/6643f8a))
685
686
687
688
689<a name="0.8.0"></a>
690# [0.8.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.3...@shopify/app-bridge@0.8.0) (2018-10-29)
691
692
693### Bug Fixes
694
695* update the History action docs to be more accurate ([f9075da](https://github.com/Shopify/app-bridge/commit/f9075da))
696
697
698### Features
699
700* **toast:** changed Toast into Flash ([#457](https://github.com/Shopify/app-bridge/issues/457)) ([5d8aa15](https://github.com/Shopify/app-bridge/commit/5d8aa15))
701
702
703
704
705<a name="0.7.3"></a>
706## [0.7.3](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.2...@shopify/app-bridge@0.7.3) (2018-10-15)
707
708
709### Bug Fixes
710
711* add additional config app config data ([6949603](https://github.com/Shopify/app-bridge/commit/6949603))
712
713
714
715
716<a name="0.7.2"></a>
717## [0.7.2](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.1...@shopify/app-bridge@0.7.2) (2018-10-15)
718
719
720### Bug Fixes
721
722* do not lock origin when dispatching to apps ([c3af876](https://github.com/Shopify/app-bridge/commit/c3af876))
723
724
725
726
727<a name="0.7.1"></a>
728## [0.7.1](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.7.0...@shopify/app-bridge@0.7.1) (2018-10-15)
729
730
731### Bug Fixes
732
733* restrict origin for post message ([bce7d3a](https://github.com/Shopify/app-bridge/commit/bce7d3a))
734
735
736
737
738<a name="0.7.0"></a>
739# [0.7.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.6.0...@shopify/app-bridge@0.7.0) (2018-10-12)
740
741
742### Features
743
744* **button:** add danger button style ([#424](https://github.com/Shopify/app-bridge/issues/424)) ([5cf58ed](https://github.com/Shopify/app-bridge/commit/5cf58ed))
745
746
747
748
749<a name="0.6.0"></a>
750# [0.6.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.5.0...@shopify/app-bridge@0.6.0) (2018-10-12)
751
752
753### Bug Fixes
754
755* **host:** only initialize app after component has mounted ([737ff43](https://github.com/Shopify/app-bridge/commit/737ff43))
756* update paths in the test app to be relative to the app origin ([e5fd908](https://github.com/Shopify/app-bridge/commit/e5fd908))
757
758
759### Features
760
761* **redirect:** add newContext to Redirect actions ([#425](https://github.com/Shopify/app-bridge/issues/425)) ([e8e9040](https://github.com/Shopify/app-bridge/commit/e8e9040))
762
763
764
765
766<a name="0.5.0"></a>
767# [0.5.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.4.3...@shopify/app-bridge@0.5.0) (2018-10-11)
768
769
770### Features
771
772* **resource picker:** add cancel action ([8728614](https://github.com/Shopify/app-bridge/commit/8728614))
773
774
775
776
777<a name="0.4.3"></a>
778## [0.4.3](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.4.1...@shopify/app-bridge@0.4.3) (2018-10-10)
779
780
781### Bug Fixes
782
783* **resource picker:** correctly set local options ([89748bb](https://github.com/Shopify/app-bridge/commit/89748bb))
784
785
786
787
788<a name="0.4.2"></a>
789## [0.4.2](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.4.1...@shopify/app-bridge@0.4.2) (2018-10-10)
790
791
792### Bug Fixes
793
794* **resource picker:** correctly set local options ([89748bb](https://github.com/Shopify/app-bridge/commit/89748bb))
795
796
797
798
799<a name="0.4.1"></a>
800## [0.4.1](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.4.0...@shopify/app-bridge@0.4.1) (2018-10-10)
801
802
803### Bug Fixes
804
805* **resource picker:** add showVariants to payload ([f259358](https://github.com/Shopify/app-bridge/commit/f259358))
806
807
808
809
810<a name="0.4.0"></a>
811# [0.4.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.3.0...@shopify/app-bridge@0.4.0) (2018-10-09)
812
813
814### Bug Fixes
815
816* fix CHANGELOG ([#412](https://github.com/Shopify/app-bridge/issues/412)) ([adbbd64](https://github.com/Shopify/app-bridge/commit/adbbd64))
817
818
819### Features
820
821* **resource picker:** show variant option ([19e63b7](https://github.com/Shopify/app-bridge/commit/19e63b7))
822
823
824
825
826<a name="0.3.0"></a>
827## [0.3.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.2.3...@shopify/app-bridge@0.3.0) (2018-10-02)
828
829
830### Features
831
832* add icon to Button to support legacy app print action ([bada251](https://github.com/Shopify/app-bridge/commit/bada251))
833
834
835
836
837<a name="0.2.3"></a>
838## [0.2.3](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.2.2...@shopify/app-bridge@0.2.3) (2018-09-26)
839
840
841### Features
842
843* add detailed collection interface ([d0eefed](https://github.com/Shopify/app-bridge/commit/d0eefed))
844
845
846
847
848<a name="0.2.2"></a>
849## [0.2.2](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.2.1...@shopify/app-bridge@0.2.2) (2018-09-26)
850
851
852### Bug Fixes
853
854* allow linting of publish commits ([9cc6a00](https://github.com/Shopify/app-bridge/commit/9cc6a00))
855* enhance product picker playground ([c3f7a0d](https://github.com/Shopify/app-bridge/commit/c3f7a0d))
856* fix cart actions and tests ([#395](https://github.com/Shopify/app-bridge/issues/395)) ([d570be1](https://github.com/Shopify/app-bridge/commit/d570be1))
857
858
859
860
861<a name="0.2.1"></a>
862# [0.2.1](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.2.0...@shopify/app-bridge@0.2.1) (2018-09-26)
863
864### Bug Fixes
865
866* publish script ([f4d7cb7](https://github.com/Shopify/app-bridge/commit/f4d7cb7))
867
868
869<a name="0.2.0"></a>
870# [0.2.0](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.1.5...@shopify/app-bridge@0.2.0) (2018-09-26)
871
872
873### Bug Fixes
874
875* test cases ([a6a1597](https://github.com/Shopify/app-bridge/commit/a6a1597))
876
877
878### Features
879
880* change POS cart actions to follow new dispatch pattern ([32a0c03](https://github.com/Shopify/app-bridge/commit/32a0c03))
881* add commitlint ([d3325cf](https://github.com/Shopify/app-bridge/commit/d3325cf))
882
883
884
885
886<a name="0.1.5"></a>
887## [0.1.5](https://github.com/Shopify/app-bridge/compare/@shopify/app-bridge@0.1.4...@shopify/app-bridge@0.1.5) (2018-09-21)
888
889
890### Bug Fixes
891
892* Stop using alias to import client types to fix `actions` module ([09053f3](https://github.com/Shopify/app-bridge/commit/09053f3))
893
894-----
895
896## [v0.1.4]
897
898### Fixed
899
900* Stop using alias to import client types to fix `actions` module
901
902### Added
903
904* Added docs and examples for breadcrumbs in the Title Bar
905* Added more detailed types for selected resources [ResourcePicker]
906* Added new discrete variant picker [ResourcePicker]
907* Added `initialQuery` to resource picker options [ResourcePicker]
908
909### Changed
910
911* Ensure resource picker payload includes options [ResourcePicker]
912
913* Rename all instances of `TwoWay` to `ActionSet` to better clarify the difference between single actions and action sets.
914* Convert `Redirect`, `History` and `Loading` to actions sets for consistency with other actions groups
915
916### Fixed
917
918* Fixed spelling for Flash option `isDismissible`
919
920### Removed
921
922## [v0.1.3]
923
924### Added
925
926* Added ability to specify `SECRET` via environment variable
927* Added CODEOWNERS
928* Added Cart.updateById action
929* Export host API client load action
930* Export POS error actions
931
932### Changed
933
934* Clean up READMEs
935* Introduce more functionality for secondary actions in test app
936* Ignore `TEST.md` et al for npm
937
938### Fixed
939
940* Client now handles redirection correctly when `forceRedirect` is set
941* Fixed optional fields for cart payload
942
943### Removed
944
945* Removed `start:prodShop` task
946* Removed docs referencing internal setup instructions
947
948## [v0.1.1]
949
950### Changed
951
952* Downgraded lerna to `2.9.1`
953
954## [v0.1.0]
955
956### Changed
957
958* Rename the package to `app-bridge`
959
960### Fixed
961
962* Local dev EASDK Playground app install URL
963
964## [v0.0.18]
965
966### Changed
967
968* Use TravisCI instead of CircleCI
969
970## [v0.0.17]
971
972### Added
973
974* Perform validation for `apiKey` when an action is dispatched or when the app state is requested
975* Added client helpers `getUrlParams` and `getShopOrigin`
976
977### Changed
978
979* Rename the `apiClientId` in the client config to `apiKey`
980* Remove dependency on Redux for `actions` and `client` modules
981* Export a union type for all available actions for each action group
982* The default export for the client module will now point to a method that automatically calls to create the transport between the app and the top window.
983
984_Old_
985
986```js
987import createAppWrapper, {getShopOrigin} from '@shopify/easdk';
988const config = {apiKey: '123', shopOrigin: getShopOrigin()};
989const app = createAppWrapper(window.top)(config);
990```
991
992_New_
993
994```js
995import createApp, {getShopOrigin} from '@shopify/easdk';
996const config = {apiKey: '123', shopOrigin: getShopOrigin()};
997const app = createApp(config);
998```
999
1000### Fixed
1001
1002* Correct `type` for Resource Picker's `UpdateAction` interface to `typeof ActionType.UPDATE` instead of `typeof ActionType.SELECT`
1003
1004## [v0.0.16]
1005
1006### Added
1007
1008* Make `APICLIENT::LOAD` a constant that Web can consume
1009* Add apiClientId to ApiClientConfig in the host module
1010* Handle app printing
1011
1012### Changed
1013
1014* Simplify the fake host and delete unused apiClientLoad action
1015* Make the fake host handle iframe urls consistent with how Web is handling them for embedded app and modals
1016
1017### Fixed
1018
1019* Fix the Title Bar to not throw an error if both primary and secondary buttons are undefined
1020
1021## [v0.0.15]
1022
1023### Added
1024
1025* Add client id to `APICLIENT::LOAD` action
1026
1027### Changed
1028
1029* Update the README for modals to reflect the expected `url` and `path` properties in the payload
1030* Update the demo app to include a button to open a iframe modal with a relative path
1031* Fix the webpack config so that the test modal page is nested under `app` like the other pages
1032* Change type for `lineItem.price` and `discount.amount` from string to number
1033
1034## [v0.0.14]
1035
1036### Changed
1037
1038* Fixed MessageTransport for AppMessage when calling app.getState().
1039* Changed update cart action from `APP::CART::UPDATED` to `APP::CART::UPDATE`.
1040
1041## [v0.0.13]
1042
1043### Changed
1044
1045* Added a fix for the `fromWindow` to not add a message handler if the contentWindow is the same as the current window.
1046This prevents messages from being sent twice.
1047* Correct the check for EASDK actions in `fromWindow`, previously it was assuming an incorrect shape for the data.
1048
1049## [v0.0.12]
1050
1051### Changed
1052
1053* Allow parent message transport to handle all messages that have a type of `dispatch` or `getState`
1054* Modify `fromWindow` to accept an origin as a string
1055* Correct the default export for easdk/client to resolve the `Cannot invoke an expression whose type lacks a call signature` error
1056* Add Cart actions for POS.
1057* Add example to get POS user and location from redux store in test app
1058
1059## [v0.0.11]
1060
1061### Changed
1062
1063* Changed ids in ResourcePicker selection payload from strings to numbers to maintain backwards compatibility with current JSON.
1064
1065## [v0.0.10]
1066
1067### Added
1068
1069* Client now handles redirection to web host if `forceRedirect` flag is set
1070* Tests for ResourcePicker actions and validator.
1071
1072### Changed
1073
1074* Add a new `path` option for iframe modals which accepts relative urls. Rename the `srcUrl` to `url` for consistency.
1075Absolute urls for modals must be in the same origin as the app otherwise an error will be thrown.
1076
1077## [v0.0.9]
1078
1079### Added
1080
1081* `Resource Picker` actions are now available with [documentation](src/actions/ResourcePicker).
1082
1083### Fixed
1084
1085* Remove default props for `Modal`, `Button` and `ButtonGroup` so that errors are thrown when invalid options are set.
1086
1087## [v0.0.8]
1088
1089### Changed
1090
1091* Change `app.dispatch` type to `Dispatch<AnyAction>`
1092
1093## [v0.0.7]
1094
1095### Added
1096
1097* shopify-express middleware to enable installing project as an embedded app locally
1098
1099### Changed
1100
1101* Host is now required to pass in a reducer when calling buildMiddleware
1102* withApp decorator now provides a store prop to the wrapped component
1103* Make title property optional for `TitleBar` to be more consistent with the older `EASDK` implementation
1104* Make `TitleBar` buttons validator reject empty and malformed objects
1105* Shorten names of exported types for Actions to be more consistent and less verbose. Ex. `Button.ButtonOptions` is now `Button.Options`
1106* Use the prefix `APP` for actions instead of `EASDK` to avoid conflicts with Shopify Web
1107* Allow modal footer to accept a primary button and secondary buttons to be more aligned with Polaris modals
1108* Pass arbitrary props from `Frame` to child `iframe`
1109
1110### Fixed
1111
1112* Make custom `isModalMessage` type check return the correct `ModalMessage` type
1113
1114[unreleased]: https://github.com/shopify/easdk/compare/v0.1.4...HEAD
1115[v0.1.4]: https://github.com/shopify/easdk/compare/v0.1.3...v0.1.4
1116[v0.1.3]: https://github.com/shopify/easdk/compare/v0.1.1...v0.1.3
1117[v0.1.1]: https://github.com/shopify/easdk/compare/v0.1.0...v0.1.1
1118[v0.1.0]: https://github.com/shopify/easdk/compare/v0.0.18...v0.1.0
1119[v0.0.18]: https://github.com/shopify/easdk/compare/v0.0.17...v0.0.18
1120[v0.0.17]: https://github.com/shopify/easdk/compare/v0.0.16...v0.0.17
1121[v0.0.16]: https://github.com/shopify/easdk/compare/v0.0.15...v0.0.16
1122[v0.0.15]: https://github.com/shopify/easdk/compare/v0.0.14...v0.0.15
1123[v0.0.14]: https://github.com/shopify/easdk/compare/v0.0.13...v0.0.14
1124[v0.0.13]: https://github.com/shopify/easdk/compare/v0.0.12...v0.0.13
1125[v0.0.12]: https://github.com/shopify/easdk/compare/v0.0.11...v0.0.12
1126[v0.0.11]: https://github.com/shopify/easdk/compare/v0.0.10...v0.0.11
1127[v0.0.10]: https://github.com/shopify/easdk/compare/v0.0.9...v0.0.10
1128[v0.0.9]: https://github.com/shopify/easdk/compare/v0.0.8...v0.0.9
1129[v0.0.8]: https://github.com/shopify/easdk/compare/v0.0.7...v0.0.8
1130[v0.0.7]: https://github.com/shopify/easdk/compare/0f328b35a5a4ac06202e768e46a153c1df922593...v0.0.7