Skip to content

Commit

Permalink
Release 31-10-24: Updated 9 package versions (#549)
Browse files Browse the repository at this point in the history
@shopify/theme-language-server-common: 1.14.0 -> 2.0.0 (major)
theme-check-vscode: 2.6.0 -> 3.0.0 (major)
@shopify/theme-check-common: 2.9.2 -> 3.0.0 (major)
@shopify/codemirror-language-client: 0.6.0 -> 0.7.0 (minor)
@shopify/theme-check-browser: 2.9.2 -> 3.0.0 (major)
@shopify/theme-check-node: 2.9.2 -> 3.0.0 (major)
@shopify/theme-language-server-browser: 1.14.0 -> 2.0.0 (major)
@shopify/theme-language-server-node: 1.14.0 -> 2.0.0 (major)
@shopify/theme-check-docs-updater: 2.9.2 -> 3.0.0 (major)
  • Loading branch information
charlespwd authored Oct 31, 2024
1 parent 5fab0e9 commit 6af0983
Show file tree
Hide file tree
Showing 29 changed files with 393 additions and 168 deletions.
11 changes: 0 additions & 11 deletions .changeset/brown-phones-peel.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/curly-books-end.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dry-adults-jump.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/early-buttons-jump.md

This file was deleted.

21 changes: 0 additions & 21 deletions .changeset/hungry-cups-fry.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/light-ways-sin.md

This file was deleted.

29 changes: 0 additions & 29 deletions .changeset/moody-turkeys-switch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-comics-reflect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-balloons-provide.md

This file was deleted.

26 changes: 0 additions & 26 deletions .changeset/stale-swans-draw.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/codemirror-language-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @shopify/codemirror-language-client

## 0.7.0

### Minor Changes

- 4b574c1: Expose language client in CodeMirrorLanguageClient

## 0.6.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/codemirror-language-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/codemirror-language-client",
"version": "0.6.0",
"version": "0.7.0",
"description": "A Language Client for CodeMirror",
"author": "CP Clermont <[email protected]>",
"homepage": "https://github.com/Shopify/theme-tools/tree/main/packages/codemirror-language-client#readme",
Expand Down Expand Up @@ -51,8 +51,8 @@
"@codemirror/theme-one-dark": "^6.1.2",
"@codemirror/view": "^6.9.2",
"@replit/codemirror-vim": "^6.2.1",
"@shopify/theme-check-docs-updater": "^2.9.1",
"@shopify/theme-language-server-browser": "^1.13.0",
"@shopify/theme-check-docs-updater": "^3.0.0",
"@shopify/theme-language-server-browser": "^2.0.0",
"@shopify/lang-jsonc": "^1.0.0",
"@types/markdown-it": "^13.0.4",
"codemirror": "^6.0.1",
Expand Down
16 changes: 12 additions & 4 deletions packages/release-orchestrator/src/messaging.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { spawn } from 'node:child_process';
import { generateMarkdown } from './generate-markdown';
import { getCurrentDateFormatted } from './get-current-date-formatted';
import { run } from './utils';
Expand All @@ -6,10 +7,14 @@ import type { StatusProperty } from './types';
const buildGithubPRLink = (branchName: string, title: string, description: string): string => {
const encodedTitle = encodeURIComponent(title);
const encodedDescription = encodeURIComponent(description);

const url = `https://github.com/Shopify/theme-tools/compare/${branchName}?expand=1&title=${encodedTitle}&body=${encodedDescription}`;

return url;
if (encodedDescription.length > 2083) {
console.log(
'The PR description is too long to be included in the URL. The PR description has been placed in your clipboard.',
);
return `https://github.com/Shopify/theme-tools/compare/${branchName}?expand=1&title=${encodedTitle}`;
} else {
return `https://github.com/Shopify/theme-tools/compare/${branchName}?expand=1&title=${encodedTitle}&body=${encodedDescription}`;
}
};

const noop = () => {};
Expand All @@ -34,6 +39,9 @@ ${prLink}
// from terminal when you don't have to :)
run(`open '${prLink}'`).then(noop, noop);

// Copy the pr description to clipboard in case the pr description is too long
spawn('pbcopy').stdin.end(prDescription);

console.log(message);
};

Expand Down
27 changes: 27 additions & 0 deletions packages/theme-check-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @shopify/theme-check-browser

