Skip to content

Commit

Permalink
feat: upgraded packages to latest packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Sep 19, 2024
1 parent 4557e6f commit cd167ed
Show file tree
Hide file tree
Showing 11 changed files with 2,351 additions and 2,755 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.cjs

This file was deleted.

3 changes: 1 addition & 2 deletions .playground/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
</div>
</template>

<script setup>
</script>
<script setup></script>

<style lang="postcss">
.nuxt-app {
Expand Down
54 changes: 19 additions & 35 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,109 +2,93 @@

## [2.9.1](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.9.0...v2.9.1) (2024-08-09)


### Bug Fixes

* renamed env for debug mode and made default to false ([f5e19a2](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/f5e19a2c8e65431cfeccea8bd34ca6e599c29e4d))
- renamed env for debug mode and made default to false ([f5e19a2](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/f5e19a2c8e65431cfeccea8bd34ca6e599c29e4d))

## [2.9.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.8.0...v2.9.0) (2024-07-09)


### Features

* added env-controlled debug mode ([b3a0651](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/b3a065104edec5e62eaed1f7324ad618dfa62951))
* added overwrites to uno ([992b7b5](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/992b7b58320645d4f8fcb2bdfdd8a686927e2549))
- added env-controlled debug mode ([b3a0651](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/b3a065104edec5e62eaed1f7324ad618dfa62951))
- added overwrites to uno ([992b7b5](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/992b7b58320645d4f8fcb2bdfdd8a686927e2549))

## [2.8.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.7.0...v2.8.0) (2024-07-03)


### Features

* add default compression to assets ([0ceffb7](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/0ceffb7a86e1514ac321d23c86957348f59c07ed))

- add default compression to assets ([0ceffb7](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/0ceffb7a86e1514ac321d23c86957348f59c07ed))

### Bug Fixes

* proper default value fallback for items in useLimboForm ([9b4d17e](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/9b4d17ec01649a3da24d791ce5b00cb10a517730))
- proper default value fallback for items in useLimboForm ([9b4d17e](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/9b4d17ec01649a3da24d791ce5b00cb10a517730))

## [2.7.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.6.2...v2.7.0) (2024-06-10)


### Features

* added helper functions ([888f1a7](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/888f1a77899163316305dfc1badd342b8dfbaffe))

- added helper functions ([888f1a7](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/888f1a77899163316305dfc1badd342b8dfbaffe))

### Bug Fixes

* made GUID and number id composables non-reliant on useId ([bcfbe06](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/bcfbe063dce459b3d56b3be6626e83ac306d48f1))
- made GUID and number id composables non-reliant on useId ([bcfbe06](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/bcfbe063dce459b3d56b3be6626e83ac306d48f1))

## [2.6.2](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.6.1...v2.6.2) (2024-05-29)


### Bug Fixes

* improved app history composable slightly ([d52335c](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/d52335cc2e9cae69382db1a7f1fc62af3b77dc45))
- improved app history composable slightly ([d52335c](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/d52335cc2e9cae69382db1a7f1fc62af3b77dc45))

## [2.6.1](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.6.0...v2.6.1) (2024-05-03)


### Bug Fixes

* added second argument and warning to useAttrs- functions ([9e658d2](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/9e658d2c2b001d930cda99e813d631ebc973f7af))
- added second argument and warning to useAttrs- functions ([9e658d2](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/9e658d2c2b001d930cda99e813d631ebc973f7af))

## [2.6.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.5.0...v2.6.0) (2024-03-21)


### Features

* added useAttrsExcept and useAttrsSome ([64bde25](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/64bde258ad88595fa2355ab17f1183e61f197514))
* updated packages ([ea8e17e](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/ea8e17e080c9ef0777c63745ce0b8f972275fa5a))
- added useAttrsExcept and useAttrsSome ([64bde25](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/64bde258ad88595fa2355ab17f1183e61f197514))
- updated packages ([ea8e17e](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/ea8e17e080c9ef0777c63745ce0b8f972275fa5a))

## [2.5.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.4.0...v2.5.0) (2024-02-27)


### Features

* added address rule to preflight to not make italic ([6594f52](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/6594f529abf183888d69aa7b042a2da2f5616470))
- added address rule to preflight to not make italic ([6594f52](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/6594f529abf183888d69aa7b042a2da2f5616470))

## [2.4.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.3.0...v2.4.0) (2024-02-08)


### Features

* added composable `useEventBus` ([977f02a](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/977f02a8feea15077f899b6859ca8e3be4e2f16f))
- added composable `useEventBus` ([977f02a](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/977f02a8feea15077f899b6859ca8e3be4e2f16f))

## [2.3.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.2.2...v2.3.0) (2024-02-05)


### Features

* various ID generation utilities ([dd233b6](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/dd233b6c3a80275fd9fffa6b958ab7b0bf8fce77))

- various ID generation utilities ([dd233b6](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/dd233b6c3a80275fd9fffa6b958ab7b0bf8fce77))

### Bug Fixes

* return value directly for ids ([e420343](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/e42034364dacf88037e640e265e8775254bb6ce0))
- return value directly for ids ([e420343](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/e42034364dacf88037e640e265e8775254bb6ce0))

## [2.2.2](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.2.1...v2.2.2) (2024-01-30)


### Bug Fixes

* better defaultValue setup ([4596ca6](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/4596ca64d9d9ddd804f0d922defc51423e1a643c))
* changed reference to preset-wind ([3393c27](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/3393c27a31b6363fffa6a69514c7628e50c9be48))
- better defaultValue setup ([4596ca6](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/4596ca64d9d9ddd804f0d922defc51423e1a643c))
- changed reference to preset-wind ([3393c27](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/3393c27a31b6363fffa6a69514c7628e50c9be48))

## [2.2.1](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/v2.2.0...v2.2.1) (2024-01-16)


### Bug Fixes

* allow release-please to build ([1619ff1](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/1619ff12986e246ff3c721c57117b00cf4125a96))
- allow release-please to build ([1619ff1](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/1619ff12986e246ff3c721c57117b00cf4125a96))

## [2.2.0](https://github.com/limbo-works/Limbo.Nuxt.Core/compare/2.1.0...v2.2.0) (2024-01-11)


### Features

* added release-please ([0ee8215](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/0ee8215f24b6ca592e3c59abf55a28aba9b9552b))
- added release-please ([0ee8215](https://github.com/limbo-works/Limbo.Nuxt.Core/commit/0ee8215f24b6ca592e3c59abf55a28aba9b9552b))
30 changes: 18 additions & 12 deletions assets/js/unocss/preset-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function presetCore(options = {}) {
const ruleOverwrites = [
// Rules for avoiding 'c-' and 'color-' for setting colors
{
test: (rule) => {
test: (rule) => {
return String(rule?.[0]).includes('color|c');
},
overwrite: (oldRule) => {
Expand All @@ -29,22 +29,28 @@ function presetCore(options = {}) {

const newRule = [...oldRule];
const oldRegExp = String(oldRule[0]).replace('|color|c', '');
newRule[0] = new RegExp(oldRegExp.substring(1, oldRegExp.length - 1));
newRule[0] = new RegExp(
oldRegExp.substring(1, oldRegExp.length - 1)
);

return newRule;
}
},
},
// Rules from options
...(options.ruleOverwrites || [])
...(options.ruleOverwrites || []),
];
wind.rules = wind.rules?.map?.(rule => {
rule && ruleOverwrites?.forEach?.(overwriter => {
if (rule && overwriter?.test?.(rule)) {
rule = overwriter?.overwrite?.(rule);
}
});
return rule;
})?.filter?.(rule => rule) ?? [];
wind.rules =
wind.rules
?.map?.((rule) => {
rule &&
ruleOverwrites?.forEach?.((overwriter) => {
if (rule && overwriter?.test?.(rule)) {
rule = overwriter?.overwrite?.(rule);
}
});
return rule;
})
?.filter?.((rule) => rule) ?? [];

// Make the breakpoints based on the breakpoints
const breakpoints = Object.entries(options.breakpoints || {}).reduce(
Expand Down
5 changes: 4 additions & 1 deletion composables/useAttrsExcept.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ export default function useAttrsExcept(excludes, $attrs) {
const attrs = $attrs || useAttrs();
const attrsToReturn = reactive({});

!$attrs && console.warn('useAttrsExcept() needs a second argument, an attrs object, to function properly. UseAttrs() causes problems.')
!$attrs &&
console.warn(
'useAttrsExcept() needs a second argument, an attrs object, to function properly. UseAttrs() causes problems.'
);

watch(
() => attrs,
Expand Down
5 changes: 4 additions & 1 deletion composables/useAttrsSome.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ export default function useAttrsSome(subset, $attrs) {
const attrs = $attrs || useAttrs();
const attrsToReturn = reactive({});

!$attrs && console.warn('useAttrsSome() needs a second argument, an attrs object, to function properly. UseAttrs() causes problems.')
!$attrs &&
console.warn(
'useAttrsSome() needs a second argument, an attrs object, to function properly. UseAttrs() causes problems.'
);

watch(
() => attrs,
Expand Down
4 changes: 2 additions & 2 deletions composables/useEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function useEventListener(...args) {
typeof options === 'boolean'
? { capture: options }
: typeof options === 'object'
? { ...options }
: {};
? { ...options }
: {};
const { immediate } = options;
delete options.immediate;

Expand Down
4 changes: 2 additions & 2 deletions composables/useLimboForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ function setFieldDefaults(fields, options) {
field.defaultValue =
'value' in field
? field.value
: field.items?.find((item) => item.checked)?.value ??
field.items?.find((item) => !item.value)?.value;
: (field.items?.find((item) => item.checked)?.value ??
field.items?.find((item) => !item.value)?.value);
}

// Make sure each field has a value
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import config from './node_modules/@limbo-works/lint-configs/eslint.config.mjs';
export default [...config];
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
},
"dependencies": {
"@limbo-works/image": "^1.0.1",
"@limbo-works/lint-configs": "^1.0.2",
"@nuxtjs/fontaine": "^0.4.1",
"@pinia/nuxt": "^0.5.1",
"@unocss/preset-rem-to-px": "^0.58.6",
"@unocss/preset-wind": "^0.58.6",
"@vitejs/plugin-vue": "^5.0.4",
"@limbo-works/lint-configs": "^2.0.2",
"@nuxtjs/fontaine": "^0.4.3",
"@pinia/nuxt": "^0.5.4",
"@unocss/preset-rem-to-px": "^0.62.4",
"@unocss/preset-wind": "^0.62.4",
"@vitejs/plugin-vue": "^5.1.4",
"clone-deep": "^4.0.1",
"deepmerge": "^4.2.2",
"dotenv": "^16.4.5",
"h3": "^1.11.1",
"h3": "^1.12.0",
"nuxt-proxy": "^0.4.1",
"pinia": "^2.1.7",
"postcss-nesting": "^12.1.0",
"pinia": "^2.2.2",
"postcss-nesting": "^13.0.0",
"vite-svg-loader": "^5.1.0"
},
"devDependencies": {
"nuxt": "^3.11.1"
"nuxt": "^3.13.2"
}
}
Loading

0 comments on commit cd167ed

Please sign in to comment.