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

Thoughts on v8.0 #885

Open
uNmAnNeR opened this issue Jun 23, 2023 · 1 comment
Open

Thoughts on v8.0 #885

uNmAnNeR opened this issue Jun 23, 2023 · 1 comment
Milestone

Comments

@uNmAnNeR
Copy link
Owner

uNmAnNeR commented Jun 23, 2023

Core

  • try custom history tracking for better handling undo/redo actions (undo / redo #981)
  • improve IME support
  • Pattern mask: pass root autofix to the blocks
  • remove skip from ChangeDetails, add skip, break, overwrite to new class CharChangeDetails. Use break in number mask instead of overriding doSkipInvalid

Date mask:

  • remove default mask pattern
  • support common definitions (yyyy, MM, dd, HH (hh), mm, ss, SSS) out of the box

RegExp mask:

Drop Vue2 support (https://blog.vuejs.org/posts/vue-2-eol)
Drop react-native-imask plugin
Put /esm and /cjs into /dist

@uNmAnNeR uNmAnNeR added this to the v8.0.0 milestone Jun 23, 2023
@Shyam-Chen
Copy link

Shyam-Chen commented Jan 26, 2024

Do you think to rename the default export from the Vue plugin? In Vue 3, it's mostly done using <script setup>.

<script lang="ts" setup>
// import { IMaskComponent } from 'vue-imask';
// renamed to
import { IMaskInput } from 'vue-imask';
</script>

<template>
  <IMaskInput />
</template>
<script lang="ts" setup>
// import { IMaskDirective } from 'vue-imask';
// renamed to
import { vImask } from 'vue-imask';
</script>

<template>
   <input v-imask="mask" :value="value">
</template>
<script lang="ts" setup>
// no change
import { useIMask } from 'vue-imask';

const { el, masked } = useIMask({});
</script>

<template>
  <input ref="el">
</template>

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

No branches or pull requests

2 participants