## 3.0.0

### Major Changes

- 4b574c1: [Breaking] Replace fs-based dependency injections with AbstractFileSystem injection

```diff
runChecks(theme, {
- getDefaultTranslations,
- getDefaultLocale,
- getDefaultSchemaLocale,
- getDefaultSchemaTranslations,
- fileExists,
- fileSize,
+ fs: new FileSystemImpl(),
themeDocset,
jsonValidationSet,
})
```

### Patch Changes

- Updated dependencies [4b574c1]
- Updated dependencies [4b574c1]
- Updated dependencies [5fab0e9]
- @shopify/theme-check-common@3.0.0

## 2.9.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-check-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-browser",
"version": "2.9.2",
"version": "3.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand All @@ -26,6 +26,6 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-check-common": "2.9.2"
"@shopify/theme-check-common": "3.0.0"
}
}
36 changes: 36 additions & 0 deletions packages/theme-check-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @shopify/theme-check-common

## 3.0.0

### Major Changes

- 4b574c1: [Breaking] Replace absolute path concerns with URIs

This implies a couple of changes:

- `Config` now holds a `rootUri` instead of `root` path.
- `loadConfig` injections needs to change their return value accordingly
- In checks,
- The context helper `absolutePath` has been replaced by `toUri`
- The context helper `relativePath` has been replaced by `toRelativePath`
- `SourceCode` objects now hold a `uri` instead of a `path`
- `toSourceCode` now accepts a `uri` instead of a `path`

- 4b574c1: [Breaking] Replace fs-based dependency injections with AbstractFileSystem injection

```diff
runChecks(theme, {
- getDefaultTranslations,
- getDefaultLocale,
- getDefaultSchemaLocale,
- getDefaultSchemaTranslations,
- fileExists,
- fileSize,
+ fs: new FileSystemImpl(),
themeDocset,
jsonValidationSet,
})
```

### Patch Changes

- 5fab0e9: (Internal) Add path.basename util

## 2.9.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-check-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-common",
"version": "2.9.2",
"version": "3.0.0",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/theme-check-docs-updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @shopify/theme-check-docs-updater

## 3.0.0

### Patch Changes

- Updated dependencies [4b574c1]
- Updated dependencies [4b574c1]
- Updated dependencies [5fab0e9]
- @shopify/theme-check-common@3.0.0

## 2.9.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-check-docs-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-docs-updater",
"version": "2.9.2",
"version": "3.0.0",
"description": "Scripts to initialize theme-check data with assets from the theme-liquid-docs repo.",
"main": "dist/index.js",
"author": "Albert Chu <[email protected]>",
Expand Down Expand Up @@ -30,7 +30,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-check-common": "^2.9.2",
"@shopify/theme-check-common": "^3.0.0",
"env-paths": "^2.2.1",
"node-fetch": "^2.6.11"
},
Expand Down
28 changes: 28 additions & 0 deletions packages/theme-check-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @shopify/theme-check-node

## 3.0.0

### Major Changes

- 4b574c1: [Breaking] Replace fs-based dependency injections with AbstractFileSystem injection

```diff
runChecks(theme, {
- getDefaultTranslations,
- getDefaultLocale,
- getDefaultSchemaLocale,
- getDefaultSchemaTranslations,
- fileExists,
- fileSize,
+ fs: new FileSystemImpl(),
themeDocset,
jsonValidationSet,
})
```

### Patch Changes

- Updated dependencies [4b574c1]
- Updated dependencies [4b574c1]
- Updated dependencies [5fab0e9]
- @shopify/theme-check-common@3.0.0
- @shopify/theme-check-docs-updater@3.0.0

## 2.9.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/theme-check-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopify/theme-check-node",
"version": "2.9.2",
"version": "3.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": "CP Clermont <[email protected]>",
Expand Down Expand Up @@ -33,8 +33,8 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@shopify/theme-check-common": "2.9.2",
"@shopify/theme-check-docs-updater": "2.9.2",
"@shopify/theme-check-common": "3.0.0",
"@shopify/theme-check-docs-updater": "3.0.0",
"glob": "^8.0.3",
"vscode-uri": "^3.0.7",
"yaml": "^2.3.0"
Expand Down
Loading

0 comments on commit 6af0983

Please sign in to comment.