Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e31424a
Revert to Mendix version 10.24
weirdwater Jul 17, 2026
21b688e
Revert React version for 10.24
weirdwater Jul 16, 2026
1f99a00
Revert Single Object Data Sources for 10.24
weirdwater Jul 16, 2026
f57bbb8
Revert allowUpload for files and images for 10.24
weirdwater Jul 17, 2026
ed939b5
Run workflows for version/10.24 branch
weirdwater Jul 16, 2026
b9e5d13
Allow for other version branches
weirdwater Jul 17, 2026
2d27f83
Generate 10.24 widgets with correct dependencies
weirdwater Jul 22, 2026
99c06ac
Set version of Generator to 10.24
weirdwater Jul 22, 2026
6b199ac
Remove dependency utility for hardcoded widgets
weirdwater Jul 23, 2026
4a7b341
Mark react as a peer dependency
weirdwater Jul 27, 2026
2025cbf
[WTF-2688]: Fix command tests (version/10.24) (#197)
weirdwater Jul 29, 2026
81d9182
Migrate to using just node with strip types
weirdwater Jul 29, 2026
32cc5a6
Remove unused code or exports
weirdwater Jul 29, 2026
f5f35a4
Upgrade peggy and generate changelog types
weirdwater Jul 29, 2026
962819e
Improve error logging
weirdwater Jul 29, 2026
4399d83
Lint changelog on each push
weirdwater Jul 29, 2026
710fba9
Set node version to 22
weirdwater Jul 29, 2026
6eca521
Allow release workflow to specify release branch
weirdwater Jul 30, 2026
3b38941
[WTF-2688]: Allow backport releases (version/10.24) (#202)
weirdwater Jul 31, 2026
0e4b92b
fix: packages/pluggable-widgets-tools/package.json to reduce vulnerab…
snyk-bot Jul 27, 2026
2ef3224
Revert eslint update, update pnpm lockfile
weirdwater Jul 27, 2026
a409d7e
[Snyk] Fix for postcss (version/10.24) (#204)
mlaponder Aug 4, 2026
e860a79
Build and archive packages for testing
weirdwater Jul 8, 2026
316c15d
Make artifact archive name unique per run
weirdwater Jul 31, 2026
1083d98
Add workflow file as trigger
weirdwater Aug 3, 2026
88b0dc4
[WTF-2713]: Build PWT artifacts during PR pipeline for testing (versi…
weirdwater Aug 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/CreateGWRelease.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create GitHub release of PWT
name: Create GitHub release

# This workflow for pluggable-widgets-tools:
# 1. Puts current version from package.json as the version for unreleased changes in CHANGELOG.md
Expand All @@ -10,11 +10,20 @@ name: Create GitHub release of PWT
# NOTE: Publishing to npm doesn't happen in this workflow. PublishNpm.yml is responsible fot npm publishing.
# When the GitHub release is approved, that creates a corresponding git tag to trigger PublishNpm.yml.

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
package_name:
description: Package to create release for
required: true
type: choice
options:
- pluggable-widgets-tools
- generator-widget

jobs:
release:
name: "Create GitHub release and changelogs MR of PWT"
name: "Create GitHub release and changelogs MR"
runs-on: ubuntu-latest

steps:
Expand All @@ -35,8 +44,8 @@ jobs:
- name: "Installing dependencies"
run: pnpm install

- name: "Creating PWT release and MR"
run: "pnpm --dir packages/release-tools run release:pwt"
- name: "Creating Github release and MR"
run: pnpm exec create-release ${{ inputs.package_name }} $GITHUB_REF_NAME
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_EMAIL: ${{ secrets.GH_EMAIL }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ShaCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Ensure SHA pinned actions

on:
push:
branches: [master]
branches:
- 'master'
- 'version/*'
pull_request:
branches: [master]
branches:
- 'master'
- 'version/*'

jobs:
harden_security:
Expand Down
86 changes: 86 additions & 0 deletions .github/workflows/TestAndBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Test & Build

on:
push:
branches:
- 'master'
- 'version/*'
paths:
- 'pnpm-lock.yaml'
- 'packages/**'
- '.github/workflows/TestAndBuild.yml'
pull_request:
branches:
- 'master'
- 'version/*'
paths:
- 'pnpm-lock.yaml'
- 'packages/**'
- '.github/workflows/TestAndBuild.yml'

jobs:
test-build:
name: "Quality Checks & Build"
runs-on: ubuntu-latest
steps:
- name: "Checking-out code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
with:
submodules: false

- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0

- name: "Defining node version"
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: ".nvmrc"
cache: 'pnpm'

- name: "Installing dependencies"
run: pnpm install

- name: "Running unit tests"
run: pnpm -r test

- name: "Linting packages"
run: pnpm lint

- name: "Linting changelogs"
run: |
failures=0
for changelog in $(find . -type f -name CHANGELOG.md -mindepth 3 -maxdepth 3); do
echo "Parsing $changelog"
if pnpm exec changelog-parser parse $changelog; then
:
else
: $((failures++))
fi
done
if [[ $failures -gt 0 ]]; then
exit 1;
fi

- name: "Build packages"
run: pnpm -r pack

- name: "Prepare artifacts"
id: prepare-artifacts
run: |
mkdir artifacts
sha_short=$(echo "$GITHUB_SHA" | head -c 7)
for package in $(ls *.tgz); do
revisioned=$(echo "$package" | sed -e "s/^\(.*\)\(.tgz\)/\1-$sha_short\2/")
mv $package ./artifacts/$revisioned
done
SAFE_GIT_REF="$(echo '${{github.ref_name}}' | sed -e 's/^\(.*\)\/merge$/pr\1/' -e 's/\//__/g')"
printf 'PACKAGES_NAME=widgets-tools.%s.%s' "$SAFE_GIT_REF" "${{ github.run_number }}" >> "$GITHUB_OUTPUT"

- name: "Archive artifacts"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
id: archive-artifacts
with:
name: ${{ steps.prepare-artifacts.outputs.PACKAGES_NAME }}
path: artifacts/*.tgz
retention-days: 5

9 changes: 5 additions & 4 deletions .github/workflows/TestPWTCommands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ name: Script tests
on:
push:
branches:
- master
- 'master'
- 'version/*'
paths:
- 'pnpm-lock.yaml'
- 'packages/generator-widget/**'
- 'packages/pluggable-widgets-tools/**'
- 'packages/command-tests/**'
pull_request:
branches:
- master
- 'master'
- 'version/*'
paths:
- 'pnpm-lock.yaml'
- 'packages/generator-widget/**'
Expand All @@ -20,11 +22,10 @@ on:

jobs:
test:
name: "Script tests (Node ${{ matrix.node }}, ${{ matrix.os }})"
name: "Script tests (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [20]
os: [windows-latest, ubuntu-latest]
steps:
- name: "Checking-out code"
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/UnitTests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.20.2
22.23.2
3 changes: 2 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import prettierRecommended from "eslint-plugin-prettier/recommended";
export default defineConfig(
globalIgnores([
"packages/generator-widget/generators/app/templates/**",
"packages/pluggable-widgets-tools/dist/**"
"packages/pluggable-widgets-tools/dist/**",
"packages/release-tools/utils/changelog-parser/changelog.*"
]),
{
files: ["**/*.js", "**/*.mjs"],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "widgets-tools",
"engines": {
"node": ">=20"
"node": "^22.18.0"
},
"private": "true",
"type": "module",
Expand All @@ -17,6 +17,7 @@
},
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800",
"devDependencies": {
"@mendix/release-tools": "workspace:*",
"@eslint/js": "^10.0.1",
"@prettier/plugin-xml": "^3.4.2",
"@typescript-eslint/eslint-plugin": "^8.59.0",
Expand Down
25 changes: 0 additions & 25 deletions packages/command-tests/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ async function main() {
widgetPackageJson = await readJson(join(workDir, "package.json"));
widgetPackageJson.devDependencies["@mendix/pluggable-widgets-tools"] = toolsPackagePath;

// Adds compatibility to new React 18 and React native 0.72
fixPackageJson(widgetPackageJson);

await writeJson(join(workDir, "package.json"), widgetPackageJson);

await execAsync("npm install --loglevel=error", workDir, logger);
Expand Down Expand Up @@ -399,25 +396,3 @@ async function execFailedAsync(command, workDir) {
}
throw new Error(`Expected '${command}' to fail, but it didn't!`);
}

function fixPackageJson(json) {
const devDependencies = {
"@types/jest": "^29.0.0",
"@types/react": "^19.0.0",
"@types/react-native": "0.78.2",
"@types/react-dom": "^19.0.0",
"@types/react-test-renderer": "~18.0.0"
};
const overrides = {
react: "^19.0.0",
"react-dom": "^19.0.0",
"react-native": "0.78.2"
};

Object.keys(devDependencies)
.filter(dep => !!json.devDependencies[dep])
.forEach(dep => (json.devDependencies[dep] = devDependencies[dep]));

json.overrides = overrides;
json.resolutions = overrides;
}
2 changes: 1 addition & 1 deletion packages/command-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@mendix/pluggable-widgets-tools": "workspace:*",
"@prettier/plugin-xml": "^2.2.0",
"@types/jest-image-snapshot": "^4.3.1",
"@types/node": "^20.14.8",
"@types/node": "^22.18.0",
"@types/shelljs": "^0.10.0",
"@types/xml2js": "^0.4.5",
"async-mutex": "^0.5.0",
Expand Down
15 changes: 1 addition & 14 deletions packages/generator-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Changed

- We cleaned up a template with unused imports.

## [11.11.0] - 2026-06-04

### Changed
- We increased the minimum node version to 22.

- We updated the version of cypress when e2e tests are generated.

- We renamed the initial e2e tests so they match cypress' default specPattern.

## [11.6.0] - 2026-03-04

### Changed

- We upgraded React to version 19 and React Native to version 0.78.2 for generated widgets.

## [11.3.1] - 2026-02-04

### Changed

- We migrated the generated unit tests to use React Testing Library instead of enzyme.

- We changed the copyright prompt to prefill the current year.
Expand Down
Loading
Loading