Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge alpha to master #897

Merged
merged 71 commits into from
Dec 13, 2024
Merged

chore: merge alpha to master #897

merged 71 commits into from
Dec 13, 2024

Conversation

KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Dec 9, 2024

This will release version 12 🎉 LIBS-704

Before merge:

After the merge:

KaiVandivier and others added 30 commits June 6, 2024 18:17
* feat: serve app with Vite

* fix: leave compilation to Vite to enable HMR and .jsx files

* chore: remove log

* fix: convert app shell files to .jsx

* feat: build apps with Vite

* chore: clean up config

* fix: still compile for libs for now

* fix: dynamic import & bundle splitting of moment locales

* chore: bump required Node versions
BREAKING CHANGE: Supported Node versions are 18.x or 20+

* ci: upgrade Node version

* fix: always add PWA_ENABLED to app env for better static analysis

* chore: pause precache manifest injection

* fix: building SW without CRA

* chore: comment update

* fix: group moment locales in their own dir

* refactor: clean up precache injection

* fix: locale utils and handling moment in jest

* fix: compile correctly after merging changes

* chore: comment in compile.js

* chore: some clean-up

* chore: comments

* fix: use port 3000 for the dev server

* fix: improve moment locale chunk naming

* chore: remove CRA

* fix: use mjs build of Vite

* fix: bump cli-style for CRA fix

* feat: use interactive dev server output from Vite

* fix: make dev server port configurable

* chore: remove old index.html

* fix: env tweaks
# [12.0.0-alpha.1](v11.2.2...v12.0.0-alpha.1) (2024-06-06)

### Features

