Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: palantir/blueprint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @blueprintjs/select@5.3.12
Choose a base ref
...
head repository: palantir/blueprint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @blueprintjs/select@5.3.13
Choose a head ref
  • 3 commits
  • 30 files changed
  • 3 contributors

Commits on Feb 27, 2025

  1. fix(ToastCreateAsyncExample): must add props to Example (#7256)

    bvandercar-vt authored Feb 27, 2025
    1
    Copy the full SHA
    33fed14 View commit details
  2. Make ESLint plugin backwards compatible with v8 (#7280)

    MariaSolOs authored Feb 27, 2025
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5ec43a9 View commit details
  3. chore: Publish new release

     - @blueprintjs/core@5.17.1
     - @blueprintjs/datetime@5.3.25
     - @blueprintjs/datetime2@2.3.25
     - @blueprintjs/demo-app@5.16.8
     - @blueprintjs/docs-app@5.16.8
     - @blueprintjs/docs-data@5.16.8
     - @blueprintjs/docs-theme@5.3.25
     - @blueprintjs/eslint-config@6.0.11
     - @blueprintjs/eslint-plugin@6.1.11
     - @blueprintjs/icons@5.19.1
     - @blueprintjs/karma-build-scripts@5.2.16
     - @blueprintjs/landing-app@5.16.8
     - @blueprintjs/popover2@2.1.24
     - @blueprintjs/select@5.3.13
     - @blueprintjs/table-dev-app@5.2.15
     - @blueprintjs/table@5.3.7
     - @blueprintjs/webpack-build-scripts@6.2.9
    jscheiny committed Feb 27, 2025
    2

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    be68138 View commit details
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ After cloning this repo, run:
4. If running on Windows:
1. `npm install -g windows-build-tools` to install build tools globally
2. Ensure `bash` is your configured script-shell by running:<br />
`npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"`
`npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"`<br />
(reset this by running `npm config delete script-shell`)
5. `yarn verify` to ensure you have all the build tooling working properly.
1. There may currently be some errors when running this step, even though everything is set up properly, see https://github.com/palantir/blueprint/issues/6926 for more info.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/core",
"version": "5.17.0",
"version": "5.17.1",
"description": "Core styles & components",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
6 changes: 4 additions & 2 deletions packages/core/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -21,7 +21,9 @@ import { cwd } from "node:process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
core: "./src/index.ts",
},
@@ -34,4 +36,4 @@ export default Object.assign({}, baseConfig, {
libraryTarget: "umd",
path: resolve(cwd(), "./dist"),
},
});
};
2 changes: 1 addition & 1 deletion packages/datetime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/datetime",
"version": "5.3.24",
"version": "5.3.25",
"description": "Components for interacting with dates and times",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
6 changes: 4 additions & 2 deletions packages/datetime/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "node:process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
datetime: ["./src/index.ts"],
},
@@ -33,4 +35,4 @@ export default Object.assign({}, baseConfig, {
libraryTarget: "umd",
path: resolve(cwd(), "./dist"),
},
});
};
2 changes: 1 addition & 1 deletion packages/datetime2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/datetime2",
"version": "2.3.24",
"version": "2.3.25",
"description": "Re-exports of @blueprintjs/datetime APIs",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
2 changes: 1 addition & 1 deletion packages/demo-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/demo-app",
"version": "5.16.7",
"version": "5.16.8",
"description": "Blueprint Demo App",
"private": true,
"scripts": {
2 changes: 1 addition & 1 deletion packages/docs-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/docs-app",
"version": "5.16.7",
"version": "5.16.8",
"description": "Blueprint Documentation Site",
"private": true,
"scripts": {
Original file line number Diff line number Diff line change
@@ -18,15 +18,15 @@ import * as React from "react";
import ReactDOM from "react-dom";

import { Button, Intent, OverlayToaster } from "@blueprintjs/core";
import { Example } from "@blueprintjs/docs-theme";
import { Example, type ExampleProps } from "@blueprintjs/docs-theme";

// This example adapts the docs example slightly:
// https://blueprintjs.com/docs/#core/components/toast.example
//
// Instead of a singleton toaster, the Toaster is only created when the user
// clicks the button. This avoids creating a singleton Toaster for the entire
// Blueprint docs app.
export function ToastCreateAsyncExample() {
export const ToastCreateAsyncExample: React.FC<ExampleProps> = props => {
const [isToastShown, setIsToastShown] = React.useState(false);

const handleClick = React.useCallback(async () => {
@@ -39,7 +39,7 @@ export function ToastCreateAsyncExample() {
}, []);

return (
<Example>
<Example options={null} {...props}>
<Button
intent={Intent.PRIMARY}
onClick={handleClick}
@@ -52,7 +52,7 @@ export function ToastCreateAsyncExample() {
</Button>
</Example>
);
}
};

/**
* Create a new OverlayToaster and show a message. The return promise will
2 changes: 1 addition & 1 deletion packages/docs-data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/docs-data",
"version": "5.16.7",
"version": "5.16.8",
"main": "src/index.js",
"types": "src/index.d.ts",
"private": true,
2 changes: 1 addition & 1 deletion packages/docs-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/docs-theme",
"version": "5.3.24",
"version": "5.3.25",
"description": "Blueprint theme for documentalist",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
6 changes: 4 additions & 2 deletions packages/docs-theme/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "node:process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
"docs-theme": ["./src/index.ts"],
},
@@ -33,4 +35,4 @@ export default Object.assign({}, baseConfig, {
libraryTarget: "umd",
path: resolve(cwd(), "./dist"),
},
});
};
2 changes: 1 addition & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ const eslintPluginRules = require("./eslint-plugin-rules.js");
const tsEslintRules = require("./typescript-eslint-rules.js");

module.exports = tseslint.config(
blueprintPlugin.configs.recommended,
blueprintPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
{
plugins: {
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/eslint-config",
"version": "6.0.10",
"version": "6.0.11",
"description": "ESLint configuration for @blueprintjs packages",
"dependencies": {
"@blueprintjs/eslint-plugin": "workspace:^",
8 changes: 5 additions & 3 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/eslint-plugin",
"version": "6.1.10",
"version": "6.1.11",
"description": "ESLint rules for use with @blueprintjs packages",
"main": "lib/index.js",
"scripts": {
@@ -11,8 +11,10 @@
"test": "SWC_NODE_PROJECT=./tsconfig.test.json mocha --require @swc-node/register,test/setup.ts --watch-extensions ts,tsx 'test/**/*.{ts,tsx}'"
},
"dependencies": {
"@typescript-eslint/utils": "^8.23.0",
"eslint": "^9.20.0"
"@typescript-eslint/utils": "^8.23.0"
},
"peerDependencies": {
"eslint": "^8.57 || ^9.0.0"
},
"devDependencies": {
"@blueprintjs/node-build-scripts": "workspace:^",
38 changes: 23 additions & 15 deletions packages/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -17,23 +17,31 @@ import type { TSESLint } from "@typescript-eslint/utils";

import rules from "./rules";

const blueprintPlugin = { configs: { recommended: {} }, rules };
type ConfigName = "recommended";

// Assign the config here so that we can reference blueprintPlugin.
const configs: { [c in keyof (typeof blueprintPlugin)["configs"]]: TSESLint.FlatConfig.Config } = {
/**
* Enables all Blueprint-specific lint rules defined in this package.
*/
recommended: {
plugins: { "@blueprintjs": blueprintPlugin },
rules: {
"@blueprintjs/classes-constants": "error",
"@blueprintjs/html-components": "error",
"@blueprintjs/no-deprecated-components": "error",
"@blueprintjs/no-deprecated-type-references": "error",
},
const blueprintPlugin = {
configs: { recommended: {} } as Record<ConfigName, TSESLint.ClassicConfig.Config>,
flatConfigs: { recommended: {} } as Record<ConfigName, TSESLint.FlatConfig.Config>,
rules,
};

// The recommended config enables all Blueprint-specific lint rules defined in this package.
const config: TSESLint.ClassicConfig.Config = {
plugins: ["@blueprintjs"],
rules: {
"@blueprintjs/classes-constants": "error",
"@blueprintjs/html-components": "error",
"@blueprintjs/no-deprecated-components": "error",
"@blueprintjs/no-deprecated-type-references": "error",
},
};
Object.assign(blueprintPlugin.configs, configs);
const flatConfig: TSESLint.FlatConfig.Config = {
...config,
plugins: { "@blueprintjs": blueprintPlugin },
};

// Assign the config here so that we can reference blueprintPlugin.
Object.assign(blueprintPlugin.configs.recommended, config);
Object.assign(blueprintPlugin.flatConfigs.recommended, flatConfig);

export = blueprintPlugin;
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/icons",
"version": "5.19.0",
"version": "5.19.1",
"description": "Components, fonts, icons, and css files for creating and displaying icons.",
"main": "lib/cjs/generated/index.js",
"module": "lib/esm/generated/index.js",
6 changes: 4 additions & 2 deletions packages/icons/scripts/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
icons: ["./src/index.ts"],
},
@@ -38,4 +40,4 @@ export default Object.assign({}, baseConfig, {
maxAssetSize: 500000,
maxEntrypointSize: 500000,
},
});
};
6 changes: 4 additions & 2 deletions packages/icons/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
icons: ["./src/index.ts"],
},
@@ -38,4 +40,4 @@ export default Object.assign({}, baseConfig, {
maxAssetSize: 500000,
maxEntrypointSize: 500000,
},
});
};
2 changes: 1 addition & 1 deletion packages/karma-build-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/karma-build-scripts",
"version": "5.2.15",
"version": "5.2.16",
"description": "Karma build scripts for @blueprintjs packages",
"type": "module",
"main": "index.mjs",
2 changes: 1 addition & 1 deletion packages/landing-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/landing-app",
"version": "5.16.7",
"version": "5.16.8",
"description": "Blueprint landing page",
"private": true,
"scripts": {
2 changes: 1 addition & 1 deletion packages/popover2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/popover2",
"version": "2.1.23",
"version": "2.1.24",
"description": "Re-exports of popover-related components from @blueprintjs/core",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
2 changes: 1 addition & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/select",
"version": "5.3.12",
"version": "5.3.13",
"description": "Components related to selecting items from a list",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
6 changes: 4 additions & 2 deletions packages/select/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "node:process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
select: ["./src/index.ts"],
},
@@ -33,4 +35,4 @@ export default Object.assign({}, baseConfig, {
libraryTarget: "umd",
path: resolve(cwd(), "./dist"),
},
});
};
2 changes: 1 addition & 1 deletion packages/table-dev-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/table-dev-app",
"version": "5.2.14",
"version": "5.2.15",
"description": "Dev application for @blueprintjs/table",
"private": true,
"scripts": {
2 changes: 1 addition & 1 deletion packages/table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/table",
"version": "5.3.6",
"version": "5.3.7",
"description": "Scalable interactive table component",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
6 changes: 4 additions & 2 deletions packages/table/webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ import { cwd } from "node:process";

import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";

export default Object.assign({}, baseConfig, {
export default {
...baseConfig,

entry: {
table: ["./src/index.ts"],
},
@@ -33,4 +35,4 @@ export default Object.assign({}, baseConfig, {
libraryTarget: "umd",
path: resolve(cwd(), "./dist"),
},
});
};
2 changes: 1 addition & 1 deletion packages/webpack-build-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blueprintjs/webpack-build-scripts",
"version": "6.2.8",
"version": "6.2.9",
"description": "Webpack build scripts for @blueprintjs packages",
"type": "module",
"main": "index.mjs",
21 changes: 7 additions & 14 deletions packages/webpack-build-scripts/webpack.config.base.mjs
Original file line number Diff line number Diff line change
@@ -44,20 +44,13 @@ const PACKAGE_NAME = getPackageName();
*/
const plugins = [
new ForkTsCheckerPlugin(
IS_PRODUCTION
? {
async: false,
typescript: {
configFile: "src/tsconfig.json",
memoryLimit: 4096,
},
}
: {
typescript: {
configFile: "src/tsconfig.json",
memoryLimit: 4096,
},
},
{
async: IS_PRODUCTION ? false : undefined,
typescript: {
configFile: "src/tsconfig.json",
memoryLimit: 4096,
},
},
),

// CSS extraction is only enabled in production (see scssLoaders below).
Loading