Skip to content

Commit 6a26fa9

Browse files
authored
chore(πŸ™): warn on the wgpu shim (#382)
1 parent 70c1571 commit 6a26fa9

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

β€Žpackages/webgpu-shim/package.jsonβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"name": "react-native-wgpu",
3-
"version": "0.5.11",
3+
"version": "0.5.14",
44
"description": "Shim that re-exports react-native-webgpu under its previous package name",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
7-
"types": "lib/typescript/src/index.d.ts",
87
"react-native": "src/index",
98
"source": "src/index",
109
"files": [
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
if (typeof __DEV__ !== "undefined" && __DEV__) {
2+
console.warn(
3+
"[react-native-wgpu] This package has been renamed to 'react-native-webgpu'. " +
4+
"The 'react-native-wgpu' shim is deprecated and will be removed in a future release. " +
5+
"Please install 'react-native-webgpu' and update your imports.",
6+
);
7+
}
8+
19
export * from "react-native-webgpu";

β€Žpackages/webgpu/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-webgpu",
3-
"version": "0.5.13",
3+
"version": "0.5.14",
44
"description": "React Native WebGPU",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
Β (0)