Skip to content

Update dependency omi to v7#2293

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/omi-7.x
Closed

Update dependency omi to v7#2293
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/omi-7.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Oct 21, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
omi (source) 6.25.23 -> 7.7.13 age adoption passing confidence

Release Notes

Tencent/omi (omi)

v7.7.13

Compare Source

v7.7.12

Compare Source

v7.7.11

Compare Source

v7.7.10

Compare Source

v7.7.9

Compare Source

v7.7.8

Compare Source

v7.7.7

Compare Source

v7.7.6

Compare Source

v7.7.5

Compare Source

v7.7.4

Compare Source

v7.7.3

Compare Source

v7.7.2

Compare Source

v7.7.1

Compare Source

v7.7.0

Compare Source

v7.6.18

Compare Source

v7.6.17

Compare Source

v7.6.16

Compare Source

v7.6.15

Compare Source

v7.6.14

Compare Source

v7.6.13

Compare Source

v7.6.12

Compare Source

v7.6.11

Compare Source

v7.6.10

Compare Source

v7.6.9

Compare Source

v7.6.8

Compare Source

v7.6.7

Compare Source

v7.6.6

Compare Source

v7.6.5

Compare Source

v7.6.4

Compare Source

v7.6.3

Compare Source

v7.6.2

Compare Source

v7.6.1: Using v1.0.2 of reactive-signal

Compare Source

Tencent/omi@e3d8ad7

v7.6.0

Compare Source

v7.5.10

Compare Source

v7.5.9

Compare Source

v7.5.8

Compare Source

v7.5.7

Compare Source

v7.5.6

Compare Source

v7.5.5

Compare Source

v7.5.4

Compare Source

v7.5.3

Compare Source

v7.5.2

Compare Source

v7.5.1

Compare Source

v7.5.0: Function component is supported! 🎉

Compare Source

function ChildComponent(props) {
  return (
    <span>{props.msg}</span>
  )
}

class ParentComponent extends Component {
  render() {
    return (
      <div>
        <ChildComponent msg="omi" />
      </div>
    )
  }
}

v7.4.6

Compare Source

v7.4.5: More concise static props definitions for cross framework use🎉

Compare Source

import { tag, Component, h, bind } from 'omi'

@&#8203;tag('my-counter')
class MyCounter extends Component {
  static props = {
    count: {
      type: Number,
      default: 0,
      changed(newValue, oldValue) {
        this.state.count = newValue
        this.update()
      }
    }
  }

  state = {
    count: null
  }

  install() {
    this.state.count = this.props.count
  }

  @&#8203;bind
  sub() {
    this.state.count--
    this.update()
    this.fire('change', this.state.count)
  }

  @&#8203;bind
  add() {
    this.state.count++
    this.update()
    this.fire('change', this.state.count)
  }

  render() {
    return (
      <>
        <button onClick={this.sub}>-</button>
        <span>{this.state.count}</span>
        <button onClick={this.add}>+</button>
      </>
    )
  }
}

v7.4.4

Compare Source

v7.4.3

Compare Source

v7.4.2

Compare Source

v7.4.1: Using constructor as tag name

Compare Source

import { Button } from './button' 

class MyApp extends Component {
  render() {
    return (
      <Button>test</Button>
    )
  }
}

v7.4.0

Compare Source

v7.3.10

Compare Source

v7.3.9: Lazy definition

Compare Source

If we are writing a component library and need to use tree shaking capabilities,

import { WeButton } from 'ui-lib' 

It could lead to definition failure if Button is not used, as it would be tree-shaken away. Therefore, we need to use Button, for example,

WeButton.define('we-button')

v7.3.8

Compare Source

v7.3.7

Compare Source

v7.3.6

Compare Source

v7.3.5

Compare Source

v7.3.4

Compare Source

v7.3.3

Compare Source

v7.3.2

Compare Source

v7.3.1

Compare Source

v7.3.0: Support for injecting lifecycle into props🎉

Compare Source

<my-el onInstalled={e => console.log('installed')}><my-el>

v7.2.1: Directive 🎉

Compare Source

