Skip to content

chore update uuid dependency #24

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

Merged
merged 4 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rotten-spoons-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@journeyapps/react-native-quick-sqlite': patch
---

Updated UUID dependency.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/lodash": "^4.14.200",
"@types/uuid": "3.4.0",
"@types/uuid": "^9.0.1",
"react": "18.2.0",
"react-native": "0.71.0",
"react-native-builder-bob": "^0.18.2",
Expand Down Expand Up @@ -82,6 +82,6 @@
},
"dependencies": {
"lodash": "^4.17.21",
"uuid": "3.4.0"
"uuid": "^9.0.1"
}
}
6 changes: 3 additions & 3 deletions src/setup-open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
QueryResult
} from './types';

import uuid from 'uuid';
import { v4 } from 'uuid';
import _ from 'lodash';
import { enhanceQueryResult } from './utils';
import { DBListenerManagerInternal } from './DBListenerManager';
Expand Down Expand Up @@ -106,7 +106,7 @@ export function setupOpen(QuickSQLite: ISQLite) {
options?: LockOptions,
hooks?: LockHooks
): Promise<T> => {
const id = uuid.v4(); // TODO maybe do this in C++
const id = v4(); // TODO maybe do this in C++
// Wrap the callback in a promise that will resolve to the callback result
return new Promise<T>((resolve, reject) => {
// Add callback to the queue for timing
Expand Down Expand Up @@ -236,4 +236,4 @@ export function setupOpen(QuickSQLite: ISQLite) {
};
}
};
}
}
4 changes: 2 additions & 2 deletions tests/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ PODS:
- React-debug
- react-native-get-random-values (1.9.0):
- React-Core
- react-native-quick-sqlite (1.1.2):
- react-native-quick-sqlite (1.1.3):
- powersync-sqlite-core (~> 0.1.6)
- React
- React-callinvoker
Expand Down Expand Up @@ -1365,7 +1365,7 @@ SPEC CHECKSUMS:
React-logger: 0a57b68dd2aec7ff738195f081f0520724b35dab
React-Mapbuffer: 63913773ed7f96b814a2521e13e6d010282096ad
react-native-get-random-values: dee677497c6a740b71e5612e8dbd83e7539ed5bb
react-native-quick-sqlite: a31ed88c8c78722f9eb6f959161ffb783bc6436e
react-native-quick-sqlite: 2b663b5762b255d2047545fc95f58b0c246c265c
react-native-safe-area-context: 0ee144a6170530ccc37a0fd9388e28d06f516a89
React-nativeconfig: d7af5bae6da70fa15ce44f045621cf99ed24087c
React-NativeModulesApple: 0123905d5699853ac68519607555a9a4f5c7b3ac
Expand Down
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"tailwindcss": "^3.2.4",
"typeorm": "^0.3.11",
"util": "^0.12.5",
"uuid": "3.4.0"
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
11 changes: 3 additions & 8 deletions tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6267,10 +6267,10 @@ react-native-quick-base64@^2.0.5:
base64-js "^1.5.1"

react-native-quick-sqlite@./..:
version "1.1.2"
version "1.1.3"
dependencies:
lodash "^4.17.21"
uuid "3.4.0"
uuid "^9.0.1"

[email protected]:
version "4.8.2"
Expand Down Expand Up @@ -7411,11 +7411,6 @@ [email protected]:
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==

[email protected]:
version "3.4.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==

uuid@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b"
Expand All @@ -7426,7 +7421,7 @@ uuid@^8.0.0, uuid@^8.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

uuid@^9.0.0:
uuid@^9.0.0, uuid@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30"
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==
Expand Down
18 changes: 8 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1810,12 +1810,10 @@
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8"
integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==

"@types/[email protected]":
version "3.4.0"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-3.4.0.tgz#91639516fbb892ed3737a2bdc1b030d02b4a09c1"
integrity sha512-Vd+WmnrQKrrfVJ+9LWyOWqlBQJFsfi8rhKRm3ag3ZrOjY5SmzZkGmxbkgRIk9jpZt4dpvE21cmbBSp1dCV7/fw==
dependencies:
"@types/node" "*"
"@types/uuid@^9.0.1":
version "9.0.8"
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.8.tgz#7545ba4fc3c003d6c756f651f3bf163d8f0f29ba"
integrity sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==

"@types/yargs-parser@*":
version "21.0.3"
Expand Down Expand Up @@ -5872,10 +5870,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==

uuid@3.4.0:
version "3.4.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
uuid@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30"
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==

validate-npm-package-license@^3.0.1:
version "3.0.4"
Expand Down
Loading