NativeRest 3.2.0 β File functions, Folder colors and more
We are pleased to announce the release of NativeRest 3.2.0. This update focuses on expanding the capabilities of built-in functions, allowing you to interact with the local file system and operating system environment variables. We also added visual improvements for better workspace organization.
Here is an overview of the key changes.
π File System Functions
One of the most powerful additions in this version is the new set of File functions. You can now read data directly from local files on your computer and use it dynamically in your requests (e.g., in the Body, Headers, or Params).
- file.readAll(path) β Reads the entire content of a file.
- file.readLine(path, line_number) β Reads a specific line from a file.
- file.readJson(path, field_name) β Reads a specific field from a JSON file.
- file.readProperty(path, property_name) β Reads a value from a standard properties/config file.
This is incredibly useful for scenarios where you need to load payloads from external files or read configuration settings stored locally.
π₯οΈ System Environment Variables
We have introduced the os.getEnv(name) function. This allows NativeRest to access Operating System environment variables.
This feature is essential for security and flexibility. Instead of hardcoding sensitive keys or paths inside NativeRest variables, you can now reference system-level variables directly in your requests.
π¨ Folder Colors
Organization matters, especially when working with large collections. You can now assign colors to folders.
Simply right-click on a folder and choose a color to visually distinguish between different modules, services, or logical groups of requests. This makes navigating your workspace faster and more intuitive.
β New Math Functions
The math library has been expanded with:
- math.abs β Returns the absolute value of a number.
- math.sqrt β Returns the square root of a number.
π οΈ Bug Fixes and Improvements
We are committed to making NativeRest the most stable REST client. This release includes several important fixes:
- Postman Import: Fixed an error that occurred when importing certain Postman collection files.
- State Saving: Fixed a bug where the state of response fields was not saved correctly [issues-72].
- Request Creation: Fixed an issue with saving a request immediately after creating a new one [issues-58].
- Various other minor bug fixes and performance improvements.
π Download
The update is available now. You can download the latest version from our website!
Download NativeRest 3.2.0!