Commit 3ab00f9712 for handsontable.com
commit 3ab00f97129515a5cad05f836daf0e7b25a39360
Author: Artur Mędrygał <artur.medrygal@handsontable.com>
Date: Thu Nov 26 10:05:14 2026 +0100
RELEASE-1047: Update README key features (#14481)
* RELEASE-1047: Update README key features
* RELEASE-1047: Update wrapper README key features
* RELEASE-1047: Let the README check accept pages not yet published
diff --git a/README.md b/README.md
index fe71587d70..0516e2fa84 100644
--- a/README.md
+++ b/README.md
@@ -49,18 +49,25 @@
✅ [Sorting data](https://handsontable.com/docs/rows-sorting/) <br>
✅ [Filtering data](https://handsontable.com/docs/column-filter/) <br>
✅ [400 built-in formulas](https://handsontable.com/docs/formula-calculation/) <br>
+ ✅ [Formula bar and builder](https://handsontable.com/docs/javascript-data-grid/formula-builder/) <br>
+ ✅ [Multiple sheets](https://handsontable.com/docs/javascript-data-grid/sheets-bar/) <br>
✅ [Configurable selection](https://handsontable.com/docs/selection/) <br>
+ ✅ [Row selection with checkboxes](https://handsontable.com/docs/javascript-data-grid/row-selection/) <br>
✅ [Data validation](https://handsontable.com/docs/cell-validator/) <br>
✅ [Conditional formatting](https://handsontable.com/docs/conditional-formatting/) <br>
✅ [Merged cells](https://handsontable.com/docs/merge-cells/) <br>
- ✅ [Frozen rows and columns](https://handsontable.com/docs/column-freezing/) <br>
+ ✅ [Frozen rows and columns, adjustable by drag](https://handsontable.com/docs/column-freezing/) <br>
✅ [Hiding rows and columns](https://handsontable.com/docs/column-hiding/) <br>
✅ [Right-click context menu](https://handsontable.com/docs/context-menu/) <br>
+ ✅ [Undo and redo](https://handsontable.com/docs/javascript-data-grid/undo-redo/) <br>
+ ✅ [Clickable links](https://handsontable.com/docs/javascript-data-grid/clickable-links/) <br>
✅ [Row pagination](https://handsontable.com/docs/javascript-data-grid/rows-pagination/) <br>
✅ [Server-side data](https://handsontable.com/docs/javascript-data-grid/server-side-data/) <br>
+ ✅ [Async cell values](https://handsontable.com/docs/javascript-data-grid/async-values/) <br>
✅ [Notifications](https://handsontable.com/docs/javascript-data-grid/notification/) <br>
- ✅ [Export to Excel](https://handsontable.com/docs/javascript-data-grid/export-to-excel/) <br>
- ✅ [Date and time editing](https://handsontable.com/docs/javascript-data-grid/cell-type/) <br>
+ ✅ [Import and export Excel (XLSX)](https://handsontable.com/docs/javascript-data-grid/import-and-export/) <br>
+ ✅ [Save and restore view state](https://handsontable.com/docs/javascript-data-grid/view-state/) <br>
+ ✅ [Date and time editing](https://handsontable.com/docs/javascript-data-grid/date-cell-type/) <br>
✅ [Shadow DOM / Web Components support](https://handsontable.com/docs/javascript-data-grid/shadow-dom/) <br>
<br>
diff --git a/scripts/__tests__/readme-check.test.mjs b/scripts/__tests__/readme-check.test.mjs
index f94d174e03..109fdfcada 100644
--- a/scripts/__tests__/readme-check.test.mjs
+++ b/scripts/__tests__/readme-check.test.mjs
@@ -4,8 +4,34 @@ import { existsSync } from 'node:fs';
import {
extractLinks, isInternal, extractFeatures, featureDrift, findStaleVersions,
findWrongDocsPrefix, findUnprefixedDocsLinks, isAbsolute, absolute, DOCS_PREFIX, READMES,
+ docsPageSlug, isUnpublishedDocsPage,
} from '../readme-check.mjs';
+test('docsPageSlug reads the page slug with or without a framework prefix', () => {
+ assert.equal(docsPageSlug('https://handsontable.com/docs/react-data-grid/sheets-bar/'), '/sheets-bar');
+ assert.equal(docsPageSlug('https://handsontable.com/docs/vue-data-grid/sheets-bar'), '/sheets-bar');
+ assert.equal(docsPageSlug('https://handsontable.com/docs/sheets-bar/'), '/sheets-bar');
+ assert.equal(docsPageSlug('https://handsontable.com/docs/sheets-bar/#anchor'), '/sheets-bar');
+});
+
+test('docsPageSlug returns null for anything that is not a single guide page', () => {
+ assert.equal(docsPageSlug('https://handsontable.com/docs'), null);
+ assert.equal(docsPageSlug('https://handsontable.com/docs/react-data-grid/'), null);
+ assert.equal(docsPageSlug('https://handsontable.com/docs/api/core/'), null);
+ assert.equal(docsPageSlug('https://example.com/docs/sheets-bar/'), null);
+});
+
+test('isUnpublishedDocsPage accepts a page in the docs source and rejects a typo', () => {
+ const permalinks = new Set(['/sheets-bar', '/view-state']);
+
+ const docs = 'https://handsontable.com/docs';
+
+ assert.equal(isUnpublishedDocsPage(`${docs}/react-data-grid/sheets-bar/`, permalinks), true);
+ assert.equal(isUnpublishedDocsPage(`${docs}/javascript-data-grid/sheet-bar/`, permalinks), false);
+ assert.equal(isUnpublishedDocsPage('https://handsontable.com/docs/api/core/', permalinks), false);
+ assert.equal(isUnpublishedDocsPage('https://handsontable.com/docs/sheets-bar/', new Set()), false);
+});
+
test('extractLinks finds markdown links, HTML attributes and srcset URLs', () => {
const md = [
'[Docs](https://handsontable.com/docs)',
diff --git a/scripts/readme-check.mjs b/scripts/readme-check.mjs
index 5d370e0749..e117643a14 100644
--- a/scripts/readme-check.mjs
+++ b/scripts/readme-check.mjs
@@ -17,7 +17,7 @@
* node scripts/readme-check.mjs --links=all # also resolve third-party links (nightly)
* node scripts/readme-check.mjs --links=none # no network at all
*/
-import { readFileSync, existsSync } from 'node:fs';
+import { readFileSync, readdirSync, existsSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
@@ -282,6 +282,73 @@ export function findUnprefixedDocsLinks(links, flavour) {
});
}
+/**
+ * The page slug of a docs guide URL: `https://handsontable.com/docs/react-data-grid/sheets-bar/`
+ * and `https://handsontable.com/docs/sheets-bar/` both give `/sheets-bar`.
+ *
+ * @param {string} url An absolute URL.
+ * @returns {string|null} The slug with a leading slash, or `null` when the URL is not a single-page
+ * docs guide URL (another host, the docs homepage, a nested path such as an API page).
+ */
+export function docsPageSlug(url) {
+ const m = url.match(/^https?:\/\/(?:www\.)?handsontable\.com\/docs\/([a-z0-9-]+)(?:\/([a-z0-9-]+))?\/?(?:[?#].*)?$/);
+
+ if (m === null) {
+ return null;
+ }
+
+ const known = new Set(Object.values(DOCS_PREFIX));
+
+ if (m[2] !== undefined) {
+ return known.has(m[1]) ? `/${m[2]}` : null;
+ }
+
+ return known.has(m[1]) ? null : `/${m[1]}`;
+}
+
+/**
+ * Whether a dead docs link points at a page that is already in the docs source but not yet
+ * published. A release publishes its docs only after the release tag, while npm renders the README
+ * from the release branch, so a README that links a page new in that release has to merge first.
+ * A typo or a deleted page matches no permalink and stays a failure.
+ *
+ * @param {string} url The URL that returned 404.
+ * @param {Set<string>} permalinks Permalinks of the guide pages in `docs/content/guides`.
+ * @returns {boolean} `true` when the docs source holds the page.
+ */
+export function isUnpublishedDocsPage(url, permalinks) {
+ const slug = docsPageSlug(url);
+
+ return slug !== null && permalinks.has(slug);
+}
+
+/**
+ * Collect the `permalink:` of every guide page in the docs source.
+ *
+ * @param {string} guidesDir Absolute path of `docs/content/guides`.
+ * @returns {Set<string>} Permalinks such as `/sheets-bar`; empty when the directory is missing.
+ */
+function readDocsPermalinks(guidesDir) {
+ const permalinks = new Set();
+
+ if (!existsSync(guidesDir)) {
+ return permalinks;
+ }
+
+ for (const rel of readdirSync(guidesDir, { recursive: true })) {
+ if (typeof rel === 'string' && rel.endsWith('.md')) {
+ const head = readFileSync(path.join(guidesDir, rel), 'utf8').slice(0, 1500);
+ const m = head.match(/^permalink:\s*(\/[a-z0-9-]+)\s*$/m);
+
+ if (m !== null) {
+ permalinks.add(m[1]);
+ }
+ }
+ }
+
+ return permalinks;
+}
+
/**
* Resolve one URL, following redirects. HEAD first, falling back to GET for the hosts that answer
* HEAD with a 405 (and for those that 404 a HEAD they would have served as a GET).
@@ -431,11 +498,15 @@ async function main() {
console.log(`Resolving ${wanted.size} ${mode === 'all' ? '' : 'internal '}link(s)…`);
const statuses = await resolveAll([...wanted.keys()]);
+ const permalinks = readDocsPermalinks(path.join(ROOT, 'docs/content/guides'));
for (const [url, where] of wanted) {
const status = statuses.get(url);
- if (DEAD.includes(status)) {
+ if (DEAD.includes(status) && isUnpublishedDocsPage(url, permalinks)) {
+ warnings.push(
+ `${where.join(', ')}: '${url}' returns ${status}, but the page is in docs/content and not published yet`);
+ } else if (DEAD.includes(status)) {
failures.push(`${where.join(', ')}: '${url}' returns ${status}`);
} else if (status === 0) {
warnings.push(`${where.join(', ')}: '${url}' could not be reached`);
diff --git a/wrappers/angular-wrapper/README.md b/wrappers/angular-wrapper/README.md
index 5ea3e65829..ceb070b3d1 100644
--- a/wrappers/angular-wrapper/README.md
+++ b/wrappers/angular-wrapper/README.md
@@ -47,18 +47,25 @@
✅ [Sorting data](https://handsontable.com/docs/angular-data-grid/rows-sorting/) <br>
✅ [Filtering data](https://handsontable.com/docs/angular-data-grid/column-filter/) <br>
✅ [400 built-in formulas](https://handsontable.com/docs/angular-data-grid/formula-calculation/) <br>
+ ✅ [Formula bar and builder](https://handsontable.com/docs/angular-data-grid/formula-builder/) <br>
+ ✅ [Multiple sheets](https://handsontable.com/docs/angular-data-grid/sheets-bar/) <br>
✅ [Configurable selection](https://handsontable.com/docs/angular-data-grid/selection/) <br>
+ ✅ [Row selection with checkboxes](https://handsontable.com/docs/angular-data-grid/row-selection/) <br>
✅ [Data validation](https://handsontable.com/docs/angular-data-grid/cell-validator/) <br>
✅ [Conditional formatting](https://handsontable.com/docs/angular-data-grid/conditional-formatting/) <br>
✅ [Merged cells](https://handsontable.com/docs/angular-data-grid/merge-cells/) <br>
- ✅ [Pinned/frozen columns](https://handsontable.com/docs/angular-data-grid/column-freezing/) <br>
+ ✅ [Frozen rows and columns, adjustable by drag](https://handsontable.com/docs/angular-data-grid/column-freezing/) <br>
✅ [Hiding columns](https://handsontable.com/docs/angular-data-grid/column-hiding/) <br>
✅ [Right-click context menu](https://handsontable.com/docs/angular-data-grid/context-menu/) <br>
+ ✅ [Undo and redo](https://handsontable.com/docs/angular-data-grid/undo-redo/) <br>
+ ✅ [Clickable links](https://handsontable.com/docs/angular-data-grid/clickable-links/) <br>
✅ [Row pagination](https://handsontable.com/docs/angular-data-grid/rows-pagination/) <br>
✅ [Server-side data](https://handsontable.com/docs/angular-data-grid/server-side-data/) <br>
+ ✅ [Async cell values](https://handsontable.com/docs/angular-data-grid/async-values/) <br>
✅ [Notifications](https://handsontable.com/docs/angular-data-grid/notification/) <br>
- ✅ [Export to Excel](https://handsontable.com/docs/angular-data-grid/export-to-excel/) <br>
- ✅ [Date and time editing](https://handsontable.com/docs/angular-data-grid/cell-type/) <br>
+ ✅ [Import and export Excel (XLSX)](https://handsontable.com/docs/angular-data-grid/import-and-export/) <br>
+ ✅ [Save and restore view state](https://handsontable.com/docs/angular-data-grid/view-state/) <br>
+ ✅ [Date and time editing](https://handsontable.com/docs/angular-data-grid/date-cell-type/) <br>
✅ [Shadow DOM / Web Components support](https://handsontable.com/docs/angular-data-grid/shadow-dom/) <br>
<div id="installation">
diff --git a/wrappers/react-wrapper/README.md b/wrappers/react-wrapper/README.md
index d819be1d97..2caa5a8cb1 100644
--- a/wrappers/react-wrapper/README.md
+++ b/wrappers/react-wrapper/README.md
@@ -48,18 +48,25 @@
✅ [Sorting data](https://handsontable.com/docs/react-data-grid/rows-sorting/) <br>
✅ [Filtering data](https://handsontable.com/docs/react-data-grid/column-filter/) <br>
✅ [400 built-in formulas](https://handsontable.com/docs/react-data-grid/formula-calculation/) <br>
+ ✅ [Formula bar and builder](https://handsontable.com/docs/react-data-grid/formula-builder/) <br>
+ ✅ [Multiple sheets](https://handsontable.com/docs/react-data-grid/sheets-bar/) <br>
✅ [Configurable selection](https://handsontable.com/docs/react-data-grid/selection/) <br>
+ ✅ [Row selection with checkboxes](https://handsontable.com/docs/react-data-grid/row-selection/) <br>
✅ [Data validation](https://handsontable.com/docs/react-data-grid/cell-validator/) <br>
✅ [Conditional formatting](https://handsontable.com/docs/react-data-grid/conditional-formatting/) <br>
✅ [Merged cells](https://handsontable.com/docs/react-data-grid/merge-cells/) <br>
- ✅ [Pinned/frozen columns](https://handsontable.com/docs/react-data-grid/column-freezing/) <br>
+ ✅ [Frozen rows and columns, adjustable by drag](https://handsontable.com/docs/react-data-grid/column-freezing/) <br>
✅ [Hiding columns](https://handsontable.com/docs/react-data-grid/column-hiding/) <br>
✅ [Right-click context menu](https://handsontable.com/docs/react-data-grid/context-menu/) <br>
+ ✅ [Undo and redo](https://handsontable.com/docs/react-data-grid/undo-redo/) <br>
+ ✅ [Clickable links](https://handsontable.com/docs/react-data-grid/clickable-links/) <br>
✅ [Row pagination](https://handsontable.com/docs/react-data-grid/rows-pagination/) <br>
✅ [Server-side data](https://handsontable.com/docs/react-data-grid/server-side-data/) <br>
+ ✅ [Async cell values](https://handsontable.com/docs/react-data-grid/async-values/) <br>
✅ [Notifications](https://handsontable.com/docs/react-data-grid/notification/) <br>
- ✅ [Export to Excel](https://handsontable.com/docs/react-data-grid/export-to-excel/) <br>
- ✅ [Date and time editing](https://handsontable.com/docs/react-data-grid/cell-type/) <br>
+ ✅ [Import and export Excel (XLSX)](https://handsontable.com/docs/react-data-grid/import-and-export/) <br>
+ ✅ [Save and restore view state](https://handsontable.com/docs/react-data-grid/view-state/) <br>
+ ✅ [Date and time editing](https://handsontable.com/docs/react-data-grid/date-cell-type/) <br>
✅ [Shadow DOM / Web Components support](https://handsontable.com/docs/react-data-grid/shadow-dom/) <br>
<div id="installation">
diff --git a/wrappers/vue3/README.md b/wrappers/vue3/README.md
index 109e701643..ed282cbd75 100644
--- a/wrappers/vue3/README.md
+++ b/wrappers/vue3/README.md
@@ -47,18 +47,25 @@
✅ [Sorting data](https://handsontable.com/docs/vue-data-grid/rows-sorting/) <br>
✅ [Filtering data](https://handsontable.com/docs/vue-data-grid/column-filter/) <br>
✅ [400 built-in formulas](https://handsontable.com/docs/vue-data-grid/formula-calculation/) <br>
+ ✅ [Formula bar and builder](https://handsontable.com/docs/vue-data-grid/formula-builder/) <br>
+ ✅ [Multiple sheets](https://handsontable.com/docs/vue-data-grid/sheets-bar/) <br>
✅ [Configurable selection](https://handsontable.com/docs/vue-data-grid/selection/) <br>
+ ✅ [Row selection with checkboxes](https://handsontable.com/docs/vue-data-grid/row-selection/) <br>
✅ [Data validation](https://handsontable.com/docs/vue-data-grid/cell-validator/) <br>
✅ [Conditional formatting](https://handsontable.com/docs/vue-data-grid/conditional-formatting/) <br>
✅ [Merged cells](https://handsontable.com/docs/vue-data-grid/merge-cells/) <br>
- ✅ [Pinned/frozen columns](https://handsontable.com/docs/vue-data-grid/column-freezing/) <br>
+ ✅ [Frozen rows and columns, adjustable by drag](https://handsontable.com/docs/vue-data-grid/column-freezing/) <br>
✅ [Hiding columns](https://handsontable.com/docs/vue-data-grid/column-hiding/) <br>
✅ [Right-click context menu](https://handsontable.com/docs/vue-data-grid/context-menu/) <br>
+ ✅ [Undo and redo](https://handsontable.com/docs/vue-data-grid/undo-redo/) <br>
+ ✅ [Clickable links](https://handsontable.com/docs/vue-data-grid/clickable-links/) <br>
✅ [Row pagination](https://handsontable.com/docs/vue-data-grid/rows-pagination/) <br>
✅ [Server-side data](https://handsontable.com/docs/vue-data-grid/server-side-data/) <br>
+ ✅ [Async cell values](https://handsontable.com/docs/vue-data-grid/async-values/) <br>
✅ [Notifications](https://handsontable.com/docs/vue-data-grid/notification/) <br>
- ✅ [Export to Excel](https://handsontable.com/docs/vue-data-grid/export-to-excel/) <br>
- ✅ [Date and time editing](https://handsontable.com/docs/vue-data-grid/cell-type/) <br>
+ ✅ [Import and export Excel (XLSX)](https://handsontable.com/docs/vue-data-grid/import-and-export/) <br>
+ ✅ [Save and restore view state](https://handsontable.com/docs/vue-data-grid/view-state/) <br>
+ ✅ [Date and time editing](https://handsontable.com/docs/vue-data-grid/date-cell-type/) <br>
✅ [Shadow DOM / Web Components support](https://handsontable.com/docs/vue-data-grid/shadow-dom/) <br>
<div id="installation">