Changes to Pre-Request Variable Handling in v1.28.0: From Type Inference to Strings #3072
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
@helloanoop I love your product but I do have questions about this change. To preface, Im not a dev but I do work on a software team and Im learning. I have been learning JS by writing it in the scripting for postman and now bruno but with the recent changes I can no longer simply pass an envVar in the request of my graphQL or rest requests.... first case I was using momentJS to set dates dynamically based when requests to mimic a date dropdown in the app such as
I was able to pass the values into the req from my prescript using moment js in the past but now they are passing the varible value as a string? {{last30days}} how can I fix this? |
Beta Was this translation helpful? Give feedback.
-
Can't we have both? Enable request vars to have type inference on a per variable basis through a checkbox or something? It was a useful feature and a differentiator to Postman. |
Beta Was this translation helpful? Give feedback.
-
In earlier versions of Bruno, we supported type inference on variables, allowing developers to use JavaScript template literals inside request variables. These were evaluated during runtime, providing flexibility in handling different data types.
With the release of v1.28.0, we’ve shifted to treating all Pre-Request Vars as strings. This change aligns Pre-Request Vars with how environment variables, runtime variables, and folder variables are handled, ensuring a more consistent and predictable behavior across the client.
For documentation around Variables - please visit https://docs.usebruno.com/get-started/variables/overview
Beta Was this translation helpful? Give feedback.
All reactions