mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Merge pull request #10088 from appwrite/update-nodejs-17.1.0
Update nodejs 17.1.0
This commit is contained in:
commit
edd7a4ac42
6 changed files with 104 additions and 21 deletions
|
|
@ -217,7 +217,7 @@ return [
|
|||
[
|
||||
'key' => 'cli',
|
||||
'name' => 'Command Line',
|
||||
'version' => '8.1.0',
|
||||
'version' => '8.1.1',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||
'package' => 'https://www.npmjs.com/package/appwrite-cli',
|
||||
'enabled' => true,
|
||||
|
|
@ -250,7 +250,7 @@ return [
|
|||
[
|
||||
'key' => 'nodejs',
|
||||
'name' => 'Node.js',
|
||||
'version' => '17.0.0',
|
||||
'version' => '17.1.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
||||
'enabled' => true,
|
||||
|
|
|
|||
33
composer.lock
generated
33
composer.lock
generated
|
|
@ -4810,16 +4810,16 @@
|
|||
"packages-dev": [
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "0.41.9",
|
||||
"version": "0.41.11",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||
"reference": "61037c1ed9262308cab49c1d760f3278036ab694"
|
||||
"reference": "60122cb613a5a1c82667ecc2217e351654a8d404"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/61037c1ed9262308cab49c1d760f3278036ab694",
|
||||
"reference": "61037c1ed9262308cab49c1d760f3278036ab694",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/60122cb613a5a1c82667ecc2217e351654a8d404",
|
||||
"reference": "60122cb613a5a1c82667ecc2217e351654a8d404",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4855,9 +4855,9 @@
|
|||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"support": {
|
||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.41.9"
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.41.11"
|
||||
},
|
||||
"time": "2025-06-27T10:16:17+00:00"
|
||||
"time": "2025-07-04T09:56:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/annotations",
|
||||
|
|
@ -5084,16 +5084,16 @@
|
|||
},
|
||||
{
|
||||
"name": "laravel/pint",
|
||||
"version": "v1.22.1",
|
||||
"version": "v1.23.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/pint.git",
|
||||
"reference": "941d1927c5ca420c22710e98420287169c7bcaf7"
|
||||
"reference": "9ab851dba4faa51a3c3223dd3d07044129021024"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/pint/zipball/941d1927c5ca420c22710e98420287169c7bcaf7",
|
||||
"reference": "941d1927c5ca420c22710e98420287169c7bcaf7",
|
||||
"url": "https://api.github.com/repos/laravel/pint/zipball/9ab851dba4faa51a3c3223dd3d07044129021024",
|
||||
"reference": "9ab851dba4faa51a3c3223dd3d07044129021024",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -5104,10 +5104,10 @@
|
|||
"php": "^8.2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^3.75.0",
|
||||
"illuminate/view": "^11.44.7",
|
||||
"larastan/larastan": "^3.4.0",
|
||||
"laravel-zero/framework": "^11.36.1",
|
||||
"friendsofphp/php-cs-fixer": "^3.76.0",
|
||||
"illuminate/view": "^11.45.1",
|
||||
"larastan/larastan": "^3.5.0",
|
||||
"laravel-zero/framework": "^11.45.0",
|
||||
"mockery/mockery": "^1.6.12",
|
||||
"nunomaduro/termwind": "^2.3.1",
|
||||
"pestphp/pest": "^2.36.0"
|
||||
|
|
@ -5117,6 +5117,9 @@
|
|||
],
|
||||
"type": "project",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"overrides/Runner/Parallel/ProcessFactory.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"App\\": "app/",
|
||||
"Database\\Seeders\\": "database/seeders/",
|
||||
|
|
@ -5146,7 +5149,7 @@
|
|||
"issues": "https://github.com/laravel/pint/issues",
|
||||
"source": "https://github.com/laravel/pint"
|
||||
},
|
||||
"time": "2025-05-08T08:38:12+00:00"
|
||||
"time": "2025-07-03T10:37:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "matthiasmullie/minify",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
const sdk = require('node-appwrite');
|
||||
|
||||
const client = new sdk.Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
|
||||
const databases = new sdk.Databases(client);
|
||||
|
||||
const result = await databases.upsertDocument(
|
||||
'<DATABASE_ID>', // databaseId
|
||||
'<COLLECTION_ID>', // collectionId
|
||||
'<DOCUMENT_ID>', // documentId
|
||||
{}, // data
|
||||
["read("any")"] // permissions (optional)
|
||||
);
|
||||
|
|
@ -10,5 +10,5 @@ const databases = new sdk.Databases(client);
|
|||
const result = await databases.upsertDocuments(
|
||||
'<DATABASE_ID>', // databaseId
|
||||
'<COLLECTION_ID>', // collectionId
|
||||
[] // documents (optional)
|
||||
[] // documents
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
# Change Log
|
||||
|
||||
## 8.1.1
|
||||
|
||||
* Fix circular dependency issue due to usage of `success` method in `utils.js` file from `parser.js` file
|
||||
* Type generation fixes:
|
||||
* Add ability to generate types directly to a specific file by passing a file path to `appwrite types output_path`, instead of just a directory
|
||||
* Fix non-required attributes to not be null if default value is provided
|
||||
* Fix `Models` import error
|
||||
* Improve formatting and add auto-generated comments
|
||||
|
||||
## 8.1.0
|
||||
|
||||
* Add multi-region support to `init` command
|
||||
|
|
|
|||
|
|
@ -1,13 +1,68 @@
|
|||
# Change Log
|
||||
|
||||
## 17.1.0
|
||||
|
||||
* Add `upsertDocument` method
|
||||
* Add `dart-3.8` and `flutter-3.32` runtimes
|
||||
* Add `gif` image format
|
||||
* Update bulk operation methods to reflect warning message
|
||||
* Fix file parameter handling in chunked upload method
|
||||
|
||||
## 17.0.0
|
||||
|
||||
* Add `<REGION>` to doc examples due to the new multi region endpoints
|
||||
* Add `REGION` to doc examples due to the new multi region endpoints
|
||||
* Add doc examples and methods for bulk api transactions: `createDocuments`, `deleteDocuments` etc.
|
||||
* Add doc examples, class and methods for new `Sites` service
|
||||
* Add doc examples, class and methods for new `Tokens` service
|
||||
* Add enums for `BuildRuntime `, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
|
||||
* Add enums for `BuildRuntime`, `Adapter`, `Framework`, `DeploymentDownloadType` and `VCSDeploymentType`
|
||||
* Updates enum for `runtimes` with Pythonml312, Dart219, Flutter327 and Flutter329
|
||||
* Add `token` param to `getFilePreview` and `getFileView` for File tokens usage
|
||||
* Add `queries` and `search` params to `listMemberships` method
|
||||
* Removes `search` param from `listExecutions` method
|
||||
* Removes `search` param from `listExecutions` method
|
||||
|
||||
## 16.0.0
|
||||
|
||||
* Fix: remove content-type from GET requests
|
||||
* Update (breaking): min and max params are now optional in `updateFloatAttribute` and `updateIntegerAttribute` methods (changes their positioning in method definition)
|
||||
|
||||
## 15.0.1
|
||||
|
||||
* Remove titles from all function descriptions
|
||||
* Fix typing for collection "attribute" key
|
||||
* Remove unnecessary awaits and asyncs
|
||||
* Ensure `AppwriteException` response is always string
|
||||
|
||||
## 15.0.0
|
||||
|
||||
* Fix: pong response & chunked upload
|
||||
|
||||
## 14.2.0
|
||||
|
||||
* Add new push message parameters
|
||||
|
||||
## 14.1.0
|
||||
|
||||
* Support updating attribute name and size
|
||||
|
||||
## 14.0.0
|
||||
|
||||
* Support for Appwrite 1.6
|
||||
* Add `key` attribute to `Runtime` response model.
|
||||
* Add `buildSize` attribute to `Deployments` response model
|
||||
* Add `scheduledAt` attribute to `Executions` response model
|
||||
* Add `scopes` attribute to `Functions` response model
|
||||
* Add `specifications` attribute to `Functions` response model
|
||||
* Add new response model for `Specifications`
|
||||
* Add new response model for `Builds`
|
||||
* Add `createJWT()` : Enables creating a JWT using the `userId`
|
||||
* Add `listSpecifications()`: Enables listing available runtime specifications
|
||||
* Add `deleteExecution()` : Enables deleting executions
|
||||
* Add `updateDeploymentBuild()`: Enables cancelling a deployment
|
||||
* Add `scheduledAt` parameter to `createExecution()`: Enables creating a delayed execution
|
||||
* Breaking changes
|
||||
* Remove `otp` parameter from `deleteMFAAuthenticator`.
|
||||
* Add `scopes` parameter for create/update function.
|
||||
* Rename `templateBranch` to `templateVersion` in `createFunction()`.
|
||||
* Rename `downloadDeployment()` to `getDeploymentDownload()`
|
||||
|
||||
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
|
||||
Loading…
Reference in a new issue