Skip to content

Commit

Permalink
feat(omi): using v1.0.2 of reactive-signal
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Jan 20, 2024
1 parent 1508dc0 commit e3d8ad7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions packages/omi/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/omi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omi",
"version": "7.6.0",
"version": "7.6.1",
"scripts": {
"start": "vite",
"dev-vite": "vite",
Expand Down Expand Up @@ -53,7 +53,7 @@
"license": "MIT",
"dependencies": {
"construct-style-sheets-polyfill": "3.0.1",
"reactive-signal": "^1.0.0-alpha0",
"reactive-signal": "^1.0.2",
"weakmap-polyfill": "2.0.4"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/omi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export { Signal } from 'reactive-signal'
export { css } from './css-tag'
export { mixin, globalCSS } from './options'
export { registerDirective } from './directive'
export const version = '7.6.0'
export const version = '7.6.1'
4 changes: 2 additions & 2 deletions packages/omi/test/reactivity.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ describe('signal', () => {
batch(() => {
count.value = 1
})
expect(double.value).toBe(0)
expect(triple.value).toBe(0)
expect(double.value).toBe(2)
expect(triple.value).toBe(3)
})

it('should get correct value', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/omi/test/signal.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Signal', () => {
testSignal.value = 20
testSignal.value = 30
})
expect(testValue).toBe(10)
expect(testValue).toBe(30)
})

it('should set and get active component correctly', () => {
Expand Down

0 comments on commit e3d8ad7

Please sign in to comment.