You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Welcome to the surrealdb_wasm project! We're excited to have you as a potential
20
20
21
21
### Project Overview
22
22
23
-
The Flutter SurrealDB WebAssembly (WASM) package is a powerful integration for Flutter, built upon the foundation of [surrealdb.wasm](https://github.com/surrealdb/surrealdb.wasm), the official SurrealDB library for WebAssembly. We value contributions that enhance this project's functionality and maintain its quality.
23
+
The Flutter SurrealDB WebAssembly (WASM) package is a powerful integration for Flutter, built upon the foundation of [surrealdb.wasm](https://github.com/surrealdb/surrealdb.wasm), the WebAssembly engine for the SurrealDB JavaScript SDK. Consequently, the [surrealdb_js](https://pub.dev/packages/surrealdb_js) package will provide an unified API for the WebAssembly engine. We value contributions that enhance this project's functionality and maintain its quality.
24
24
25
25
### Licensing
26
26
@@ -32,10 +32,11 @@ Please review our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing. We
32
32
33
33
### Getting Started
34
34
35
-
1.Clone the repository: `git clone https://github.com/limcheekin/surrealdb_wasm.git`
35
+
1.Fork and clone the repository: https://github.com/limcheekin/surrealdb_wasm/fork
36
36
2. Install dependencies: `flutter pub get`
37
37
3. Set up your development environments:
38
-
-[Download and install Node.js and NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to build `surrealdb_wasm.js` with the `npm run package` command after making changes to [surrealdb.js](https://github.com/limcheekin/surrealdb_wasm/blob/main/assets/wasm/surrealdb/surrealdb.js).
38
+
-[Download and install Node.js and NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) to build `surrealdb_wasm.js` with the `npm run package` command after making changes to [surrealdb.js](https://github.com/limcheekin/surrealdb_wasm/blob/main/assets/wasm/surrealdb/surrealdb.js) file.
39
+
-[Install SurrealDB on Linux](https://surrealdb.com/docs/surrealdb/installation/linux).
39
40
- Download [Chrome Driver](https://chromedriver.chromium.org/downloads) for integration test execution.
Copy file name to clipboardExpand all lines: README.md
+24-25Lines changed: 24 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
6
6
[![License: MIT][license_badge]][license_link]
7
7
8
-
The Flutter SurrealDB WebAssembly (WASM) package is a powerful integration for Flutter, built upon the foundation of [surrealdb.wasm](https://github.com/surrealdb/surrealdb.wasm), the official SurrealDB library for WebAssembly.
8
+
The Flutter SurrealDB WebAssembly (WASM) package is a powerful integration for Flutter, built upon the foundation of [surrealdb.wasm](https://github.com/surrealdb/surrealdb.wasm), the WebAssembly engine for the SurrealDB JavaScript SDK. Consequently, the [surrealdb_js](https://pub.dev/packages/surrealdb_js) package will provide an unified API for the WebAssembly engine.
9
9
10
10
## 🔍 Demo
11
11
@@ -37,33 +37,32 @@ Install it:
37
37
flutter pub get
38
38
```
39
39
40
+
Lastly, add the following code before the `</head>` tag in the `web/index.html` file:
@@ -79,17 +78,17 @@ final created = db.create('person',
79
78
},
80
79
);
81
80
82
-
// created['id']: person:b9eht8bie8abf0vbcfxh
81
+
final id = created['id'].toString();
83
82
final merged = await db.merge(
84
-
created['id'],
83
+
id,
85
84
{
86
85
'marketing': false,
87
86
},
88
87
);
89
88
90
-
final tom = await db.select(created['id']);
89
+
final tom = await db.select(id);
91
90
92
-
final deleted = await db.delete(created['id']);
91
+
final deleted = await db.delete(id);
93
92
```
94
93
95
94
For more code examples, kindly refer to the [integration test](https://github.com/limcheekin/surrealdb_wasm/blob/main/integration_test/surrealdb_wasm_test.dart) and the [example project](https://github.com/limcheekin/surrealdb_wasm/blob/main/example/lib/main.dart).
@@ -115,7 +114,7 @@ For more code examples, kindly refer to the [integration test of transaction](ht
115
114
116
115
## 🧑💼 Contributing
117
116
118
-
Contributions are welcome! Please check out the unimplemented features above, issues on the repository, and feel free to open a pull request.
117
+
Contributions are welcome! Please check out the unimplemented features or issues on the repository, and feel free to open a pull request.
119
118
For more information, please see the [contribution guide](CONTRIBUTING.md).
- Feat: Upgraded to surrealdb.wasm 0.9.0, the official release of wasm module of the surrealdb 1.3.0.
2
-
- Feat: API breaking changes:
3
-
-`db.select()` and `db.query()` that return single result, no longer requiring casting to `List` and retrieval by `.first`.
4
-
- Fix: Catched the error `Encountered a non-object value in array` within the library, preventing it from being exposed to the user. Reported the bug at [surrealdb.wasm#56](https://github.com/surrealdb/surrealdb.wasm/issues/56).
1
+
- Feat: Upgraded surrealdb.wasm to 1.0.0-beta.14.
2
+
- Feat: Integrated with surrealdb_js 1.0.0-beta.14+3 that provide an unified API.
0 commit comments