* replace CRA with Vite [LIBS-598] ([#847](#847)) ([3dd0e59](3dd0e59))

### BREAKING CHANGES

* Supported Node versions are 18.x or 20+

* ci: upgrade Node version

* fix: always add PWA_ENABLED to app env for better static analysis

* chore: pause precache manifest injection

* fix: building SW without CRA

* chore: comment update

* fix: group moment locales in their own dir

* refactor: clean up precache injection

* fix: locale utils and handling moment in jest

* fix: compile correctly after merging changes

* chore: comment in compile.js

* chore: some clean-up

* chore: comments

* fix: use port 3000 for the dev server

* fix: improve moment locale chunk naming

* chore: remove CRA

* fix: use mjs build of Vite

* fix: bump cli-style for CRA fix

* feat: use interactive dev server output from Vite

* fix: make dev server port configurable

* chore: remove old index.html

* fix: env tweaks
# [12.0.0-alpha.2](v12.0.0-alpha.1...v12.0.0-alpha.2) (2024-06-20)

### Bug Fixes

* clean up for plugins [LIBS-620] ([#851](#851)) ([13af3b5](13af3b5))
* do not encode username, password ([#852](#852)) ([2fb4272](2fb4272))
* don't start plugins for apps without a plugin entrypoint ([#850](#850)) ([a89d4cf](a89d4cf))

### Features

* parse pluginType from d2 config to add to manifest.webapp ([#849](#849)) ([c1dae23](c1dae23))
* start plugin and app separately [LIBS-391] [LIBS-392] ([#848](#848)) ([82003e7](82003e7))
# [12.0.0-alpha.3](v12.0.0-alpha.2...v12.0.0-alpha.3) (2024-07-08)

### Bug Fixes

* **alerts:** ensure hiding works correctly and alerts are not re-added [DHIS2-15438] ([#859](#859)) ([6b11fff](6b11fff))
* fixed dimensions plugins [LIBS-634] ([#858](#858)) ([1f717f3](1f717f3))
* small text change in changelog ([824dd2f](824dd2f))

### Features

* cleanup plugin error boundary [UX-136] ([#856](#856)) ([de252fe](de252fe))
* parse additional namespaces from `d2.config.js` and add to `manifest.webapp` [LIBS-638]  ([#860](#860)) ([62782fe](62782fe))
# [12.0.0-alpha.4](v12.0.0-alpha.3...v12.0.0-alpha.4) (2024-07-23)

### Bug Fixes

* use i18next-scanner v3 for better i18next compatibility ([#864](#864)) ([84a5a59](84a5a59))
* **deps:** update i18next-scanner version to support old plurals format again ([#861](#861)) ([d0e433b](d0e433b))
* plugin boundary retry if plugin logic is skipped ([#862](#862)) ([01a3160](01a3160))

### Features

* update boilerplate app code for init command [LIBS-644] ([#866](#866)) ([bd6cfc0](bd6cfc0))
* chore: update yarn.lock

* refactor: use Vite Node API for starting apps

* chore: extend gitignore

* feat: use Vite Node API to build apps

* feat: build & serve plugins with Vite

* chore: clean up unused "start app or plugin" logic

* chore: clean up old plugin code (yay!)

* chore: update pwa example app to jsx extensions

* chore: one more JSX

* feat: make building apps and plugins independent

* chore: update vite dependency location

* fix(deploy): support deploying plugins without an app

* chore: comment

* fix: default config type

* fix: solve clunky exit from start script with ctrl-C

* fix: handle undefined defaults

* fix: leaner caching in dev (wip)

* fix: handling 400+ & 500+ responses

* refactor: move strategies to new file

* fix: dev caching strategy

* refactor: inject `isPlugin` var at bootstrap time

* chore: delete unused static vite config

* chore: performance cost comment

* fix: print build error

* chore: comment

* fix: init boilerplate with .jsx extensions

* refactor: reorganize init boilerplate

* fix: smaller env for SW

* feat: improved logging

* feat: add host option to start command

* refactor: config parsing

* docs: add docs for --force option on start

* chore: improve comment
# [12.0.0-alpha.5](v12.0.0-alpha.4...v12.0.0-alpha.5) (2024-07-25)

### Features

* handle plugins with Vite [LIBS-610] ([#863](#863)) ([ca5be0d](ca5be0d))
…BS-645] (#867)

* feat: add direction: 'auto' to new apps' config

* feat: import locales from boilerplate entrypoint
# [12.0.0-alpha.6](v12.0.0-alpha.5...v12.0.0-alpha.6) (2024-08-12)

### Features

* **init:** set direction: 'auto' and import locales for new apps [LIBS-645] ([#867](#867)) ([4eda4a9](4eda4a9))
feat: hmr for .js files; fix file server for fonts [LIBS-635]
# [12.0.0-alpha.7](v12.0.0-alpha.6...v12.0.0-alpha.7) (2024-08-16)

### Bug Fixes

* allow serving files from cwd node_modules ([0233949](0233949))

### Features

* enable HMR for .js files ([5f4683c](5f4683c))
* fix: missing base URL from env; refactor env and shell bootstrap

* fix: add public URL default

* fix: new env format for start script

* chore: clean up unused files

* fix: base url prefix

* refactor: parameter format

* chore: last comment
# [12.0.0-alpha.8](v12.0.0-alpha.7...v12.0.0-alpha.8) (2024-08-27)

### Bug Fixes

* base url env & refactor [LIBS-635] ([#872](#872)) ([7f19259](7f19259))
# [12.0.0-alpha.9](v12.0.0-alpha.8...v12.0.0-alpha.9) (2024-08-27)

### Bug Fixes

* injectPrecacheManifest warning logging ([a0d266e](a0d266e))
# [12.0.0-alpha.10](v12.0.0-alpha.9...v12.0.0-alpha.10) (2024-08-28)

### Bug Fixes

* use strings for 'boolean' env vars ([eaf5e66](eaf5e66))
* feat: jsx-migration script (wip)

* fix: deps

* feat: logging

* fix: handle extensionless and duplicate imports

* fix: avoid IDing types as JSX, handle .component files better, flag for extensionless imports

* refactor: use babel for AST parsing

* fix: better logging

* fix: improve d2 config handling

* feat: handle export statements

* feat: custom glob pattern

* chore: clean-up

* docs: jsx-migration

* refactor: add script to 'migrate' namespace

* fix: reporter text styles

* fix: update caniuse-lite to remove warning

* docs: update for new namespace
# [12.0.0-alpha.11](v12.0.0-alpha.10...v12.0.0-alpha.11) (2024-08-29)

### Features

* jsx migration script ([#869](#869)) ([7764f49](7764f49))
# [12.0.0-alpha.12](v12.0.0-alpha.11...v12.0.0-alpha.12) (2024-08-30)

### Bug Fixes

* update workbox deps to avoid deprecation warnings ([9a81c4a](9a81c4a))
# [12.0.0-alpha.13](v12.0.0-alpha.12...v12.0.0-alpha.13) (2024-09-02)

### Bug Fixes

* increase precache max file size to 3 MB ([b20ed22](b20ed22))
KaiVandivier and others added 13 commits November 6, 2024 15:38
# [12.0.0-alpha.22](v12.0.0-alpha.21...v12.0.0-alpha.22) (2024-11-06)

### Bug Fixes

* **publishVersion:** fix maxBodyLength when uploading to appHub ([c5abfd1](c5abfd1))
* add @babel/plugin-syntax-dynamic-import as a direct dependency ([#886](#886)) ([8c5ef0c](8c5ef0c))
* bump typescript version used in app shell ([8ebb2e8](8ebb2e8))
* provide fallback api version [LIBS-683] ([#877](#877)) ([dc7bdfa](dc7bdfa))
* update app-runtime dependency ([74a2165](74a2165))
* chore: remove todos

* chore: yarn

---------

Co-authored-by: Kai Vandivier <kpvandivier@gmail.com>
# [12.0.0-alpha.23](v12.0.0-alpha.22...v12.0.0-alpha.23) (2024-11-08)

### Bug Fixes

* **service-worker:** handle undefined config vars in injectPrecacheManifest ([a90a4e0](a90a4e0))
* fix: normalize to .js extensions when compiling libraries

* chore: move logging to after path normalization

* chore: log pretty-printed relative paths
# [12.0.0-alpha.24](v12.0.0-alpha.23...v12.0.0-alpha.24) (2024-11-21)

### Bug Fixes

* normalize to .js extensions when compiling libraries ([#893](#893)) ([58b33a8](58b33a8))
# [12.0.0-alpha.25](v12.0.0-alpha.24...v12.0.0-alpha.25) (2024-11-21)

### Bug Fixes

* clear only required build dirs ([#894](#894)) ([179305f](179305f))
* fix(deps): upgrade app-runtime and ui

* fix(deps): add @testing-library/dom to dev deps

* docs: mention @testing-library/dom requirement

* fix(deps): upgrade UI to remove unnecessary testing-library prod dep
# [12.0.0-alpha.26](v12.0.0-alpha.25...v12.0.0-alpha.26) (2024-12-06)

### Bug Fixes

* **deps:** upgrade app-runtime and ui ([#895](#895)) ([8ed0ec3](8ed0ec3))
@KaiVandivier KaiVandivier requested a review from a team December 9, 2024 14:22
docs/_sidebar.md Outdated Show resolved Hide resolved
cli/src/commands/init.js Outdated Show resolved Hide resolved
KaiVandivier and others added 8 commits December 10, 2024 15:00
…898)

* refactor: use css modules in example app

* chore: remove finished todos in makeViteConfig

* chore: add jira issues to todos

* refactor: simplify hosted location string ternary

* refactor: remove always truthy condition

* fix(plugin): remove resize observer on cleanup

* chore: import order

* fix: consistent ref

* chore: style
* fix(init): point bootstrap script to master

* chore: yarn (ugh why are release commits messing with this?)
# [12.0.0-alpha.27](v12.0.0-alpha.26...v12.0.0-alpha.27) (2024-12-10)

### Bug Fixes

* **init:** update bootstrap script branch ([#896](#896)) ([33c261a](33c261a))
* **plugin:** clean up resize observer and handle sonarqube warnings ([#898](#898)) ([f113dd5](f113dd5))
* chore: upgrade react to 18 in example apps

* ci: node 14 on publish

* chore: revert "ci: node 14 on publish"

This reverts commit 3eb746d.
# [12.0.0-alpha.28](v12.0.0-alpha.27...v12.0.0-alpha.28) (2024-12-11)

### Bug Fixes

* **deps:** upgrade react to 18 in example apps ([#900](#900)) ([7fd16d7](7fd16d7))
# [12.0.0-alpha.29](v12.0.0-alpha.28...v12.0.0-alpha.29) (2024-12-11)

### Bug Fixes

* **deps:** use npm v6 before publishing ([01ad502](01ad502))
Copy link

sonarcloud bot commented Dec 11, 2024

Copy link
Member

@amcgee amcgee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉

@KaiVandivier KaiVandivier merged commit 372b888 into master Dec 13, 2024
18 checks passed
@KaiVandivier KaiVandivier deleted the alpha branch December 13, 2024 13:01
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants