@plutocms/utils 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.1](https://github.com/plutocms/utils/compare/v0.1.0...v0.1.1) (2026-09-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * release the ref->shallowRef useSidebarAdminActions fix ([cac2b50](https://github.com/plutocms/utils/commit/cac2b509e95abae386c48a121e8fc434d328634d))
9
+
3
10
  ## [0.1.0](https://github.com/plutocms/utils/compare/v0.0.1-alpha.7...v0.1.0) (2026-07-08)
4
11
 
5
12
 
@@ -1,10 +1,9 @@
1
1
  import type { NavigationMenuItem } from '@nuxt/ui'
2
2
 
3
- const actions = ref<NavigationMenuItem[]>([])
3
+ const actions = shallowRef<NavigationMenuItem[]>([])
4
4
 
5
5
  export function useSidebarAdminActions() {
6
6
  const addAction = (action: NavigationMenuItem[]) => {
7
- // @ts-expect-error - Type instantiation is excessively deep and possibly infinite.
8
7
  const existingLabels = new Set(actions.value.map((a) => a.label))
9
8
  const newActions = action.filter((a) => !existingLabels.has(a.label))
10
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plutocms/utils",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "",
6
6
  "author": "Victor Ribeiro",
7
7
  "license": "MIT",
@@ -43,5 +43,8 @@
43
43
  "vue": "^3.5.28",
44
44
  "vue-router": "^5.0.2",
45
45
  "vue-tsc": "^3.3.7"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
46
49
  }
47
50
  }
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- # EditorConfig is awesome: https://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- [*]
7
- indent_style = space
8
- indent_size = 2
9
- end_of_line = lf
10
- charset = utf-8
11
- trim_trailing_whitespace = true
12
- insert_final_newline = true
@@ -1,10 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: bun
4
- directory: /
5
- schedule:
6
- interval: weekly
7
- - package-ecosystem: github-actions
8
- directory: /
9
- schedule:
10
- interval: weekly
@@ -1,34 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- pull_request:
5
- push:
6
- branches: [main]
7
-
8
- permissions:
9
- contents: read
10
-
11
- jobs:
12
- ci:
13
- name: Lint, typecheck & build
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout
17
- uses: actions/checkout@v4
18
-
19
- - name: Setup Bun
20
- uses: oven-sh/setup-bun@v2
21
- with:
22
- bun-version: latest
23
-
24
- - name: Install dependencies
25
- run: bun install --frozen-lockfile
26
-
27
- - name: Lint
28
- run: bun run lint
29
-
30
- - name: Typecheck
31
- run: bun run typecheck
32
-
33
- - name: Build
34
- run: bun run build
@@ -1,56 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches: [main]
6
-
7
- concurrency:
8
- group: release
9
- cancel-in-progress: false
10
-
11
- jobs:
12
- release-please:
13
- name: Release Please
14
- runs-on: ubuntu-latest
15
- permissions:
16
- contents: write
17
- pull-requests: write
18
- outputs:
19
- release_created: ${{ steps.release.outputs.release_created }}
20
- steps:
21
- - name: Run release-please
22
- id: release
23
- uses: googleapis/release-please-action@v4
24
- with:
25
- token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
26
-
27
- publish:
28
- name: Publish to npm
29
- needs: release-please
30
- if: ${{ needs.release-please.outputs.release_created }}
31
- runs-on: ubuntu-latest
32
- permissions:
33
- id-token: write # npm provenance via OIDC trusted publishing
34
- contents: read
35
- steps:
36
- - name: Checkout
37
- uses: actions/checkout@v4
38
-
39
- - name: Setup Bun
40
- uses: oven-sh/setup-bun@v2
41
- with:
42
- bun-version: latest
43
-
44
- - name: Setup Node.js
45
- uses: actions/setup-node@v4
46
- with:
47
- node-version: 24
48
- registry-url: https://registry.npmjs.org/
49
-
50
- - name: Install dependencies
51
- run: bun install --frozen-lockfile
52
-
53
- - name: Publish to npm
54
- # No token needed — OIDC trusted publishing handles auth automatically.
55
- # Provenance is also generated automatically; no --provenance flag required.
56
- run: npm publish --access public
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "tabWidth": 2,
3
- "useTabs": false,
4
- "singleQuote": true,
5
- "semi": false,
6
- "trailingComma": "es5",
7
- "arrowParens": "always",
8
- "endOfLine": "lf"
9
- }
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0"
3
- }
@@ -1,14 +0,0 @@
1
- {
2
- "recommendations": [
3
- "Vue.volar",
4
- "EditorConfig.EditorConfig",
5
- "esbenp.prettier-vscode",
6
- "dbaeumer.vscode-eslint",
7
- "bradlc.vscode-tailwindcss",
8
- "antfu.goto-alias",
9
- "antfu.iconify",
10
- "streetsidesoftware.code-spell-checker",
11
- "usernamehw.errorlens"
12
- ],
13
- "unwantedRecommendations": ["octref.vetur"]
14
- }
@@ -1,47 +0,0 @@
1
- {
2
- "css.lint.unknownAtRules": "ignore",
3
- "less.lint.unknownAtRules": "ignore",
4
- "scss.lint.unknownAtRules": "ignore",
5
- "files.associations": {
6
- "*.css": "tailwindcss"
7
- },
8
-
9
- "editor.codeActionsOnSave": {
10
- "source.fixAll": "never",
11
- "source.fixAll.eslint": "explicit"
12
- },
13
- "editor.defaultFormatter": "esbenp.prettier-vscode",
14
- "editor.formatOnSave": true,
15
- "editor.gotoLocation.multipleDefinitions": "goto",
16
- "editor.quickSuggestions": {
17
- "strings": true
18
- },
19
-
20
- "eslint.useFlatConfig": true,
21
- "eslint.validate": [
22
- "javascript",
23
- "javascriptreact",
24
- "typescript",
25
- "typescriptreact",
26
- "vue",
27
- "html",
28
- "markdown",
29
- "json",
30
- "jsonc",
31
- "yaml",
32
- "toml",
33
- "xml",
34
- "gql",
35
- "graphql",
36
- "astro",
37
- "svelte",
38
- "css",
39
- "less",
40
- "scss",
41
- "pcss",
42
- "postcss",
43
- "mjs"
44
- ],
45
-
46
- "vue.inlayHints.missingProps": true
47
- }
@@ -1,16 +0,0 @@
1
- {
2
- "Vue Component": {
3
- "prefix": ["vue", "tem", "template", "setup"],
4
- "body": [
5
- "<script setup lang=\"ts\">",
6
- "$1",
7
- "</script>",
8
- "",
9
- "<template>",
10
- " <div>$2</div>",
11
- "</template>",
12
- "",
13
- ],
14
- "description": "Vue Component (Script first)",
15
- },
16
- }