For Example:

Register AutoAnimate Directive:

import { registerDirective } from 'omi'
import autoAnimate from '@&#8203;formkit/auto-animate'

registerDirective('auto-animate', autoAnimate)

Using Directive:

import { render, signal, tag, Component, h } from 'omi'

const show = signal(false)

@&#8203;tag('my-app')
export class MyApp extends Component {
  render() {
    return (
      <>
        <buttton onClick={() => show.value = !show.value}>Toggle show</buttton>
        <div o-auto-animate >
          {show.value && <h2>Hello o-auto-animate!</h2>}
        </div>
      </>

    )
  }
}

render(<my-app />, document.body)

v7.2.0: Preventing tree shaking

Compare Source

import { Button } from './button' // tree shaking
import './button' // will not tree shaking

class MyApp extends Component {
  render() {
    return (
      <o-button>test</o-buttom>
    )
  }
}
import { Button } from './button' 

class MyApp extends Component {
  render() {
    return (
      {/* will not tree shaking*/ }
      <Button.tagName>test</Button.tagName>
    )
  }
}

v7.1.14

Compare Source

v7.1.13

Compare Source

v7.1.12

Compare Source

v7.1.11

Compare Source

v7.1.10

Compare Source

v7.1.9

Compare Source

v7.1.8

Compare Source

v7.1.7

Compare Source

v7.1.6

Compare Source

v7.1.5

Compare Source

v7.1.4: CSS Prop Supported 🎉 !

Compare Source

Usage
@&#8203;tag('counter-demo')
class CounterDemo extends Component {
  static css = 'span { color: red; }'

  render() {
    return (
      <>
        <button onClick={sub}>-</button>
        <span>{count.value}</span>
        <button onClick={add}>+</button>
      </>
    )
  }
}

@&#8203;tag('my-app')
class MyApp extends Component {

  cssProp: string = ''

  installed(): void {
    setInterval(() => {
      this.cssProp = `span{ font-size: ${Math.floor(Math.random() * 120)}px }`
      this.update()
    }, 500)

  }
  render() {
    return (
      <counter-demo css={this.cssProp || 'span{ color: green !important}'} />
    )
  }
}

企业微信截图_3f6d7888-2bac-4371-abe1-8552a1838538

v7.1.3

Compare Source

v7.1.2: OMI 7.1.2 🎉

Compare Source

v7.1.1

Compare Source

v7.1.0: OMI 7.1 🎉

Compare Source

  • Support bind decorator to automatically bind this
  • Support CSS tag function to generate shared styles

v7.0.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot enabled auto-merge (rebase) October 21, 2023 16:15
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 9 times, most recently from f60dc5a to e6c145d Compare October 28, 2023 10:55
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 7 times, most recently from 9ac3775 to 2c1d385 Compare November 5, 2023 03:27
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 3 times, most recently from cb4164b to e26ee2b Compare November 17, 2023 01:23
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 2 times, most recently from 64a33e7 to 1c48792 Compare December 3, 2023 09:38
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 3 times, most recently from 598915d to 3439fec Compare December 20, 2023 03:25
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 3 times, most recently from 7ecb240 to 590371f Compare January 8, 2024 08:07
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 2 times, most recently from 31f15aa to 111d261 Compare January 9, 2024 17:30
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 3 times, most recently from 28dd57b to cd9b3cc Compare February 29, 2024 17:53
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 8 times, most recently from 779fd07 to 3a548ef Compare March 15, 2024 13:07
@renovate renovate Bot force-pushed the renovate/omi-7.x branch from 3a548ef to 5d677a8 Compare April 1, 2024 03:21
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 2 times, most recently from f2d4773 to 6ffdd87 Compare May 8, 2024 23:13
@renovate renovate Bot force-pushed the renovate/omi-7.x branch 13 times, most recently from 74e84e3 to be9624a Compare June 19, 2024 04:09
@Westbrook
Copy link
Copy Markdown
Collaborator

Out of date.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Aug 6, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 7.x releases. But if you manually upgrade to 7.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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

Successfully merging this pull request may close these issues.

1 participant