From bb40aa756f4fe5fe9d722ac7b846c236c3ab6aa5 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Sat, 4 May 2024 12:15:00 -0400 Subject: [PATCH] MariaDB and FerretDB --- CNAME | 1 - Makefile | 1 - docz/README.md | 3 --- docz/docs/03-demos/23-data/17-mariadb.md | 16 +++++++++++++++- docz/docs/03-demos/23-data/25-mongodb.md | 13 ++++++++++--- docz/docs/03-demos/30-cloud/02-netsuite.md | 8 ++++---- .../03-demos/32-extensions/01-extendscript.md | 2 ++ docz/docs/03-demos/32-extensions/02-chromium.md | 2 ++ docz/docs/03-demos/32-extensions/03-excelapi.md | 2 ++ docz/docs/03-demos/32-extensions/04-gsheet.md | 2 ++ docz/docs/03-demos/32-extensions/06-osa.md | 2 ++ .../03-demos/32-extensions/09-mathematica.md | 2 ++ docz/docs/03-demos/32-extensions/10-stata.md | 2 ++ docz/docs/03-demos/32-extensions/11-matlab.md | 2 ++ docz/docs/03-demos/32-extensions/12-maple.md | 2 ++ docz/docs/03-demos/32-extensions/index.md | 13 +++++++++---- 16 files changed, 56 insertions(+), 17 deletions(-) delete mode 100644 CNAME delete mode 100644 docz/README.md diff --git a/CNAME b/CNAME deleted file mode 100644 index d393720..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -docs.sheetjs.com \ No newline at end of file diff --git a/Makefile b/Makefile index 5d6fd77..f37f0f1 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ build: cd docz; npx -y pnpm build; cd .. rm -rf docs mv docz/build/ docs - cp CNAME docs cp _headers docs .PHONY: init diff --git a/docz/README.md b/docz/README.md deleted file mode 100644 index 01b4bc2..0000000 --- a/docz/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# docs.sheetjs.com - - \ No newline at end of file diff --git a/docz/docs/03-demos/23-data/17-mariadb.md b/docz/docs/03-demos/23-data/17-mariadb.md index 6058e0d..ea2687a 100644 --- a/docz/docs/03-demos/23-data/17-mariadb.md +++ b/docz/docs/03-demos/23-data/17-mariadb.md @@ -36,7 +36,7 @@ This demo was tested in the following environments: | MariaDB | Connector Library | Date | |:---------|:-------------------|:-----------| -| `11.2.2` | `mysql2` (`3.6.5`) | 2023-12-04 | +| `11.3.2` | `mysql2` (`3.9.7`) | 2024-05-04 | ::: @@ -393,6 +393,20 @@ If the server is running locally, the command will be: mysql -D SheetJSMariaDB -e 'SELECT * FROM `Presidents`;' ``` +The output should be consistent with the following table: + +``` ++--------------+-------+ +| Name | Index | ++--------------+-------+ +| Bill Clinton | 42 | +| GeorgeW Bush | 43 | +| Barack Obama | 44 | +| Donald Trump | 45 | +| Joseph Biden | 46 | ++--------------+-------+ +``` + [^1]: See [the official `mysql2` website](https://sidorares.github.io/node-mysql2/docs) for more info. [^2]: See [`json_to_sheet` in "Utilities"](/docs/api/utilities/array#array-of-objects-input) [^3]: See ["Sheet Objects"](/docs/csf/sheet) in "SheetJS Data Model" for more details. diff --git a/docz/docs/03-demos/23-data/25-mongodb.md b/docz/docs/03-demos/23-data/25-mongodb.md index 11ea77d..ae09c9c 100644 --- a/docz/docs/03-demos/23-data/25-mongodb.md +++ b/docz/docs/03-demos/23-data/25-mongodb.md @@ -27,8 +27,8 @@ This demo was tested in the following environments: | Server | Connector Library | Date | |:--------------------|:--------------------|:-----------| | FerretDB `1.21.0` | `mongodb` (`5.9.2`) | 2024-03-30 | -| MongoDB CE `6.0.10` | `mongodb` (`5.7.0`) | 2023-12-04 | -| MongoDB CE `7.0.2` | `mongodb` (`5.7.0`) | 2023-12-04 | +| MongoDB CE `6.0.15` | `mongodb` (`6.5.0`) | 2024-05-01 | +| MongoDB CE `7.0.8` | `mongodb` (`6.5.0`) | 2024-05-01 | ::: @@ -98,6 +98,13 @@ brew update brew install mongodb-community ``` +Older versions can be installed by passing the version major and minor numbers: + +```bash +# Install 6.0 +brew install mongodb-community@6.0 +``` + :::note pass If `brew` was used to install MongoDB, the following command starts a server: @@ -122,7 +129,7 @@ If Homebrew is configured to use `/opt/homebrew`, the command is: mkdir sheetjs-mongo cd sheetjs-mongo npm init -y -npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz mongodb@5.7.0`} +npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz mongodb@6.5.0`} 3) Save the following to `SheetJSMongoCRUD.mjs` (the key step is highlighted): diff --git a/docz/docs/03-demos/30-cloud/02-netsuite.md b/docz/docs/03-demos/30-cloud/02-netsuite.md index 2806f9f..8ea7847 100644 --- a/docz/docs/03-demos/30-cloud/02-netsuite.md +++ b/docz/docs/03-demos/30-cloud/02-netsuite.md @@ -24,10 +24,10 @@ This demo was verified by NetSuite consultants in the following deployments: | `@NScriptType` | `@NApiVersion` | Date | |:----------------|:---------------|:-----------| -| ScheduledScript | 2.1 | 2024-03-21 | -| Restlet | 2.1 | 2023-10-05 | -| Suitelet | 2.1 | 2024-03-25 | -| MapReduceScript | 2.1 | 2023-12-07 | +| ScheduledScript | 2.1 | 2024-05-01 | +| Restlet | 2.1 | 2024-05-01 | +| Suitelet | 2.1 | 2024-05-01 | +| MapReduceScript | 2.1 | 2024-05-01 | ::: diff --git a/docz/docs/03-demos/32-extensions/01-extendscript.md b/docz/docs/03-demos/32-extensions/01-extendscript.md index 7d67f2c..f520a73 100644 --- a/docz/docs/03-demos/32-extensions/01-extendscript.md +++ b/docz/docs/03-demos/32-extensions/01-extendscript.md @@ -4,6 +4,8 @@ sidebar_label: Photoshop and InDesign description: Design documents using InDesign and Photoshop. Leverage spreadsheet data in app extensions using SheetJS. Use your Excel spreadsheets without leaving your Adobe apps. pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Share data between spreadsheets and InDesign tables --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/02-chromium.md b/docz/docs/03-demos/32-extensions/02-chromium.md index fd3912e..5b0a3c1 100644 --- a/docz/docs/03-demos/32-extensions/02-chromium.md +++ b/docz/docs/03-demos/32-extensions/02-chromium.md @@ -2,6 +2,8 @@ title: Chrome and Chromium pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Export HTML Tables in a Chromium extension --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/03-excelapi.md b/docz/docs/03-demos/32-extensions/03-excelapi.md index e833c0b..f71653c 100644 --- a/docz/docs/03-demos/32-extensions/03-excelapi.md +++ b/docz/docs/03-demos/32-extensions/03-excelapi.md @@ -2,6 +2,8 @@ title: Excel JavaScript API pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Enhance data import functionality from Excel --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/04-gsheet.md b/docz/docs/03-demos/32-extensions/04-gsheet.md index 4679bcb..4bcc4d1 100644 --- a/docz/docs/03-demos/32-extensions/04-gsheet.md +++ b/docz/docs/03-demos/32-extensions/04-gsheet.md @@ -2,6 +2,8 @@ title: Google Sheets pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Enhance data import functionality from Google Sheets --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/06-osa.md b/docz/docs/03-demos/32-extensions/06-osa.md index f35542e..2c25da7 100644 --- a/docz/docs/03-demos/32-extensions/06-osa.md +++ b/docz/docs/03-demos/32-extensions/06-osa.md @@ -2,6 +2,8 @@ title: AppleScript and OSA pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Integrate spreadsheets in macOS automation scripts --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/09-mathematica.md b/docz/docs/03-demos/32-extensions/09-mathematica.md index 60a81d2..9511a93 100644 --- a/docz/docs/03-demos/32-extensions/09-mathematica.md +++ b/docz/docs/03-demos/32-extensions/09-mathematica.md @@ -4,6 +4,8 @@ sidebar_label: Mathematica description: Build complex data pipelines in Mathematica Notebooks. Seamlessly create datasets with SheetJS. Leverage the Mathematica ecosystem to analyze data from Excel workbooks. pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Generate Mathematica-compatible CSVs from arbitrary workbooks --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/10-stata.md b/docz/docs/03-demos/32-extensions/10-stata.md index 8f9fd29..25504cb 100644 --- a/docz/docs/03-demos/32-extensions/10-stata.md +++ b/docz/docs/03-demos/32-extensions/10-stata.md @@ -3,6 +3,8 @@ title: Modern Spreadsheets in Stata sidebar_label: Stata pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Generate Stata-compatible XLSX workbooks from incompatible files --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/11-matlab.md b/docz/docs/03-demos/32-extensions/11-matlab.md index 1b55e93..5d6dbfc 100644 --- a/docz/docs/03-demos/32-extensions/11-matlab.md +++ b/docz/docs/03-demos/32-extensions/11-matlab.md @@ -4,6 +4,8 @@ sidebar_label: MATLAB description: Build complex data pipelines in MATLAB M-Files. Seamlessly create MATLAB tables with SheetJS. Leverage the MATLAB toolbox ecosystem to analyze data from Excel workbooks. pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Convert between MATLAB tables and spreadsheets --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/12-maple.md b/docz/docs/03-demos/32-extensions/12-maple.md index d2b059a..b097332 100644 --- a/docz/docs/03-demos/32-extensions/12-maple.md +++ b/docz/docs/03-demos/32-extensions/12-maple.md @@ -3,6 +3,8 @@ title: Modern Spreadsheets in Maple sidebar_label: Maple pagination_prev: demos/cloud/index pagination_next: demos/bigdata/index +sidebar_custom_props: + summary: Generate Maple-compatible XLSX workbooks from incompatible files --- import current from '/version.js'; diff --git a/docz/docs/03-demos/32-extensions/index.md b/docz/docs/03-demos/32-extensions/index.md index 45f4a22..202b7fb 100644 --- a/docz/docs/03-demos/32-extensions/index.md +++ b/docz/docs/03-demos/32-extensions/index.md @@ -7,10 +7,15 @@ pagination_next: demos/bigdata/index import DocCardList from '@theme/DocCardList'; import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; -Thanks to the broad availability of powerful engines, JavaScript is a popular -language for writing extensions for apps. Some applications like Chromium use V8 -while others use engines that only support ES3 JavaScript. With conservative use -of modern language features, SheetJS can be used in many app extensions. +[SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing +data from spreadsheets. + +JavaScript is a popular language for writing app extensions. Some applications +embed the same [JavaScript engines](/docs/demos/engines) used in browsers. Other +applications embed purpose-built engines that only support ES3 JavaScript. + +With conservative use of modern language features, SheetJS can be used in many +app extensions to enable complex data import and export workflows. Demos for common applications are included in separate pages: