Skip to content

fix(deps): pin apexcharts as direct dep#155

Merged
rubenvdlinde merged 3 commits into
betafrom
fix/add-apexcharts-direct-dep
May 9, 2026
Merged

fix(deps): pin apexcharts as direct dep#155
rubenvdlinde merged 3 commits into
betafrom
fix/add-apexcharts-direct-dep

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

PR #149's `--legacy-peer-deps` skips `apexcharts` (a peer of `vue-apexcharts`), breaking the build:

```
Could not load apexcharts.min.js: ENOENT: no such file or directory
```

Adding `apexcharts: ^4.0.0` (matching `vue-apexcharts`'s peer constraint of `>=4.0.0`) as a direct dep restores the install under `--legacy-peer-deps`. Also aligns with project memory ("Shared deps via nextcloud-vue") that lists apexcharts as a dep this lib should provide.

Verified locally with the same env CI uses:

  • `npm ci --legacy-peer-deps`: clean
  • `npm run build`: clean
  • `npm test`: 646/646 green

…s it

PR #149 added `--legacy-peer-deps` to `npm ci` to work around peer-dep
resolution differences between npm 10 and npm 11. That flag skips ALL
peer-dep auto-installs, which means `apexcharts` (a peer dep of
`vue-apexcharts`) is now missing at build time:

  Could not load /home/runner/.../node_modules/apexcharts/dist/apexcharts.min.js:
    ENOENT: no such file or directory

`vue-apexcharts`'s peer is `apexcharts >=4.0.0`. Adding it as a direct
dep with `^4.0.0` constraint:
- Restores build under `--legacy-peer-deps`
- Aligns with the project memory rule ("Shared deps via nextcloud-vue")
  that lists apexcharts as something nextcloud-vue is supposed to provide

Verified locally:
- `npm ci --legacy-peer-deps`: clean
- `npm run build`: clean (only the pre-existing codemirror externals
  warning, which is bundled at runtime by the consumer)
- `npm test`: 646/646 green
PR #149 added `--legacy-peer-deps` to release.yml's npm ci to skip
the npm 11 peer-dep ERESOLVE failure on @vue/eslint-config-typescript.
Code Quality (which gates PR merges) was missed and still uses bare
`npm ci`, so any new PR fails Frontend Quality with the same conflict
the release flow already works around.

Bring code-quality.yml in line.
PR #144 added the `liveUpdatesPlugin` export to src/index.js but did
not include the corresponding doc page that scripts/check-docs.js
requires for every public store-plugin export. CI's docs-coverage gate
on every PR is now blocked on this missing page.

The doc follows the same shape as the other store-plugin docs
(audit-trails.md, lifecycle.md, etc.): usage example, plugin options
table, contributed state/getters/actions, cleanup notes (with an
explicit Vue 2.7 Options API caveat), in-flight dedup explanation, and
a transport section covering the @nextcloud/notify_push → polling
fallback ladder.

Verified locally with `npm run check:docs` — all 110 exports
documented, all accuracy checks pass.
@rubenvdlinde rubenvdlinde merged commit 66b2176 into beta May 9, 2026
1 of 2 checks passed
@rubenvdlinde rubenvdlinde deleted the fix/add-apexcharts-direct-dep branch May 9, 2026 12:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.0.0-beta.5 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant