@azure/synapse-spark 1.0.0-alpha.20250224.1 → 1.0.0-alpha.20250226.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -10
  2. package/package.json +12 -10
package/README.md CHANGED
@@ -23,16 +23,21 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
23
23
 
24
24
  ## Examples
25
25
 
26
- ```ts
26
+ ```ts snippet:ReadmeSampleCreateClient_Node
27
27
  import { SparkClient } from "@azure/synapse-spark";
28
28
  import { DefaultAzureCredential } from "@azure/identity";
29
29
 
30
- export async function main(): Promise<void> {
31
- const credential = new DefaultAzureCredential();
32
-
33
- const client = new SparkClient(credential, "https://mysynapse.dev.azuresynapse.net", "mysparkpool");
34
- const output = await client.sparkBatch.getSparkBatchJobs();
35
- console.log("output:", output);
30
+ const client = new SparkClient(
31
+ new DefaultAzureCredential(),
32
+ "https://mysynapse.dev.azuresynapse.net",
33
+ "mysparkpool",
34
+ );
35
+
36
+ const output = await client.sparkBatch.getSparkBatchJobs();
37
+ if (output.sessions) {
38
+ for (const sparkBatchJob of output.sessions) {
39
+ console.log(`Spark batch job name: ${sparkBatchJob.name}`);
40
+ }
36
41
  }
37
42
  ```
38
43
 
@@ -40,13 +45,11 @@ export async function main(): Promise<void> {
40
45
 
41
46
  - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
42
47
 
43
-
44
-
45
48
  ## Troubleshooting
46
49
 
47
50
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
48
51
 
49
- ```ts
52
+ ```ts snippet:SetLogLevel
50
53
  import { setLogLevel } from "@azure/logger";
51
54
 
52
55
  setLogLevel("info");
package/package.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-spark/README.md",
6
6
  "repository": "github:Azure/azure-sdk-for-js",
7
7
  "sdk-type": "client",
8
- "version": "1.0.0-alpha.20250224.1",
8
+ "version": "1.0.0-alpha.20250226.1",
9
9
  "dependencies": {
10
10
  "@azure/core-auth": "^1.9.0",
11
11
  "@azure/core-client": "^1.9.2",
12
- "@azure/core-rest-pipeline": "^1.18.0",
12
+ "@azure/core-rest-pipeline": "^1.19.0",
13
13
  "@azure/core-tracing": "^1.2.0",
14
14
  "tslib": "^2.8.1"
15
15
  },
@@ -34,14 +34,15 @@
34
34
  "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
35
35
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
36
36
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
37
+ "@azure/logger": "^1.1.4",
37
38
  "@types/node": "^18.0.0",
38
- "@vitest/browser": "^3.0.3",
39
- "@vitest/coverage-istanbul": "^3.0.3",
39
+ "@vitest/browser": "^3.0.6",
40
+ "@vitest/coverage-istanbul": "^3.0.6",
40
41
  "dotenv": "^16.0.0",
41
42
  "eslint": "^9.9.0",
42
- "playwright": "^1.49.0",
43
+ "playwright": "^1.50.1",
43
44
  "typescript": "~5.7.2",
44
- "vitest": "^3.0.3"
45
+ "vitest": "^3.0.6"
45
46
  },
46
47
  "//metadata": {
47
48
  "constantPaths": [
@@ -85,12 +86,13 @@
85
86
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
86
87
  "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
87
88
  "unit-test:node": "dev-tool run test:vitest",
88
- "update-snippets": "echo skipped"
89
+ "update-snippets": "dev-tool run update-snippets"
89
90
  },
90
91
  "sideEffects": false,
91
92
  "autoPublish": true,
92
93
  "type": "module",
93
94
  "tshy": {
95
+ "project": "./tsconfig.src.json",
94
96
  "exports": {
95
97
  "./package.json": "./package.json",
96
98
  ".": "./src/index.ts"
@@ -103,8 +105,7 @@
103
105
  "browser",
104
106
  "react-native"
105
107
  ],
106
- "selfLink": false,
107
- "project": "./tsconfig.src.json"
108
+ "selfLink": false
108
109
  },
109
110
  "exports": {
110
111
  "./package.json": "./package.json",
@@ -126,5 +127,6 @@
126
127
  "default": "./dist/commonjs/index.js"
127
128
  }
128
129
  }
129
- }
130
+ },
131
+ "react-native": "./dist/react-native/index.js"
130
132
  }