Skip to content

Commit

Permalink
Bump globby from 11.0.1 to 14.0.2 (#12326)
Browse files Browse the repository at this point in the history
Bumps [globby](https://github.com/sindresorhus/globby) from 11.0.1 to
14.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/globby/releases">globby's
releases</a>.</em></p>
<blockquote>
<h2>v14.0.2</h2>
<ul>
<li>Fix types  f600250</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v14.0.1...v14.0.2">https://github.com/sindresorhus/globby/compare/v14.0.1...v14.0.2</a></p>
<h2>v14.0.1</h2>
<ul>
<li>Fix <code>expandDirectories.extension</code> option (<a
href="https://redirect.github.com/sindresorhus/globby/issues/263">#263</a>)
af5d139</li>
<li>Fix read permission error on ignore files search (<a
href="https://redirect.github.com/sindresorhus/globby/issues/259">#259</a>)
3a28601</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v14.0.0...v14.0.1">https://github.com/sindresorhus/globby/compare/v14.0.0...v14.0.1</a></p>
<h2>v14.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Require Node.js 18  2c06ae5</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>Add <a
href="https://github.com/sindresorhus/globby#convertpathtopatternpath"><code>convertPathToPattern()</code></a>
method 3bd00a6</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.2.2...v14.0.0">https://github.com/sindresorhus/globby/compare/v13.2.2...v14.0.0</a></p>
<h2>v13.2.2</h2>
<ul>
<li>Update dependencies (<a
href="https://redirect.github.com/sindresorhus/globby/issues/253">#253</a>)
0ae43b9</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.2.1...v13.2.2">https://github.com/sindresorhus/globby/compare/v13.2.1...v13.2.2</a></p>
<h2>v13.2.1</h2>
<ul>
<li>Fix <code>ignore</code> and <code>expandDirectories</code> default
handling (<a
href="https://redirect.github.com/sindresorhus/globby/issues/252">#252</a>)
3a48eb9</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.2.0...v13.2.1">https://github.com/sindresorhus/globby/compare/v13.2.0...v13.2.1</a></p>
<h2>v13.2.0</h2>
<ul>
<li>Pass deep option to ignore filter to avoid unnecessary recursion (<a
href="https://redirect.github.com/sindresorhus/globby/issues/251">#251</a>)
a0e4028</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.1.4...v13.2.0">https://github.com/sindresorhus/globby/compare/v13.1.4...v13.2.0</a></p>
<h2>v13.1.4</h2>
<ul>
<li>Fix error when reading inaccessible directories with
<code>gitignore: true</code> and <code>suppressErrors: true</code> (<a
href="https://redirect.github.com/sindresorhus/globby/issues/246">#246</a>)
e95da57</li>
<li>Remove <code>URL</code> TypeScript type workaround (<a
href="https://redirect.github.com/sindresorhus/globby/issues/230">#230</a>)
55a3c64</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.1.3...v13.1.4">https://github.com/sindresorhus/globby/compare/v13.1.3...v13.1.4</a></p>
<h2>v13.1.3</h2>
<ul>
<li>Fix an edge-case bug (<a
href="https://redirect.github.com/sindresorhus/globby/issues/242">#242</a>)
917670c</li>
</ul>
<p><a
href="https://github.com/sindresorhus/globby/compare/v13.1.2...v13.1.3">https://github.com/sindresorhus/globby/compare/v13.1.2...v13.1.3</a></p>
<h2>v13.1.2</h2>
<ul>
<li>Make <code>ignoreFiles</code> option accept readonly arrays (<a
href="https://redirect.github.com/sindresorhus/globby/issues/235">#235</a>)
810caae</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/globby/commit/c000568bd20c97d94397c71ec22df4e1c5f41d47"><code>c000568</code></a>
14.0.2</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/f6002506ac2ea4340ffed0afffcbf90af4343572"><code>f600250</code></a>
Fix types</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/b0d7330942a3d36a12056f3a1257f676a534b6ea"><code>b0d7330</code></a>
14.0.1</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/a85078ec3e99192d170bc87ea0623dc16194faa6"><code>a85078e</code></a>
Meta tweaks</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/af5d139b8e2bb49a3033d4a68ab85f3447c50198"><code>af5d139</code></a>
Fix <code>expandDirectories.extension</code> option (<a
href="https://redirect.github.com/sindresorhus/globby/issues/263">#263</a>)</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/3a28601f4c2ee0cb1cea6859c0ff8c6c878a5032"><code>3a28601</code></a>
Fix read permission error on ignore files search (<a
href="https://redirect.github.com/sindresorhus/globby/issues/259">#259</a>)</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/bd76374396886157357883b2223a342ff983b032"><code>bd76374</code></a>
14.0.0</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/3bd00a64a97e603e4966a625ad2c1ef7178158c8"><code>3bd00a6</code></a>
Add <code>convertPathToPattern()</code> method</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/2c06ae52cd46a9c85dd9029023c02165ee40369d"><code>2c06ae5</code></a>
Require Node.js 18</li>
<li><a
href="https://github.com/sindresorhus/globby/commit/76c70abf8eeffe6b01457f83a2a1ef38ef9d6b20"><code>76c70ab</code></a>
13.2.2</li>
<li>Additional commits viewable in <a
href="https://github.com/sindresorhus/globby/compare/v11.0.1...v14.0.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=globby&package-manager=npm_and_yarn&previous-version=11.0.1&new-version=14.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sam Rose <[email protected]>
  • Loading branch information
dependabot[bot] and sam-b-rose committed Jul 10, 2024
1 parent d71b3a2 commit b0c2e12
Show file tree
Hide file tree
Showing 17 changed files with 369 additions and 87 deletions.
359 changes: 325 additions & 34 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion polaris-for-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@types/node": "^20.10.0",
"@types/vscode": "^1.64.0",
"globby": "^11.1.0",
"globby": "^14.0.2",
"vsce": "^2.15.0"
}
}
2 changes: 1 addition & 1 deletion polaris-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"homepage": "https://polaris.shopify.com/icons",
"devDependencies": {
"@svgr/core": "^4.3.3",
"globby": "^11.1.0",
"globby": "^14.0.2",
"hast-util-select": "^3.0.0",
"js-yaml": "^4.0.0",
"rehype-parse": "^7.0.1",
Expand Down
4 changes: 2 additions & 2 deletions polaris-icons/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import * as path from 'path';
import {createFilter} from '@rollup/pluginutils';
import {babel} from '@rollup/plugin-babel';
import virtual from '@rollup/plugin-virtual';
import globby from 'globby';
import {globbySync} from 'globby';
import jsYaml from 'js-yaml';
import svgr from '@svgr/core';

const convert = svgr.default;
const iconBasePath = new URL('./icons', import.meta.url).pathname;
const iconPaths = globby.sync(path.join(iconBasePath, '*.yml'));
const iconPaths = globbySync(path.join(iconBasePath, '*.yml'));

const iconExports = [];
const iconTypes = [];
Expand Down
2 changes: 1 addition & 1 deletion polaris-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@shopify/polaris-tokens": "^9.2.0",
"@shopify/stylelint-polaris": "^16.0.3",
"chalk": "^4.1.0",
"globby": "11.0.1",
"globby": "14.0.2",
"is-git-clean": "^1.1.0",
"jscodeshift": "^0.13.1",
"meow": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions polaris-migrator/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {babel} from '@rollup/plugin-babel';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import globby from 'globby';
import {globbySync} from 'globby';

const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json')));

const extensions = ['.js', '.jsx', '.ts', '.tsx'];

const migrationPaths = globby.sync('./src/migrations/*!(tests)/*.ts');
const migrationPaths = globbySync('./src/migrations/*!(tests)/*.ts');

/** @type {import('rollup').RollupOptions} */
export default {
Expand Down
4 changes: 2 additions & 2 deletions polaris-migrator/src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from 'path';
import * as jscodeshift from 'jscodeshift/src/Runner';
import chalk from 'chalk';
import isGitClean from 'is-git-clean';
import globby from 'globby';
import {globbySync} from 'globby';

export interface MigrateOptions {
dry?: boolean;
Expand Down Expand Up @@ -37,7 +37,7 @@ export async function migrate(
checkGitStatus(options.force);
}

const filepaths = globby.sync(files, {cwd: process.cwd()});
const filepaths = globbySync(files, {cwd: process.cwd()});
if (filepaths.length === 0) {
throw new Error(`No files found for ${files}`);
}
Expand Down
2 changes: 1 addition & 1 deletion polaris-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"change-case": "^3.1.0",
"chromatic": "^6.5.4",
"concurrently": "^8.2.2",
"globby": "^11.1.0",
"globby": "^14.0.2",
"http-server": "^14.1.1",
"js-yaml": "^4.1.0",
"postcss": "^8.3.1",
Expand Down
25 changes: 13 additions & 12 deletions polaris-react/scripts/build-validate.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
const assert = require('assert').strict;
const fs = require('fs');

const globby = require('globby');

let globby;
const packageJSON = require('../package.json');

// Validation to assert the output of the build.

validateStandardBuild();
validateEsNextBuild();
validateAncillaryOutput();
validateVersionReplacement();

function validateStandardBuild() {
(async () => {
globby = (await import('globby')).globby;
await validateStandardBuild();
validateEsNextBuild();
validateAncillaryOutput();
await validateVersionReplacement();
})();

async function validateStandardBuild() {
// Standard build
assert.ok(fs.existsSync('./build/cjs/index.js'));
assert.ok(fs.existsSync('./build/esm/index.js'));
Expand All @@ -21,7 +22,7 @@ function validateStandardBuild() {
// Assert it uses named exports rather than properties from the React default
// export to help tree-shaking.
// React.createElement and React.Fragment are the allowed exceptions
const files = globby.sync('./build/cjs/**/*.js');
const files = await globby('./build/cjs/**/*.js');
assert.notStrictEqual(files.length, 0);
const filesContainingUnwantedReactUsage = [];
files.forEach((file) => {
Expand Down Expand Up @@ -93,8 +94,8 @@ function validateAncillaryOutput() {
assert.ok(fs.existsSync('./build/ts/src/index.d.ts'));
}

function validateVersionReplacement() {
const files = globby.sync('./build/**/*.{js,mjs,esnext,css}');
async function validateVersionReplacement() {
const files = await globby('./build/**/*.{js,mjs,esnext,css}');

assert.notStrictEqual(files.length, 0);

Expand Down
10 changes: 5 additions & 5 deletions polaris.shopify.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"next-build": "next build",
"create-component": "generact --root src/components src/components/Template/Template.tsx",
"gen-sitemap": "pnpm next-sitemap",
"get-props": "./scripts/get-props/src/get-props.ts",
"gen-assets": "pnpm get-props && ts-node ./scripts/gen-assets.ts",
"gen-colors": "ts-node ./scripts/gen-colors.ts",
"get-props": "tsx ./scripts/get-props/src/get-props.ts",
"gen-assets": "pnpm get-props && tsx ./scripts/gen-assets.ts",
"gen-colors": "tsx ./scripts/gen-colors.ts",
"test": "jest",
"postinstall": "patch-package"
},
Expand Down Expand Up @@ -90,7 +90,7 @@
"frontmatter": "^0.0.3",
"generact": "^0.4.0",
"get-site-urls": "3.0.0-alpha.1",
"globby": "^11.1.0",
"globby": "^14.0.2",
"inter-ui": "3.19.3",
"is-ci": "^3.0.1",
"js-yaml": "^4.1.0",
Expand All @@ -103,7 +103,7 @@
"sass": "^1.49.9",
"satori": "^0.10.11",
"style-loader": "^3.3.1",
"ts-node": "^10.7.0",
"tsx": "4.16.2",
"typescript": "^4.9.3",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.0"
Expand Down
11 changes: 5 additions & 6 deletions polaris.shopify.com/pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
} from 'next';
import Link from 'next/link';
import fs from 'fs';
import globby from 'globby';
import {globbySync} from 'globby';
import {metaThemeDefault as tokenGroups} from '@shopify/polaris-tokens';
import mapValues from 'lodash.mapvalues';

Expand Down Expand Up @@ -143,7 +143,7 @@ function makeSerializable<T extends Record<string, any> = Record<string, any>>(
const getRichCards = async (
pathGlob: string,
): Promise<SortedRichCardGridProps[]> => {
const markdownFiles = globby.sync(pathGlob, {onlyFiles: true});
const markdownFiles = globbySync(pathGlob, {onlyFiles: true});

return (
(
Expand Down Expand Up @@ -380,10 +380,9 @@ function fileShouldNotBeRenderedWithCatchAllTemplate(
}

export const getStaticPaths: GetStaticPaths = async () => {
const paths = globby
// Recursive search for all markdown files (globby requires posix paths)
// Note: files prefixed with an underscore are ignored
.sync(`${contentDir}/**/!(_)*.mdx`)
// Recursive search for all markdown files (globby requires posix paths)
// Note: files prefixed with an underscore are ignored
const paths = globbySync(`${contentDir}/**/!(_)*.mdx`)
.map(extractSlugFromPath)
.filter(fileShouldNotBeRenderedWithCatchAllTemplate);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import globby from 'globby';
import {globbySync} from 'globby';
import path from 'path';
import {VFile} from 'vfile';
import type {GetStaticPaths, GetStaticProps} from 'next';
Expand Down Expand Up @@ -178,8 +178,7 @@ export const getStaticProps: GetStaticProps<

export const getStaticPaths: GetStaticPaths = async () => {
const globPath = path.resolve(process.cwd(), 'content/components/**/*.mdx');
const paths = globby
.sync(globPath)
const paths = globbySync(globPath)
.filter((path) => !path.endsWith('index.mdx'))
.map((path) =>
path.replace(`${process.cwd()}/content`, '').replace('.mdx', ''),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {GetStaticProps} from 'next';
import fs from 'fs';
import path from 'path';
import globby from 'globby';
import {globbySync} from 'globby';
import Longform from '../../../../src/components/Longform';
import Markdown from '../../../../src/components/Markdown';
import Page from '../../../../src/components/Page';
Expand Down Expand Up @@ -64,9 +64,9 @@ function indexPageMetadata() {

function ruleListMarkdown(directory: string): string {
const globPath = [`${directory}/*.mdx`];
const rulePagePaths = globby
.sync(globPath)
.filter((path) => !path.endsWith(`${rulesPath}/index.mdx`));
const rulePagePaths = globbySync(globPath).filter(
(path) => !path.endsWith(`${rulesPath}/index.mdx`),
);

const content: {[key: string]: string[]} = {};
rulePagePaths.forEach((markdownFilePath) => {
Expand Down
4 changes: 2 additions & 2 deletions polaris.shopify.com/scripts/change-file-structure.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import path from 'path';
import fs from 'fs';
import globby from 'globby';
import {globbySync} from 'globby';

const pathGlob = path.join(process.cwd(), 'content/**/index.mdx');

const filePaths = globby.sync(pathGlob);
const filePaths = globbySync(pathGlob);

filePaths.forEach((filePath) => {
const segments = filePath.split('/');
Expand Down
2 changes: 1 addition & 1 deletion polaris.shopify.com/scripts/gen-cache-json.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import globby from 'globby';
import {globby} from 'globby';
import {existsSync} from 'fs';
import {mkdir, writeFile, readFile} from 'fs/promises';
import matter from 'gray-matter';
Expand Down
2 changes: 1 addition & 1 deletion polaris.shopify.com/scripts/get-props/src/get-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as ts from 'typescript';
import * as fs from 'fs';
import path from 'path';
import globby from 'globby';
import {globby} from 'globby';
import {Type, FilteredTypes, AllTypes} from '../../../src/types';

type NodeParser = (
Expand Down
10 changes: 1 addition & 9 deletions polaris.shopify.com/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,5 @@
"constants.js",
"../polaris-tokens/dist"
],
"exclude": ["node_modules", "scripts/get-props/testData"],
"ts-node": {
"transpileOnly": true,
"files": true,
"compilerOptions": {
"module": "CommonJS",
"jsx": "react"
}
}
"exclude": ["node_modules", "scripts/get-props/testData"]
}

0 comments on commit b0c2e12

Please sign in to comment.