mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 06:28:33 +00:00
Bumps the babel-dependencies group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@storybook/addon-webpack5-compiler-babel](https://github.com/storybookjs/addon-webpack5-compiler-babel) | `4.0.0` | `4.0.1` | | [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.29.0` | `8.0.1` | | [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.26.0` | `8.0.2` | | [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) | `7.27.1` | `8.0.1` | | [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) | `7.28.5` | `8.0.1` | | [@rsbuild/plugin-babel](https://github.com/web-infra-dev/rsbuild/tree/HEAD/packages/plugin-babel) | `1.0.3` | `2.0.0` | | [babel-jest](https://github.com/jestjs/jest/tree/HEAD/packages/babel-jest) | `29.7.0` | `30.4.1` | | [babel-plugin-react-compiler](https://github.com/facebook/react/tree/HEAD/compiler/packages/babel-plugin-react-compiler) | `19.0.0-beta-a7bf2bd-20241110` | `19.0.0-beta-714736e-20250131` | | [babel-plugin-styled-components](https://github.com/styled-components/babel-plugin-styled-components) | `2.1.4` | `2.3.0` | Updates `@storybook/addon-webpack5-compiler-babel` from 4.0.0 to 4.0.1 - [Release notes](https://github.com/storybookjs/addon-webpack5-compiler-babel/releases) - [Changelog](https://github.com/storybookjs/addon-webpack5-compiler-babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/storybookjs/addon-webpack5-compiler-babel/compare/v4.0.0...v4.0.1) Updates `@babel/core` from 7.29.0 to 8.0.1 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v8.0.1/packages/babel-core) Updates `@babel/preset-env` from 7.26.0 to 8.0.2 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v8.0.2/packages/babel-preset-env) Updates `@babel/preset-react` from 7.27.1 to 8.0.1 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v8.0.1/packages/babel-preset-react) Updates `@babel/preset-typescript` from 7.28.5 to 8.0.1 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v8.0.1/packages/babel-preset-typescript) Updates `@rsbuild/plugin-babel` from 1.0.3 to 2.0.0 - [Release notes](https://github.com/web-infra-dev/rsbuild/releases) - [Changelog](https://github.com/web-infra-dev/rsbuild/blob/main/packages/plugin-babel/CHANGELOG.md) - [Commits](https://github.com/web-infra-dev/rsbuild/commits/v2.0.0/packages/plugin-babel) Updates `babel-jest` from 29.7.0 to 30.4.1 - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.4.1/packages/babel-jest) Updates `babel-plugin-react-compiler` from 19.0.0-beta-a7bf2bd-20241110 to 19.0.0-beta-714736e-20250131 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/HEAD/compiler/packages/babel-plugin-react-compiler) Updates `babel-plugin-styled-components` from 2.1.4 to 2.3.0 - [Release notes](https://github.com/styled-components/babel-plugin-styled-components/releases) - [Changelog](https://github.com/styled-components/babel-plugin-styled-components/blob/main/CHANGELOG.md) - [Commits](https://github.com/styled-components/babel-plugin-styled-components/compare/v2.1.4...v2.3.0) --- updated-dependencies: - dependency-name: "@babel/core" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel-dependencies - dependency-name: "@babel/preset-env" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel-dependencies - dependency-name: "@babel/preset-react" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel-dependencies - dependency-name: "@babel/preset-typescript" dependency-version: 7.29.7 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel-dependencies - dependency-name: "@rsbuild/plugin-babel" dependency-version: 1.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel-dependencies - dependency-name: "@storybook/addon-webpack5-compiler-babel" dependency-version: 4.0.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel-dependencies - dependency-name: babel-jest dependency-version: 30.4.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: babel-dependencies - dependency-name: babel-plugin-react-compiler dependency-version: 19.0.0-beta-714736e-20250131 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: babel-dependencies - dependency-name: babel-plugin-styled-components dependency-version: 2.3.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: babel-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
bruno-converters
The converters package is responsible for converting collections from one format to a Bruno collection. It can be used as a standalone package or as a part of the Bruno framework.
Installation
npm install @usebruno/converters
Usage
Convert Postman collection to Bruno collection
const { postmanToBruno } = require('@usebruno/converters');
// Convert Postman collection to Bruno collection
const brunoCollection = postmanToBruno(postmanCollection);
Convert Postman Environment to Bruno Environment
const { postmanToBrunoEnvironment } = require('@usebruno/converters');
const brunoEnvironment = postmanToBrunoEnvironment(postmanEnvironment);
Convert Insomnia collection to Bruno collection
const { insomniaToBruno } = require('@usebruno/converters');
const brunoCollection = insomniaToBruno(insomniaCollection);
Convert OpenAPI specification to Bruno collection
const { openApiToBruno } = require('@usebruno/converters');
const brunoCollection = openApiToBruno(openApiSpecification);
Convert WSDL file to Bruno collection
import { wsdlToBruno } from '@usebruno/converters';
const brunoCollection = await wsdlToBruno(wsdlContent);
Example
const { postmanToBruno } = require('@usebruno/converters');
const fs = require('fs/promises');
const path = require('path');
async function convertPostmanToBruno(inputFile, outputFile) {
try {
// Read Postman collection file
const inputData = await fs.readFile(inputFile, 'utf8');
// Convert to Bruno collection
const brunoCollection = await postmanToBruno(JSON.parse(inputData));
// Save Bruno collection
await fs.writeFile(outputFile, JSON.stringify(brunoCollection, null, 2));
console.log('Conversion successful!');
} catch (error) {
console.error('Error during conversion:', error);
}
}
// Usage
const inputFilePath = path.resolve(__dirname, 'demo_collection.postman_collection.json');
const outputFilePath = path.resolve(__dirname, 'bruno-collection.json');
convertPostmanToBruno(inputFilePath, outputFilePath);
WSDL Import Features
The WSDL importer supports the following features:
- Service Discovery: Automatically extracts service endpoints from WSDL definitions
- Operation Mapping: Converts WSDL operations to Bruno HTTP requests
- SOAP Envelope Generation: Creates proper SOAP envelopes for each operation
- Header Configuration: Sets up appropriate Content-Type and SOAPAction headers
- Environment Variables: Creates environment variables for service base URLs
- Folder Organization: Groups operations by port type for better organization
WSDL Import Example
import { wsdlToBruno } from '@usebruno/converters';
import fs from 'fs/promises';
async function importWSDL() {
try {
// Read WSDL file
const wsdlContent = await fs.readFile('service.wsdl', 'utf8');
// Convert to Bruno collection
const brunoCollection = await wsdlToBruno(wsdlContent);
// Save Bruno collection
await fs.writeFile('soap-collection.json', JSON.stringify(brunoCollection, null, 2));
console.log('WSDL import successful!');
} catch (error) {
console.error('Error during WSDL import:', error);
}
}
importWSDL();
CLI Usage
You can also use the Bruno CLI to import WSDL files:
# Import WSDL file to a directory
bruno import wsdl --source service.wsdl --output ~/Desktop/soap-collection --collection-name "SOAP Service"
# Import WSDL from URL
bruno import wsdl --source https://example.com/service.wsdl --output ~/Desktop --collection-name "Remote SOAP Service"
# Import WSDL and save as JSON file
bruno import wsdl --source service.wsdl --output-file ~/Desktop/soap-collection.json --collection-name "SOAP Service"
Supported Formats
- Postman Collections (v2.1)
- Insomnia Collections (v4 and v5)
- OpenAPI Specifications (v3.0)
- WSDL Files (Web Services Description Language)
Dependencies
lodash- Utility functionsnanoid- UUID generationjs-yaml- YAML parsingxml2js- XML parsing for WSDL@usebruno/schema- Schema validation