Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Releases: webalys-hq/streamlinehq-npm

Allow setting a relative path to the parent project folder

31 Aug 14:31
9f90e4f

Choose a tag to compare

User story

As a user I'd like to set custom path to my .env file in non standard project cases

Solution

Set STREAMLINE_RELATIVE_PROJECT_FOLDER_PATH in your terminal session which will run the installation script to a path which will be appended to the npm package's path to locate the parent's project folder path from an npm package. Check this line https://github.com/webalys-hq/streamlinehq-npm/pull/45/files#diff-66f6667b405ea9ee158525b6f12729e879388bcc95af6a683118aceb012685b0R9 to understand how it's used.

Delivered with #45

Deprecation of previous options

16 Jun 09:19
8c3c3ca

Choose a tag to compare

Pre-release

This upcoming breaking release will be focused on deprecating previous options of using this package. When this is released, backend will be updated to remove support for previous versions of this package as well.

Deprecated options are:

  • No more streamlinehq.json support
  • No more hash based imports support

Category based imports and rebuilt svg files

10 Jun 12:50

Choose a tag to compare

This breaking release makes the following changes:

  • Paths to images now follow this pattern: @streamlinehq/streamlinehq/img/${family}/${category}/${subcategory}/${icon}.svg, eg import AvatarStar2 from '@streamlinehq/streamlinehq/img/illustrations-duotone/users/super-users-admin/avatar-star-2.svg'. There are no hashes anymore.
  • Uses newly released images which don't have width, height params, but have proper rect tags. Old versions of this NPM package will still use old version of the images for a couple of months.
  • All one colored families have their colors replaced to currentColor, so it's easier to change their colors. Also you can directly pass stroke/fill to the svg tag to edit the colors.

How to migrate

  1. Change import paths for all used images
  2. See each image in browser and ensure they're displayed correctly. Because of differently organised attributes they might render differently and require different customisation.

Check the latest example app in docs folder for an example.

Delivered by this pr #23

.env file support

31 Mar 13:30
e62f85a

Choose a tag to compare

Adds support to providing STREAMLINE_FAMILIES and STREAMLINE_SECRET variables via your project's .env file or via setting them directly in your shell.

It does not break previous configuration way of using a private file streamlinehq.json. However we encourage you to migrate to a new, more common way.

Unique images paths and npm

30 Mar 15:50
733c398

Choose a tag to compare

This breaking release makes the following changes:

  • All images paths are different: they now have img instead of images and each image has got a unique id appended to it. This was needed because some images' names were duplicated. Closes #6
  • Npm is used instead of yarn (closes #4)

How to migrate

  1. Replace all paths from @streamlinehq/streamlinehq/images to @streamlinehq/streamlinehq/img
  2. Change each import path by adding a unique id to each. The proper full import path can be found either by letting your IDE suggest it either by viewing the image in the sidebar in Streamline app. Please check the instructions in README to see how to find an image's path.

Initial release

30 Mar 12:16
5c05c26

Choose a tag to compare

Initial version of the app with all its initial bugs.