Christopher Kolstad
ff1af03f0e
docs: add impression events as supported in the java sdk ( #4213 )
...
## What
A very small change flagging impression events as supported in the Java
SDK
2023-07-11 10:54:49 +02:00
Mateusz Kwasniewski
92d43ed4f6
fix: missing flags ( #4214 )
2023-07-11 08:27:42 +00:00
Gastón Fournier
58151d8d80
docs: add descriptions and examples to tag schemas ( #4194 )
...
## About the changes
- Adding descriptions and examples to tag and tag types schemas
- Adding standard errors, summaries, and descriptions to tag and tag
types endpoints
- Some improvements on compilation errors
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-07-11 10:02:00 +02:00
Mateusz Kwasniewski
5c4f15ea5d
feat: strategy variant test UI ( #4199 )
2023-07-11 09:21:01 +02:00
Thomas Heartman
f83350cb2a
refactor: move status codes into classes ( #4200 )
...
Make each error class have to define its own status code. This makes
it easier for developers to see which code an error corresponds to and
means less jumping back and forth between files. In other words:
improved locality.
Unfortunately, the long switch needs to stay in case we get errors
thrown that aren't of the Unleash Error type, but we can move it to
the `fromLegacyError` file instead.
Tradeoff analysis by @kwasniew:
+ I like the locality of error to code reasoning
- now HTTP leaks to the non-HTTP code that throws those errors e.g. application services
If we had other delivery mechanisms other than HTTP then it wouldn't make sense to couple error codes to one protocol (HTTP). But since we're mostly doing web it may not be a problem.
@thomasheartman's response:
This is a good point and something I hadn't considered. The same data was always available on those errors (by using the same property), I've just made the declaration local to each error instead of something that the parent class handles. The idea was to make it easier to create new error classes with their corresponding error codes. Because the errors are intended to be API errors (or at least, I've always considered them to be that), I think that makes sense.
Taking your comment into consideration, I still think it's the right thing to do, but I'm not bullish about it. We could always walk it back later if we find that it's not appropriate. The old code is still available and we could easily enough roll back this change if we find that we want to decouple it later.
2023-07-11 09:20:11 +02:00
Jaanus Sellin
a2b06e4222
feat: project UI rework, move edit and delete buttons deeper ( #4195 )
2023-07-11 09:47:38 +03:00
Thomas Heartman
ec2978b133
chore: add auto-generated doc index to gitignore ( #4198 )
...
I've seen this one pop up a couple times. It's part of our openapi
docusaurus integration and should be ignored.
2023-07-10 14:28:34 +00:00
Gastón Fournier
b37851acea
chore: Datadog addon, ability to include source type name ( #4196 )
...
## About the changes
Include a new configuration parameter to be able to specify
source_type_name. This is an opt-in feature which provides backward
compatibility to our existing users.
![image](https://github.com/Unleash/unleash/assets/455064/0e65584f-f601-4f17-b7a5-e73dae55772e )
Closes #4109
## Discussion points
Maybe this should be hardcoded to `Unleash` but this gives additional
flexibility
2023-07-10 15:38:53 +02:00
andreas-unleash
d5ef1dda0a
chore: openapai favorite endpoints ( #4189 )
...
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Adds description and summary to `favorite` endpoints
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->
<!-- Does it close an issue? Multiple? -->
Closes #
[1-1098](https://linear.app/unleash/issue/1-1098/openapi-features-favorites )
<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10 ) item:
#
-->
### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->
## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-07-10 14:13:00 +03:00
Thomas Heartman
5b95eed163
refactor: split NoAccessError into ForbiddenError + PermissionError ( #4190 )
...
In some of the places we used `NoAccessError` for permissions, other
places we used it for a more generic 403 error with a different
message. This refactoring splits the error type into two distinct
types instead to make the error messages more consistent.
2023-07-10 12:48:13 +02:00
Christopher Kolstad
4ce78ccecd
docs: add description to requests per seconds schemas ( #4182 )
...
### What
Adds a quick and dirty description to requestPerSeconds and
segmentedRequestPerSecondsSchema so the enterprise /rps endpoint has
better API docs.
---------
Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2023-07-10 08:18:08 +00:00
Thomas Heartman
d60e505a40
1-1049 Emit events after db transaction is complete ( #4174 )
...
This PR fixes an issue where events generated during a db transaction
would get published before the transaction was complete. This caused
errors in some of our services that expected the data to be stored
before the transaction had been commited. Refer to [linear issue
1-1049](https://linear.app/unleash/issue/1-1049/event-emitter-should-emit-events-after-db-transaction-is-commited-not )
for more info.
Fixes 1-1049.
## Changes
The most important change here is that the `eventStore` no longer emits
events when they happen (because that can be in the middle of a
transaction). Instead, events are stored with a new `announced` column.
The new event announcer service runs on a schedule (every second) and
publishes any new events that have not been published.
Parts of the code have largely been lifted from the
`client-application-store`, which uses a similar logic.
I have kept the emitting of the event within the event store because a
lot of other services listen to events from this store, so removing that
would require a large rewrite. It's something we could look into down
the line, but it seems like too much of a change to do right now.
## Discussion
### Terminology:
Published vs announced? We should settle on one or the other. Announced
is consistent with the client-application store, but published sounds
more fitting for events.
### Publishing and marking events as published
The current implementation fetches all events that haven't been marked
as announced, sets them as announced, and then emits them. It's possible
that Unleash would crash in the interim or something else might happen,
causing the events not to get published. Maybe it would make sense to
just fetch the events and only mark them as published after the
announcement? On the other hand, that might get us into other problems.
Any thoughts on this would be much appreciated.
2023-07-10 08:43:22 +02:00
renovate[bot]
2708247056
chore(deps): update dependency cypress to v12.16.0 ( #4185 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [cypress](https://togithub.com/cypress-io/cypress ) | [`12.15.0` ->
`12.16.0`](https://renovatebot.com/diffs/npm/cypress/12.15.0/12.16.0 ) |
[![age](https://badges.renovateapi.com/packages/npm/cypress/12.16.0/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/cypress/12.16.0/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/cypress/12.16.0/compatibility-slim/12.15.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/cypress/12.16.0/confidence-slim/12.15.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>cypress-io/cypress (cypress)</summary>
###
[`v12.16.0`](https://togithub.com/cypress-io/cypress/releases/tag/v12.16.0 )
[Compare
Source](https://togithub.com/cypress-io/cypress/compare/v12.15.0...v12.16.0 )
Changelog: <https://docs.cypress.io/guides/references/changelog#12-16-0 >
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-07 18:20:59 +00:00
Tymoteusz Czech
ace499d7c6
Update OpenAPI feature strategies ( #4175 )
...
## About the changes
Updates for endpoint
`/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/strategies`
and similar
2023-07-07 15:45:04 +00:00
Tymoteusz Czech
6f15eb9f4c
fix: correct escaping of ui flags for plausible ( #3907 )
...
## About the changes
Stringified JSON still needs to be escaped before being placed in an
HTML attribute.
2023-07-07 17:40:37 +02:00
Nuno Góis
82d855ea1f
fix: add focus style to vertical tabs ( #4186 )
...
https://linear.app/unleash/issue/2-1206/we-need-focus-state-for-vertical-menu
Adds a `focus-visible` style to vertical tabs in order to improve
keyboard navigation.
![image](https://github.com/Unleash/unleash/assets/14320932/e07a1b69-2134-4d76-bafe-1c87a0384e64 )
2023-07-07 15:55:57 +01:00
Nuno Góis
6638a2f47d
fix: delete project dialog cancel redirect ( #4184 )
...
https://linear.app/unleash/issue/2-1204/delete-project-dialog-cancel-button-wrong-redirect
Fixes an issue where the project deletion dialog would redirect if
canceled.
2023-07-07 15:04:21 +01:00
renovate[bot]
3cad276932
fix(deps): update dependency pg-connection-string to v2.6.1 ( #4173 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[pg-connection-string](https://togithub.com/brianc/node-postgres/tree/master/packages/pg-connection-string )
([source](https://togithub.com/brianc/node-postgres )) | [`2.6.0` ->
`2.6.1`](https://renovatebot.com/diffs/npm/pg-connection-string/2.6.0/2.6.1 )
|
[![age](https://badges.renovateapi.com/packages/npm/pg-connection-string/2.6.1/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/pg-connection-string/2.6.1/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/pg-connection-string/2.6.1/compatibility-slim/2.6.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/pg-connection-string/2.6.1/confidence-slim/2.6.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>brianc/node-postgres (pg-connection-string)</summary>
###
[`v2.6.1`](https://togithub.com/brianc/node-postgres/compare/pg-connection-string@2.6.0...pg-connection-string@2.6.1 )
[Compare
Source](https://togithub.com/brianc/node-postgres/compare/pg-connection-string@2.6.0...pg-connection-string@2.6.1 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-07 13:29:44 +00:00
Mateusz Kwasniewski
748bfaad7d
fix: constraint validation affecting disabled button ( #4183 )
2023-07-07 14:50:13 +02:00
Tymoteusz Czech
1b99b700d6
OpenAPI - feature environment endpoints ( #4166 )
...
## About the changes
Fix OpenAPI definitions for endpoint
`/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}`
and similar.
2023-07-07 14:31:03 +02:00
Ivar Conradi Østhus
ec1bc9bb4e
fix: do not include rio server-side
2023-07-07 14:08:50 +02:00
Ivar Conradi Østhus
9e204efbd0
fix: only load if document present
2023-07-07 13:33:24 +02:00
Thomas Heartman
a51b47e956
openapi: update tag description ( #4178 )
...
Tiny PR to update the admin UI tag description, including a disclaimer
that it may change at any time.
2023-07-07 11:14:19 +00:00
Jaanus Sellin
5388eaf48c
fix: remove dangerouslySetInnerHTML ( #4181 )
2023-07-07 13:54:21 +03:00
Ivar Conradi Østhus
f995a0ed6c
chore: add reo to docs
2023-07-07 12:52:46 +02:00
Mateusz Kwasniewski
23981407ef
fix: validate min constraint values in openapi ( #4179 )
2023-07-07 12:41:48 +02:00
Nuno Góis
e0f5d2c600
feat: show username and email in name column (users tables) ( #4180 )
...
https://linear.app/unleash/issue/2-1197/merge-columns-name-and-username-in-one-column-for-all-the-tables
Shows `email` and/or `username` in the `name` column of users tables.
This provides a more consistent look across the UI while saving some
space for other columns.
Before:
![image](https://github.com/Unleash/unleash/assets/14320932/b97b39ba-f5ae-4c39-aed5-d2f7574360c1 )
After:
![image](https://github.com/Unleash/unleash/assets/14320932/ef79b6a8-c494-42b3-aef8-7012631e3dbd )
2023-07-07 11:24:09 +01:00
Mateusz Kwasniewski
3ebf3c05f8
docs: project overview ( #4176 )
2023-07-07 11:50:54 +02:00
Jaanus Sellin
3c52550474
fix: bulk tags will work now with project permissions ( #4177 )
2023-07-07 11:55:13 +03:00
renovate[bot]
2d44656a9b
fix(deps): update dependency pg to v8.11.1 ( #4172 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pg](https://togithub.com/brianc/node-postgres ) | [`8.11.0` ->
`8.11.1`](https://renovatebot.com/diffs/npm/pg/8.11.0/8.11.1 ) |
[![age](https://badges.renovateapi.com/packages/npm/pg/8.11.1/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/pg/8.11.1/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/pg/8.11.1/compatibility-slim/8.11.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/pg/8.11.1/confidence-slim/8.11.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>brianc/node-postgres (pg)</summary>
###
[`v8.11.1`](https://togithub.com/brianc/node-postgres/compare/pg@8.11.0...pg@8.11.1 )
[Compare
Source](https://togithub.com/brianc/node-postgres/compare/pg@8.11.0...pg@8.11.1 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-06 23:34:58 +00:00
renovate[bot]
1757813f9c
chore(deps): update typescript-eslint monorepo to v5.60.1 ( #4171 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint )
| [`5.60.0` ->
`5.60.1`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.60.0/5.60.1 )
|
[![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.60.1/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.60.1/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.60.1/compatibility-slim/5.60.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.60.1/confidence-slim/5.60.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
|
[@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint )
| [`5.60.0` ->
`5.60.1`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/5.60.0/5.60.1 )
|
[![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.60.1/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.60.1/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.60.1/compatibility-slim/5.60.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.60.1/confidence-slim/5.60.0 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>typescript-eslint/typescript-eslint
(@​typescript-eslint/eslint-plugin)</summary>
###
[`v5.60.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#5601-2023-06-26 )
[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.60.0...v5.60.1 )
**Note:** Version bump only for package
[@​typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin )
You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning )
and
[releases](https://main--typescript-eslint.netlify.app/users/releases )
on our website.
</details>
<details>
<summary>typescript-eslint/typescript-eslint
(@​typescript-eslint/parser)</summary>
###
[`v5.60.1`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#5601-2023-06-26 )
[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.60.0...v5.60.1 )
**Note:** Version bump only for package
[@​typescript-eslint/parser](https://togithub.com/typescript-eslint/parser )
You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning )
and
[releases](https://main--typescript-eslint.netlify.app/users/releases )
on our website.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-06 19:56:46 +00:00
Mateusz Kwasniewski
03ddd07ed8
feat: no results on playground error ( #4170 )
2023-07-06 19:14:32 +02:00
Ivar Conradi Østhus
a9d1750a4e
fix: resolution for semver in docker as well ( #4168 )
2023-07-06 18:47:14 +02:00
renovate[bot]
6b1dabbc71
chore(deps): update dependency @swc/core to v1.3.67 ( #4169 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs )
([source](https://togithub.com/swc-project/swc )) | [`1.3.66` ->
`1.3.67`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.3.66/1.3.67 ) |
[![age](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.67/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.67/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.67/compatibility-slim/1.3.66 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.67/confidence-slim/1.3.66 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>swc-project/swc (@​swc/core)</summary>
###
[`v1.3.67`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1367---2023-06-29 )
[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.3.66...v1.3.67 )
##### Bug Fixes
- **(es/minifier)** Don't drop assignments to unused top-level variables
([#​7581](https://togithub.com/swc-project/swc/issues/7581 ))
([a685c88](a685c88c61
))
- **(es/parser)** Adjust context while parsing type arguments of
TypeScript type queries
([#​7582](https://togithub.com/swc-project/swc/issues/7582 ))
([9d5dda1](9d5dda1299
))
- **(estree/compat)** Adjust `loc.col`
([#​7565](https://togithub.com/swc-project/swc/issues/7565 ))
([d86f8f6](d86f8f6a3c
))
##### Features
- **(es/minifier)** Support `__NO_SIDE_EFFECTS__`
([#​7532](https://togithub.com/swc-project/swc/issues/7532 ))
([3ad07a7](3ad07a7d2e
))
- **(es/minifier)** Enable `hoist_props` by default
([#​7535](https://togithub.com/swc-project/swc/issues/7535 ))
([07a8580](07a858030c
))
- **(es/minifier)** Inline constants even if they are exported
([#​7583](https://togithub.com/swc-project/swc/issues/7583 ))
([398e922](398e922ca0
))
- **(plugin/runner)** Update `wasmer` to `v4`
([#​7576](https://togithub.com/swc-project/swc/issues/7576 ))
([ab7b17c](ab7b17cf10
))
- **(plugin/runner)** Share runtime `Engine`
([#​7590](https://togithub.com/swc-project/swc/issues/7590 ))
([9512ea3](9512ea31ff
))
- **(testing)** Add `CARGO_TARGET_DIR` and use it from other crates
([#​7552](https://togithub.com/swc-project/swc/issues/7552 ))
([46fb461](46fb4619ba
))
##### Miscellaneous Tasks
- **(ci)** Make `cargo deny` happy
([#​7560](https://togithub.com/swc-project/swc/issues/7560 ))
([c8d9338](c8d9338583
))
- **(ci)** Change condition for `ci` testing
([#​7533](https://togithub.com/swc-project/swc/issues/7533 ))
([724e75d](724e75d256
))
- **(ci)** Fix CI
([#​7589](https://togithub.com/swc-project/swc/issues/7589 ))
([c51eac6](c51eac6075
))
##### Refactor
- **(common)** Remove `add_bitflags` and update `bitflags`
([#​7571](https://togithub.com/swc-project/swc/issues/7571 ))
([95ac74e](95ac74e6e4
))
##### Build
- **(cargo)** Update deps
([#​7564](https://togithub.com/swc-project/swc/issues/7564 ))
([d12dc70](d12dc70c91
))
- **(cargo)** Update deps
([#​7566](https://togithub.com/swc-project/swc/issues/7566 ))
([d57d0d3](d57d0d3ad3
))
- **(deps)** Update `syn` to `v2`
([#​7557](https://togithub.com/swc-project/swc/issues/7557 ))
([5441004
](54410047fa
))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNTkuNyIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-06 14:43:24 +00:00
Mateusz Kwasniewski
02fea44956
fix: initial playground env ( #4167 )
2023-07-06 16:04:33 +02:00
renovate[bot]
94bfa025c0
chore(deps): update dependency sass to v1.63.6 ( #4155 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sass](https://togithub.com/sass/dart-sass ) | [`1.63.5` ->
`1.63.6`](https://renovatebot.com/diffs/npm/sass/1.63.5/1.63.6 ) |
[![age](https://badges.renovateapi.com/packages/npm/sass/1.63.6/age-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://badges.renovateapi.com/packages/npm/sass/1.63.6/adoption-slim )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://badges.renovateapi.com/packages/npm/sass/1.63.6/compatibility-slim/1.63.5 )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://badges.renovateapi.com/packages/npm/sass/1.63.6/confidence-slim/1.63.5 )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>sass/dart-sass (sass)</summary>
###
[`v1.63.6`](https://togithub.com/sass/dart-sass/blob/HEAD/CHANGELOG.md#1636 )
[Compare
Source](https://togithub.com/sass/dart-sass/compare/1.63.5...1.63.6 )
##### JavaScript API
- Fix `import sass from 'sass'` again after it was broken in the last
release.
##### Embedded Sass
- Fix the `exports` declaration in `package.json`.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM1LjE1OS43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-06 13:57:47 +00:00
Simon Hornby
79dd508485
fix: project tokens can now be created with the correct permissions ( #4165 )
2023-07-06 15:47:03 +02:00
Mateusz Kwasniewski
d7b7d93533
feat: user openapi spec ( #4162 )
2023-07-06 15:27:43 +02:00
Thomas Heartman
46b4030d47
bug: mark descriptions on strategies as nullable ( #4156 )
...
This was omitted by mistake.
Fixes 1-1086
2023-07-06 13:39:23 +02:00
Nuno Góis
0dec24722d
fix: disallow deletion of all login history entries ( #4159 )
...
https://linear.app/unleash/issue/2-1191/disallow-deletion-of-all-login-entries-in-history-ui
Disallows deletion of all login history entries on the UI.
![image](https://github.com/Unleash/unleash/assets/14320932/f2378d61-0738-4614-b9c5-e81444e8dde1 )
2023-07-06 12:19:48 +01:00
Christopher Kolstad
e22662e140
fix: add change-edited event
2023-07-06 13:11:09 +02:00
Christopher Kolstad
7130270058
fix: added service-account events ( #4164 )
...
We're using this in enterprise as well, so we need to add events that
could happen there as well.
2023-07-06 10:51:32 +00:00
Thomas Heartman
d49626133e
tests: don't use multiple expect.stringContaining in one statement ( #4158 )
...
Apparently Jest doesn't like it when you use multiple stringContaining
statements for one property. Only the last `stringContaining`
statement is evaluated while the others are ignored.
This means that a lot of these assertions were never checked. To fix
that, I've extracted them into separate assertions.
2023-07-06 11:09:59 +02:00
Christopher Kolstad
b04545c25f
docs: Events tag ( #4152 )
...
### What
This PR adds documentation for our endpoints that are covered by our
"Events" tag. It also adds a type for all valid events, and then uses
this as valid values for type argument.
2023-07-06 08:57:09 +00:00
Gastón Fournier
51ffe02cfd
fix: update yarn.lock ( #4160 )
...
## About the changes
Update yarn.lock
2023-07-06 08:53:43 +00:00
Gastón Fournier
05c6f42f7b
fix: avoid expression injection ( #4157 )
...
## About the changes
Using toJSON should escape any potentially harmful content from the
username and email input
2023-07-06 07:52:50 +00:00
Nuno Góis
dd32e8ae0d
fix: disallow deletion of single login history entries ( #4149 )
...
https://linear.app/unleash/issue/2-1185/disallow-deletion-of-single-login-entries-in-history-ui
Disallows deletion of single login history entries on the UI.
![image](https://github.com/Unleash/unleash/assets/14320932/380f7e11-8151-49b1-bfd1-0042d87854b7 )
2023-07-06 08:36:26 +01:00
Thomas Heartman
6d591fcd17
openapi: update API tokens tag ( #4137 )
...
This PR updates endpoints and schemas for the API tokens tag.
As part of that, they also handle oneOf openapi validation errors and improve the console output for the enforcer tests.
2023-07-06 07:30:31 +00:00
Ivar Conradi Østhus
9249f7459c
fix: add resolution for semver
2023-07-06 09:22:51 +02:00
Thomas Heartman
b65bfaa52f
chore: remove OpenAPI snapshot tests ( #4153 )
...
Background (general): I don’t think it creates any value. I don’t think
people check the snapshot explicitly (especially now that it’s so large
that it gets hidden by default), and it only creates an extra chore that
you forget to do all the time (at least I do).
Background (why now?): I’ve been fighting a weird issue with the
snapshot test for the [API tokens OpenAPI
PR](https://github.com/Unleash/unleash/pull/4137 ). The tests run fine
locally, but fail in CI. The tests seem to be using an old version of
the snapshot for the test. However, when I check the snapshot in the
files tab, it’s got the new and correct values. I’ve spent probably more
than an hour trying to fix and debug this today but to no avail.
2023-07-06 10:16:27 +03:00