Skip to content

Commit 92b2e8c

Browse files
authored
Merge branch 'main' into feat/add-rating-field
2 parents a361429 + 3498a76 commit 92b2e8c

31 files changed

+23924
-19807
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
**Dependencies**
3939

40-
- [ ] Committed the `yarn.lock` file when there were changes to the packages
40+
- [ ] Committed the `pnpm-lock.yaml` file when there were changes to the packages
4141

4242
**Documentation**
4343

.github/workflows/ci.yml

+18-7
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,31 @@ jobs:
2121
with:
2222
fetch-depth: 2
2323

24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 9.15.5
28+
cache: 'pnpm'
29+
2430
- name: Setup Node.js environment
2531
uses: actions/setup-node@v4
2632
with:
2733
node-version: 18
28-
cache: 'yarn'
2934

3035
- name: Install dependencies
31-
run: yarn --frozen-lockfile
36+
run: pnpm i
3237

3338
- name: Build
34-
run: yarn build
39+
run: pnpm build
3540

3641
- name: Size
37-
run: yarn size
42+
run: pnpm size
3843

3944
- name: Lint
40-
run: yarn lint
45+
run: pnpm lint
4146

4247
- name: Test
43-
run: yarn test
48+
run: pnpm test
4449

4550
- name: Publish to Chromatic
4651
uses: chromaui/action@latest
@@ -64,6 +69,12 @@ jobs:
6469
- name: Clone starter
6570
run: git clone https://github.com/vtex-sites/starter.store.git starter
6671

72+
- name: Install specific Yarn version
73+
run: npm install -g [email protected] # https://github.com/yarnpkg/yarn/issues/9015
74+
75+
- name: Verify Yarn version
76+
run: yarn --version
77+
6778
- name: Install the packages on starter
6879
run: |
6980
cd starter
@@ -74,7 +85,7 @@ jobs:
7485
- name: Install dependencies in starter
7586
run: |
7687
cd starter
77-
yarn install --frozen-lockfile
88+
yarn install
7889
7990
- name: Build starter
8091
run: |

.github/workflows/release.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ jobs:
2323
token: ${{ secrets.VTEX_GITHUB_BOT_TOKEN }}
2424
fetch-depth: 2
2525

26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 9.15.5
30+
2631
- name: Setup Node.js environment
2732
uses: actions/setup-node@v4
2833
with:
2934
node-version: 18
30-
cache: 'yarn'
35+
cache: 'pnpm'
3136
registry-url: 'https://registry.npmjs.org'
3237

3338
- name: Configure CI Git User
@@ -36,22 +41,22 @@ jobs:
3641
git config user.email [email protected]
3742
3843
- name: Install dependencies
39-
run: yarn
44+
run: pnpm i
4045

4146
- name: Build
42-
run: yarn build
47+
run: pnpm build
4348

4449
- name: Size
45-
run: yarn size
50+
run: pnpm size
4651

4752
- name: Lint
48-
run: yarn lint
53+
run: pnpm lint
4954

5055
- name: Test
51-
run: yarn test
56+
run: pnpm test
5257

5358
- name: Publish
54-
run: yarn release
59+
run: pnpm release
5560
env:
5661
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5762

