Skip to main content

21 posts tagged with "Improved"

Enhancements and updates to existing features

View All Tags

trackunit/iris-app v0.0.5 - upgrade to rspack from webpack

In this version of our Iris App SDK we have added support for Rspack as well as the existing Webpack.

To read more on rspack, please visit the rspack documentation.

Iris apps created with @trackunit/iris-app@0.0.5 should already have the required rspack configuration.

Rename and update the webpack config file

Rename the webpack.config.ts file to rspack.config.ts and update the file to use the rspack configuration.

For the new rspack.config.ts file, you shold change the following import:

import { Configuration } from "webpack";

Change to:

import { Configuration } from "@rspack/core";

The end result should look like the following:

import { Configuration } from "@rspack/core";

export default (configuration: Configuration) => {
return configuration;
};

Change the following entries in targets map in the project.json file of your iris app.

For the build target, change the following:

"executor": "@trackunit/iris-app:build",

Change to:

"executor": "@trackunit/iris-app-sdk-rspack:build",

For the serve target, change the following:

"executor": "@trackunit/iris-app:serve",

Change to:

"executor": "@trackunit/iris-app-sdk-rspack:serve",

Also change the webpackConfig option to point to the new rspack.config.ts file instead of the webpack.config.ts file, and rename it to rspackConfig.

The end result should look something like the following.

...
"build": {
"executor": "@trackunit/iris-app-sdk-rspack:build",
"options": {
"outputPath": "dist/apps/your_app",
"rspackConfig": "apps/your_app/rspack.config.ts"
},
"outputs": ["{options.outputPath}"]
},
"serve": {
"executor": "@trackunit/iris-app-sdk-rspack:serve",
"options": {
"rspackConfig": "apps/your_app/rspack.config.ts"
},
"outputs": ["{options.outputPath}"]
},
...

trackunit/iris-app-api v0.0.172 - removed `default-src` from CSP header

[Breaking change] We are removing the default-src from the cspHeader property in the IrisX App manifest.

We are doing this since we have seen issues with more specific CSP rules and conflicts with default-src.

So in case you have to call an external API and defined:

{
"cspHeader": {
"default-src": ["https://api.mycompany.com"]
}
}

Then it should be changed to the more specific connect-src for API calls:

{
"cspHeader": {
"connect-src": ["https://api.mycompany.com"]
}
}

trackunit/iris-app v0.0.571 - Node upgraded to v20.12.2

In this version of the App SDK, we have upgraded Node to the current LTS version 20.12.2. Make sure to upgrade your workspace to at least Node v20.12.2.

If using volta, you can install the latest LTS version of Node by running:

volta install node@lts

Otherwise, you can download the latest LTS version of Node from the Node.js website.

trackunit/ui-icons v0.0.76 - new format for icons

[Breaking change] In this version of our App SDK a new format was introduced for icons, which require an update of jest configurations in extensions that use this library.

Extensions created with @trackunit/iris-app@0.0.366 should already have the required configuration.

Add the following entries to the moduleNameMapper array of jest.config.ts in all relevant libraries.

'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',

The end result should look like the following.

export default {
displayName: 'extension',
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/libs/extension',
moduleNameMapper: {
'@trackunit/css-core': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-outline.svg': 'jest-transform-stub',
'@trackunit/ui-icons/icons-sprite-solid.svg': 'jest-transform-stub',
},
};