Skip to content

Releases: CrystallizeAPI/import-utilities

v1.12.0

07 Dec 18:37
05e0334
Compare
Choose a tag to compare

Minor Changes

  • 58a0768: The AreaStatus.error interface is updated with an optional item
    field, which will be populated on the following events:

    • CANNOT_HANDLE_ITEM,

    • CANNOT_HANDLE_ITEM_RELATION

    • CANNOT_HANDLE_PRODUCT

      interface AreaError {
      message: string
      code:
      | 'UPLOAD_FAILED'
      | 'SHAPE_ID_MISSING'
      | 'CANNOT_HANDLE_ITEM'
      | 'CANNOT_HANDLE_PRODUCT'
      | 'CANNOT_HANDLE_ITEM_RELATION'
      | 'OTHER'
      item?: JSONItem
      }

    Furthermore, the EVENT.NAMES.ERROR event is extended with the optional
    areaUpdate, which sometimes will be populated with extended information
    from the area, if it exists.

    Usage:

    bootstrapper.on(
      EVENT_NAMES.ERROR,
      ({ error, areaError, willRetry }: BootstrapperError) => {
        if (areaError) {
          console.log(JSON.stringify(areaError, null, 1))
        } else {
          console.log(JSON.stringify(error, null, 1))
        }
        if (!willRetry) {
          process.exit(1)
        }
      }
    )
    

v1.11.1

05 Dec 15:35
5706228
Compare
Choose a tag to compare

Patch Changes

  • 86f31f5: Fixed a runtime error where the bootstrapper broke down if an item
    was null.

v1.11.0

02 Dec 11:35
3c48c5d
Compare
Choose a tag to compare

Minor Changes

  • 63949a4: New event listener: EVENT_NAMES.ITEM_PUBLISHED. Will be triggered
    whenever an item is published with the payload:

    const payload: type ItemEventPayload = {
      id: string
      language: string
      name: string
    }
    

    Usage:

    bootstrapper.on(EVENT_NAMES.ITEM_PUBLISHED, (payload: ItemEventPayload) => {
      console.log('Item was published', payload)
    })
    

v1.10.1

28 Nov 14:05
696bd10
Compare
Choose a tag to compare

Patch Changes

  • c184a3f: Fixed an issue where setting product variant images to null caused
    the API to throw.

v1.10.0

28 Nov 08:54
2d1cbea
Compare
Choose a tag to compare

Minor Changes

  • 3c5845c: Handle item components with id "src". This was previously mistaken
    for a media item, and an upload was attempted, resulting in the bootstrapper
    to silently fail.

v1.9.6

25 Nov 07:49
7b67d60
Compare
Choose a tag to compare

Patch Changes

  • b479843: Disable config.shapeComponents for now since it will clear component
    data for in the catalogue api for existing components, forcing a new publish
    of items. Falling back to the default option of "amend".

v1.9.5

23 Nov 13:03
8e07de0
Compare
Choose a tag to compare

Patch Changes

  • 482e97a: Include imageUrl in order cart items

v1.9.4

23 Nov 12:21
6f82e8c
Compare
Choose a tag to compare

Patch Changes

  • 12c536b: Fixed validation for null orders in bootstrapper

v1.9.3

23 Nov 10:54
fe30081
Compare
Choose a tag to compare

Patch Changes

  • dea88bb: Fixed issue where the product variant components were sent even
    though the shape definition did not specify product variant components

v1.9.2

17 Nov 14:02
4753be8
Compare
Choose a tag to compare

Patch Changes

  • 3712700: Ensuring dist folder in published output