.husky/pre-commit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
yarn install
2-
yarn lint-staged
1+
pnpm i
2+
pnpm lint-staged

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link-workspace-packages=true

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.15.2](https://github.com/vtex/faststore/compare/v3.15.1...v3.15.2) (2025-02-05)
7+
8+
### Bug Fixes
9+
10+
- align ts versions ([#2673](https://github.com/vtex/faststore/issues/2673)) ([64035df](https://github.com/vtex/faststore/commit/64035df4d15334fffe66b55d81f475449bc7839e))
11+
612
## [3.15.1](https://github.com/vtex/faststore/compare/v3.15.0...v3.15.1) (2025-02-04)
713

814
### Bug Fixes

CONTRIBUTING.MD

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Before you begin, make sure you have the following installed on your local machi
88

99
- [Git](https://git-scm.com)
1010
- [Node.js](https://nodejs.org/en)
11-
- [Yarn](https://yarnpkg.com/)
11+
- [Pnpm](https://pnpm.io)
1212
- [Turbo](https://turbo.build/repo/docs/getting-started/installation#installing-turbo)
13-
- Your Preferred Code Editor (VSCode, Sublime, etc.)
13+
- Your Preferred Code Editor (VSCode, Sublime, Zed, etc.)
1414

1515
## 2. Getting Started
1616

@@ -28,17 +28,17 @@ Fork the repository (click the <kbd>Fork</kbd> button at the top right of
2828

2929
### Setting Up the Environment
3030

31-
1. Run `yarn` at the root of the repository.
31+
1. Run `pnpm i` at the root of the repository.
3232

33-
2. Run `yarn build` at the root of the repository.
33+
2. Run `pnpm build` at the root of the repository.
3434

35-
3. Run `yarn turbo run dev --filter={packageName}` to run a package individually.
35+
3. Run `pnpm turbo run dev --filter={packageName}` to run a package individually.
3636

3737
> For example, if you want to run the `@faststore/core` package, at the root of the repository run:
3838
>
39-
> `yarn turbo run dev --filter=@faststore/core`
39+
> `pnpm turbo run dev --filter=@faststore/core`
4040
41-
**Note**: If you encounter issues during the setup process, please check if your current version of Yarn, Turbo, and Node.js are matching the versions specified in the package.json file.
41+
**Note**: If you encounter issues during the setup process, please check if your current version of Pnpm, Turbo, and Node.js are matching the versions specified in the package.json file.
4242

4343
## 3. Working on an Issue
4444

@@ -67,7 +67,7 @@ To test your changes in a store, you will need to create a pull request (for mor
6767
<img width="502" alt="image" src="https://vtexhelp.vtexassets.com/assets/docs/src/fs-package-local-install-cli___692a64eba8c0b3745c468176bfc610fb.png
6868
"></img>
6969

70-
4. Run `yarn` to install the updates and test your changes in the store.
70+
4. Run `pnpm` to install the updates and test your changes in the store.
7171

7272
**Note**: This link is intended for testing purposes only. Please avoid using it in your store. Once the published version of your package is available, make sure to update the link accordingly.
7373

lerna.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "3.15.1",
3-
"npmClient": "yarn",
2+
"version": "3.15.2",
3+
"npmClient": "pnpm",
44
"command": {
55
"publish": {
66
"message": "[no ci] Release: %v"

package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"private": true,
77
"scripts": {
8+
"preinstall": "npx only-allow pnpm",
89
"build": "turbo run build --log-order=grouped",
910
"dev": "turbo run dev --parallel --no-cache",
1011
"lint": "biome check .",
@@ -17,9 +18,6 @@
1718
"clean": "turbo run clean && rm -rf node_modules",
1819
"prepare": "husky"
1920
},
20-
"workspaces": [
21-
"packages/*"
22-
],
2321
"devDependencies": {
2422
"@biomejs/biome": "1.9.4",
2523
"husky": "9.1.7",
@@ -33,17 +31,17 @@
3331
"stylelint-order": "^5.0.0",
3432
"stylelint-scss": "^4.0.1",
3533
"turbo": "^2.3.4",
36-
"typescript": "^5.3.2"
34+
"typescript": "5.3.2"
3735
},
3836
"version": "0.0.0",
3937
"volta": {
4038
"node": "18.19.0",
41-
"yarn": "1.22.22"
39+
"pnpm": "9.15.5"
4240
},
4341
"dependencies": {},
44-
"packageManager": "[email protected]",
42+
"packageManager": "[email protected]",
4543
"lint-staged": {
46-
"*.{ts,js,tsx,jsx,json}": "yarn lint:fix",
44+
"*.{ts,js,tsx,jsx,json}": "pnpm lint:fix",
4745
"*.scss": "stylelint --fix"
4846
}
4947
}

packages/api/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
## Installation
2525

26-
From the command line in your project directory, run yarn add `@faststore/api`.
26+
From the command line in your project directory, run pnpm add `@faststore/api`.
2727

2828
```cmd
29-
yarn add @faststore/api
29+
pnpm add @faststore/api
3030
```
3131

3232
## Usage

packages/api/package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"node": ">=18"
2424
},
2525
"scripts": {
26-
"dev": "concurrently \"yarn generate -w\" \"tsc --watch\" \"yarn dev:graphql\"",
26+
"dev": "concurrently \"pnpm run generate -w\" \"tsc --watch\" \"pnpm run dev:graphql\"",
2727
"dev:graphql": "nodemon --watch src --ext graphql --exec \"copyfiles \"src/**/*.graphql\" dist/esm\"",
2828
"dev:server": "tsx --no-cache ./local/server.ts",
29-
"build": "graphql-codegen --config codegen.yml && (yarn build:cjs && yarn build:esm)",
29+
"build": "graphql-codegen --config codegen.yml && (pnpm build:cjs && pnpm build:esm)",
3030
"build:cjs": "tsc --module commonjs --moduleResolution node10 --outDir dist/cjs && copyfiles \"src/**/*.graphql\" dist/cjs",
3131
"build:esm": "tsc && copyfiles \"src/**/*.graphql\" dist/esm",
3232
"test": "jest",
@@ -36,10 +36,14 @@
3636
"@envelop/on-resolve": "^4.1.1",
3737
"@graphql-tools/load-files": "^7.0.0",
3838
"@graphql-tools/schema": "^9.0.0",
39+
"@graphql-tools/utils": "^10.2.0",
3940
"@opentelemetry/exporter-logs-otlp-grpc": "^0.39.1",
4041
"@opentelemetry/exporter-trace-otlp-grpc": "^0.39.1",
4142
"@opentelemetry/sdk-logs": "^0.39.1",
4243
"@opentelemetry/sdk-trace-base": "^1.13.0",
44+
"@opentelemetry/api-logs": "^0.39.1",
45+
"@opentelemetry/api": "^1.4.1",
46+
"@opentelemetry/resources": "^1.13.0",
4347
"@rollup/plugin-graphql": "^1.0.0",
4448
"cookie": "^0.7.0",
4549
"dataloader": "^2.1.0",
@@ -56,6 +60,7 @@
5660
"@types/cookie": "^0.6.0",
5761
"@types/express": "^4.17.16",
5862
"@types/sanitize-html": "^2.9.1",
63+
"@types/jest": "29.1.0",
5964
"concurrently": "^6.2.1",
6065
"copyfiles": "^2.4.1",
6166
"express": "^4.17.3",

packages/cli/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [3.15.2](https://github.com/vtex/faststore/compare/v3.15.1...v3.15.2) (2025-02-05)
7+
8+
**Note:** Version bump only for package @faststore/cli
9+
610
## [3.15.1](https://github.com/vtex/faststore/compare/v3.15.0...v3.15.1) (2025-02-04)
711

812
**Note:** Version bump only for package @faststore/cli

packages/cli/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ npm install -g @faststore/cli
3030
$ faststore COMMAND
3131
running command...
3232
$ faststore (--version)
33-
@faststore/cli/3.15.1 linux-x64 node-v18.20.6
33+
@faststore/cli/3.15.2 linux-x64 node-v18.20.6
3434
$ faststore --help [COMMAND]
3535
USAGE
3636
$ faststore COMMAND
@@ -61,7 +61,7 @@ ARGUMENTS
6161
PATH The path where the FastStore being built is. Defaults to cwd.
6262
```
6363

64-
_See code: [dist/commands/build.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/build.js)_
64+
_See code: [dist/commands/build.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/build.js)_
6565

6666
## `faststore cms-sync [PATH]`
6767

@@ -76,7 +76,7 @@ FLAGS
7676
-d, --dry-run
7777
```
7878

79-
_See code: [dist/commands/cms-sync.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/cms-sync.js)_
79+
_See code: [dist/commands/cms-sync.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/cms-sync.js)_
8080

8181
## `faststore create [PATH]`
8282

@@ -93,10 +93,10 @@ DESCRIPTION
9393
Creates a discovery folder based on the starter.store template.
9494
9595
EXAMPLES
96-
$ yarn faststore create discovery
96+
$ pnpm faststore create discovery
9797
```
9898

99-
_See code: [dist/commands/create.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/create.js)_
99+
_See code: [dist/commands/create.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/create.js)_
100100

101101
## `faststore dev [ACCOUNT] [PATH] [PORT]`
102102

@@ -110,7 +110,7 @@ ARGUMENTS
110110
PORT The port where FastStore should run. Defaults to 3000.
111111
```
112112

113-
_See code: [dist/commands/dev.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/dev.js)_
113+
_See code: [dist/commands/dev.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/dev.js)_
114114

115115
## `faststore generate-graphql [PATH]`
116116

@@ -122,7 +122,7 @@ ARGUMENTS
122122
PATH The path where the FastStore GraphQL customization is. Defaults to cwd.
123123
```
124124

125-
_See code: [dist/commands/generate-graphql.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/generate-graphql.js)_
125+
_See code: [dist/commands/generate-graphql.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/generate-graphql.js)_
126126

127127
## `faststore help [COMMAND]`
128128

@@ -156,7 +156,7 @@ ARGUMENTS
156156
PORT The port where FastStore should run. Defaults to 3000.
157157
```
158158

159-
_See code: [dist/commands/start.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/start.js)_
159+
_See code: [dist/commands/start.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/start.js)_
160160

161161
## `faststore test [PATH]`
162162

@@ -168,5 +168,5 @@ ARGUMENTS
168168
PATH The path where the FastStore being tested is. Defaults to cwd.
169169
```
170170

171-
_See code: [dist/commands/test.js](https://github.com/vtex/faststore/blob/v3.15.1/dist/commands/test.js)_
171+
_See code: [dist/commands/test.js](https://github.com/vtex/faststore/blob/v3.15.2/dist/commands/test.js)_
172172
<!-- commandsstop -->

packages/cli/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faststore/cli",
3-
"version": "3.15.1",
3+
"version": "3.15.2",
44
"description": "FastStore CLI",
55
"author": "Emerson Laurentino @emersonlaurentino",
66
"bin": {
@@ -18,7 +18,7 @@
1818
],
1919
"dependencies": {
2020
"@antfu/ni": "^0.21.12",
21-
"@faststore/core": "^3.15.1",
21+
"@faststore/core": "^3.15.2",
2222
"@inquirer/prompts": "^5.1.2",
2323
"@oclif/core": "^1.16.4",
2424
"@oclif/plugin-help": "^5",
@@ -36,6 +36,7 @@
3636
"@types/degit": "^2.8.6",
3737
"@types/fs-extra": "^9.0.13",
3838
"@types/node": "^16.11.63",
39+
"@types/jest": "29.1.0",
3940
"chai": "^4",
4041
"jest": "^29.7.0",
4142
"oclif": "^3",

0 commit comments

Comments
 (0)