## 3.0.1
* `extension upload` and `theme upload` now accept versions that are released right after processing (status `RELEASED`); previously the upload failed with "Unexpected status: RELEASED" although it worked
* `.sgcloud/attachedExtensions.json` is now written with one property per line instead of as a single line, like the other files in `.sgcloud`
* `extension create` removes the components of the boilerplate from `extension-config.json` when their folder isn't created, e.g. the frontend components of an extension that only has a backend
* The SDK tells you again when a newer version is available. The check had been without effect since 1.10.0. It no longer stops the command: the message is shown at the start and the command runs as usual

## 3.0.0
* Fixed high CPU usage of the frontend process caused by the extension config watcher
* Fixed high CPU usage of the backend process by only watching the steps of attached extensions
* Updated to chokidar 5, which no longer needs the native fsevents module on macOS
* Fixed `backend start` failing when a previous session ended unexpectedly — leftover hooks are now cleaned up automatically before connecting and on shutdown
* Added `context.encrypt` for backend extension steps, encrypting payloads locally with the application's public keys so plaintext never leaves the development machine
* Encryption keys are loaded once during `backend start`; the available key aliases are listed in the start log
* `backend start` keeps working when the application's backend does not support encryption keys yet — `context.encrypt` then reports why no key is available instead of blaming the key alias
* Errors returned by extension steps (callback error or rejected promise) are now logged as a warning in the SDK console, including the error's stack trace (or message as fallback); previously they were only visible in the pipeline response
* Added `context.user.login(userId)` and `context.user.logout()` for backend extension steps — they behave exactly like the platform's auth step: the user is logged in or out on the current pipeline request, and steps running afterwards see the new session (e.g. `context.storage.user` becomes available after a login). `login` only works in trusted pipelines and rejects elsewhere; `logout` is always available
* `context.user.login()`/`logout()` return a promise and reject with a clear error when the login/logout fails or the application's backend does not support it yet
* Failing calls of `context.app.getInfo`, `context.device.getInfo` and `context.user.*` now report the actual error to the step; previously the step silently hung until it ran into the step timeout
* Added `extension version [extension] [tag]` command: sets the version in `extension-config.json`, commits it and creates a git tag with a `v` prefix (e.g. `v1.2.3`) — like `npm version`. Without arguments it asks for the extension and the new version interactively. If the extension is not a git repository, the version is still written to `extension-config.json` and the git step is skipped with a warning; a dirty working tree, an existing tag or a version lower than the current one aborts the command
### Breaking Change
- Node 20.19 or newer, or 22.12 or newer, is now required

## 2.0.0
* Added support for Node 24
### Breaking Change
- Drop support for node < 18

## 1.12.1
* Update @shopgate/extension-config-validator to support connectApiCredentials

## 1.12.0
* Fixed issues with Windows and recent NodeJS versions

## 1.11.2
* Introduced new process.env to enable connecting the RapidDevServer to a custom appId

## 1.11.1
* Fix problem with the websocket connection on node 15

## 1.11.0
* Use the theme's webpack configuration if it exists

## 1.10.0
* Updated to use `@shopgate/cloud-sdk-webpack@1.20.13` that brings support for Babel 7.
* Updated vulnerable dependencies and fixed their versions
* Increased extensions list maximum height
* Attached extensions config is now actualized during backend start
* Fixed extension config changes watcher
* Fixed update notifier behaviour
* Fix which prevents running `sgconnect` commands in user's home directory

## 1.9.2
* Replaced `unzip` package with `unzippper` due to Node 12 incompatibility of the former

## 1.9.1
* Bugfixes regarding webpack issues

## 1.9.0
* Frontend process doesn't need a setup anymore and can be accessed via `localhost` or `127.0.0.1` by default.
* Updated to use `@shopgate/cloud-sdk-webpack@1.19.4` that brings Webpack v4.
* Updated multiple dependencies
* Added unified translatable string handling
* Sort extensions list alphabetically for `extension manage` command

## v1.8.0
* Attach newly created extensions automatically
* Re-attach local pipelines upon PLC restart or redeploy
* `--force` flag on `extension/theme upload` assumes "yes" for both version creation and review cancel prompts now
* Fixed `theme upload` command to look for themes in the `themes` directory

## v1.7.0
* Updated boilerplate extension code endpoint
* Updated to use `@shopgate/cloud-sdk-webpack@1.17.1`
* Added `extension upload` and `theme upload` commands for uploading extensions and themes respectively
* Updated error handling for various occasions e.g. wrong organisation
* Added extension-config.json validation on backend start

## v1.6.0
* Promisified version of `tracedRequest` method
* Upgraded vulnerable dependencies
* Improved error message on invalid extension-config
* Extension-config validated during `backend start`
* Fix bug setting undefined values in storages

