Skip to content

Commit 0e07815

Browse files
sync latest checkout library changes (#1201)
* sync latest checkout library changes - Tracking field additions - draftOrder and draftOrderTotals refactor - Address autocomplete options - fix country & region matching * sync latest checkout localizations * include changeset * add missing fast-deep-equal package * fix CheckoutFormSchema to prevent is excessively deep and possibly infinite zod defintions * remove environment switching and rely on env var * unused code and comment cleanup * remove reliance on session.environment in favor of env var * remove getHostByEnvironment for server components * fix server indentation * setup and fix biome issues * remove unused square return * fix gql tada types
1 parent a71e801 commit 0e07815

File tree

190 files changed

+34199
-26813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+34199
-26813
lines changed

.changeset/warm-clouds-occur.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@godaddy/localizations": patch
3+
"@godaddy/react": patch
4+
---
5+
6+
- Add latest translations.
7+
- Add address autocomplete feature flag and US support for address autocomplete.
8+
- Update tracking events.
9+
- Improved address reset logic in the checkout form.
10+
- Fix issues with country data missing regions codes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This monorepo contains the following packages:
4646
| Package | Description | NPM |
4747
|---------|-------------|-----|
4848
| [`eslint-config-godaddy`](/packages/eslint-config-godaddy) | Base ESLint configuration for ES6 JavaScript | [![npm](https://img.shields.io/npm/v/eslint-config-godaddy.svg)](https://www.npmjs.com/package/eslint-config-godaddy) |
49-
| [`eslint-config-godaddy-react`](/packages/eslint-config-godaddy-react) | ESLint configuration for React applications | [![npm](https://img.shields.io/npm/v/eslint-config-godaddy-react.svg)](https://www.npmjs.com/package/eslint-config-godaddy-react) |
49+
| [`eslint-config-godaddy-react`](/packages/eslint-config-godaddy-react) | ESLint configuration for React applications | [![npm](https://img.shields.io/npm/v/eslint-config-godaddy-svg)](https://www.npmjs.com/package/eslint-config-godaddy-react) |
5050
| [`eslint-config-godaddy-typescript`](/packages/eslint-config-godaddy-typescript) | ESLint configuration for TypeScript applications | [![npm](https://img.shields.io/npm/v/eslint-config-godaddy-typescript.svg)](https://www.npmjs.com/package/eslint-config-godaddy-typescript) |
5151
| [`eslint-config-godaddy-react-typescript`](/packages/eslint-config-godaddy-react-typescript) | ESLint configuration for React + TypeScript applications | [![npm](https://img.shields.io/npm/v/eslint-config-godaddy-react-typescript.svg)](https://www.npmjs.com/package/eslint-config-godaddy-react-typescript) |
5252
| [`biome-config-godaddy`](/packages/biome-config-godaddy) | Fast Rust-based alternative to ESLint and Prettier using Biome | [![npm](https://img.shields.io/npm/v/biome-config-godaddy.svg)](https://www.npmjs.com/package/biome-config-godaddy) |

packages/localizations/biome.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
3+
"extends": ["biome-config-godaddy/biome.json"]
4+
}
Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
{
2-
"name": "@godaddy/localizations",
3-
"version": "1.0.0",
4-
"description": "Internationalization localizations for GoDaddy checkout components",
5-
"type": "module",
6-
"types": "./dist/index.d.ts",
7-
"files": [
8-
"dist"
9-
],
10-
"exports": {
11-
".": {
12-
"types": "./dist/index.d.ts",
13-
"import": "./dist/index.js",
14-
"default": "./dist/index.js"
15-
}
16-
},
17-
"scripts": {
18-
"dev": "tsdown --watch",
19-
"build": "tsdown",
20-
"typecheck": "tsc --noEmit"
21-
},
22-
"keywords": [
23-
"godaddy",
24-
"checkout",
25-
"localization",
26-
"i18n",
27-
"internationalization"
28-
],
29-
"license": "MIT",
30-
"devDependencies": {
31-
"@types/node": "^22.13.1",
32-
"tsdown": "^0.15.6",
33-
"typescript": "~5.7.3"
34-
},
35-
"publishConfig": {
36-
"registry": "https://registry.npmjs.org/"
37-
}
2+
"name": "@godaddy/localizations",
3+
"version": "1.0.0",
4+
"description": "Internationalization localizations for GoDaddy checkout components",
5+
"type": "module",
6+
"types": "./dist/index.d.ts",
7+
"files": ["dist"],
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"import": "./dist/index.js",
12+
"default": "./dist/index.js"
13+
}
14+
},
15+
"scripts": {
16+
"dev": "tsdown --watch",
17+
"build": "tsdown",
18+
"typecheck": "tsc --noEmit",
19+
"lint": "biome check .",
20+
"lint:fix": "biome check --write ."
21+
},
22+
"keywords": ["godaddy", "checkout", "localization", "i18n", "internationalization"],
23+
"license": "MIT",
24+
"devDependencies": {
25+
"@biomejs/biome": "^2.3.2",
26+
"biome-config-godaddy": "workspace:*",
27+
"@types/node": "^22.13.1",
28+
"tsdown": "^0.15.6",
29+
"typescript": "~5.7.3"
30+
},
31+
"publishConfig": {
32+
"registry": "https://registry.npmjs.org/"
33+
}
3834
}

0 commit comments

Comments
 (0)