Releases: webalys-hq/streamlinehq-npm
Allow setting a relative path to the parent project folder
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
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
This breaking release makes the following changes:
- Paths to images now follow this pattern:
@streamlinehq/streamlinehq/img/${family}/${category}/${subcategory}/${icon}.svg
, egimport 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 properrect
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
- Change import paths for all used images
- 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
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
This breaking release makes the following changes:
- All images paths are different: they now have
img
instead ofimages
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
- Replace all paths from
@streamlinehq/streamlinehq/images
to@streamlinehq/streamlinehq/img
- 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
Initial version of the app with all its initial bugs.