## v1.5.0
* Added `extension manage` command to attach/detache multiple extensions at once
* Added ability to log request and response to console when using context.tracedRequest()
* Updated `init` command to not ask for permission if option `--force` is used
* Updated to use `@shopgate/cloud-sdk-webpack@^1.15.2`
* Fixed behaviour of --trusted on `extension create` (leaving this flag without trusted|false will create a trusted extension)
* Added support for hooks in pipelines
* Fixed crash while activating local pipelines on the remote server
* Removed resetting the app's start page URL upon `frontend setup`
* Add error on storage set if the value is undefined (adapt to production behaviour)
* Added `backend start` will reset hooks

## v1.4.1
* Fix filename of pipeline in boilerplate

## v1.4.0
* Added `logout` command
* Added proper message when one developer runs `backend start` for the same shop while another is still connected
* Fixed concurrent read/write operations when accessing context.storage objects
* Added option to ignore the extension-config.json file of an extension so the config.json won't get updated on start (backend) or on change of extension-config.json; use env `IGNORE_EXT_CONFIG_FOR` with a comma separated list like this: `IGNORE_EXT_CONFIG_FOR="extId1(,extId2,extId3,...)"`
* Added setting the theme URL to local theme when `frontend start` is run and resetting it upon `CTRL + C`
* Added generation of config.json on `frontend start`
* Added a "map" storage type (access via `context.storage.<deviceType>.map`)
* Added promise support for all storage operations
* Updated to use `@shopgate/cloud-sdk-webpack@^1.11.5`
* Fixed `extension attach/detach` running forever on Windows
* Fixed watching for file changes in node_modules and **/node_modules

## v1.3.0
* Add promise support for steps
* Added option `--inspect` to `backend start` to allow for inspection/debugging of extensions (props @Menes1337)
* Added generation of config.json for attached extensions on `backend start`
* Creation of (theme)/config/components.json on `frontend start` and extension-config.json change
* Extension pipelines folder can now be empty or missing
* Returning an non error as error in step will show a useful error message
* Fix startup/close bug of frontend/backend process
* Fix path bug of components.json creation
* Fix process termination bug on Windows (not MINGW though)
* Now passing attached extensions to webpack dev server
* Updated to use `@shopgate/cloud-sdk-webpack@^1.10.2`.

## v1.2.4
* Updated to use `@shopgate/cloud-sdk-webpack@^1.10.0`

## v1.2.3
* Updated to use `@shopgate/cloud-sdk-webpack@^1.9.0`

## v1.2.2
* Fix issue of starting the frontend processes twice when using the option '-t' on 'frontend start' command
* Updated to use `@shopgate/cloud-sdk-webpack@^1.8.0`

## v1.2.1
* Only pipeline files with the ending: `.json` will be uploaded on `backend start`
* Fix storage issue that local storage can only be used if `backend start` is executed in project root
* Fix error handing for `frontend` action. The error message are show up now and has the correct format
* Fix problems that configs does not get generated correctly when it has a subpath
* Fix crashing of the SDK on reconnect
* Fix step file watcher will also react on changes in sub directories of "{project}/extensions/{extensionDir}/extension"
* Fix bug that allowed two backend processes to run in the same project
* Rename SDK from `@shopgate/cloud-sdk` to `@shopgate/platform-sdk`

## v1.2.0
* Set minimum node version to 8.4.0
* Improved log, so that step-logs are prefixed with the corresponding step
* The SDK will now ask the user for permission to overwrite the local application-config if a new init is executed in an existing app-folder
* The SDK does not allow two processes of the same kind (frontend/backend) in the same project anymore
* Added support for `react@^16.2.0`
* Improve error handling if user is not logged in
* Hide error stack traces on log level debug
* Add check to validate that pipeline id is equal to the file name
* Logging time values are in local time now
* Update log when pipeline file is invalid; JSON parse error will be displayed
* Better error log, when something's wrong in a step file
* Improve logger output of extension logger
* Project dependend console commands are usable in all subdirectories of a project
* Add extension create command
* Update extension workflow; pipelines don't need to be copied to the global pipeline folder anymore (see documentation)
* From now on the SDK has the command `sgconnect`. `sgcloud` is deprecated from now on

## v1.1.1
* Update `cloud-sdk-webpack` module to v1.5.6.

## v1.1.0
* Pipeline synchronization will now only occur every 500ms to avoid needless uploading of (unfinished) pipelines
* Errors on pipeline upload will now be more verbose
* The command `sgcloud init` will now exit with an error if the application does not exist as development application within the shopgate cloud system
* Better error log if a local step fails
* Fixed unhandled error exception when using unknown command options on init or login command
* Fixed hanging unit tests
* Added update check for the SDK; if outdated, any sgcloud command will show the update message
* Trusted pipelines are now supported

## v1.0.0 - Initial Release
