Shahed Nasser
1e6d56bc18
feat(create-medusa-app): allow passing project name on command line ( #10755 )
...
Allow passing the project name on the command line:
```bash
npx create-medusa-app@latest my-project
```
2024-12-29 09:41:15 +00:00
github-actions[bot]
198fa53120
chore(docs): Updated API Reference (automated) ( #10685 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2024-12-23 08:35:12 +00:00
olivermrbl
348f866ffe
chore: Version packages
2024-12-20 11:25:36 +01:00
Shahed Nasser
570c85538b
chore: fix redocly circular dependencies ( #10642 )
2024-12-17 19:45:57 +02:00
olivermrbl
a391a29aa8
chore: Version packages
2024-12-17 14:41:05 +01:00
olivermrbl
0e342b491d
chore: Version packages
2024-12-10 14:01:50 +01:00
olivermrbl
4723acd949
chore: Version packages
2024-12-04 18:36:57 +01:00
olivermrbl
e9c1b1127e
chore: Version packages
2024-11-27 15:40:07 +01:00
github-actions[bot]
7865909891
chore(docs): Updated API Reference (automated) ( #10258 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2024-11-25 14:33:22 +00:00
olivermrbl
ccf4e801f3
chore: Version packages
2024-11-25 12:14:36 +01:00
olivermrbl
4245312d8d
chore: Version packages
2024-11-25 09:57:00 +01:00
olivermrbl
d5605656ae
chore: Version packages
2024-11-12 10:10:07 +01:00
olivermrbl
ecece05b72
chore: Version packages
2024-11-11 10:58:20 +01:00
olivermrbl
8feb589659
chore: Release
2024-11-06 21:47:01 +01:00
Harminder Virk
b0f416769f
fix: do not set default host to localhost ( #9957 )
...
Fixes bug introduced by https://github.com/medusajs/medusa/pull/9912
By default the Node.js server listens on the `0.0.0.0` host. However, the related PR changes the host to `localhost` and hence resulted in an unwanted breaking change. This PR reverts the default value assignment and let Node.js decide the host when not explicitly specified.
2024-11-06 17:04:49 +00:00
Harminder Virk
c9a2b42252
fix: log cause property from the error ( #9944 )
...
Fixes: FRMW-2762
This PR fixes the error reporting to include the original error message and the error cause when logging it using the JSON formatter of Winston.
> Side note: There is still a lot of room for improvements in our logging. But that require a overhaul cleanup in multiple places and will require dedicated loggers for commands and APP and special treatment for pretty printing errors.
## Error output in JSON format
**Before**

**After**

2024-11-06 15:43:54 +00:00
Harminder Virk
300ef8dbb9
fix: consider --host flag and HOST env variable ( #9912 )
2024-11-04 14:56:57 +05:30
olivermrbl
4ccab16336
chore: Version packages
2024-10-25 17:19:36 +02:00
Shahed Nasser
92bbd7953b
chore: update links to v2 docs in source code and comments ( #9732 )
2024-10-24 15:18:38 +03:00
Harminder Virk
809c8a6741
fix: missing dependency in dev-cli ( #9730 )
2024-10-23 10:01:39 +02:00
olivermrbl
2fbebb60e3
chore: Release
2024-10-22 20:43:47 +02:00
Oli Juhl
c3418a2b93
chore: Prepare versions + changeset ( #9707 )
...
* chore: Prepare version + changeset
* chore: Bump dependencies
* chore: Update lock-file
2024-10-22 20:31:33 +02:00
Oli Juhl
f1b2d22db7
chore: Remove v2 branches from starters ( #9721 )
...
* chore: Remove v2 branches from starters
* revert imports
2024-10-22 20:00:13 +02:00
Harminder Virk
d77d184729
Fix/production logging ( #9658 )
...
Keep the old format (ie combined) when logging in production.
**Development**

**Production**

2024-10-18 13:11:46 +00:00
Harminder Virk
aa6a28ac56
feature: use application logger to log HTTP requests ( #9655 )
2024-10-18 15:08:55 +05:30
Harminder Virk
68560787e5
breaking: rename package names to be consistent and under @medusajs scope ( #9580 )
2024-10-16 22:28:09 +05:30
Adrien de Peretti
84fa6ccde5
chore: Update admin build/serve configuration ( #9584 )
...
**Breaking changes**
The `outDir` has been deprecated and wont be used anymore, instead all the path are computed internally following these rules
- if admin is not `disabled` and the `build` command is run without the `--admin-only` flag, then the admin output dir will be `.medusa/server/public/admin` and it will be served from that same location from the medusa instance.
- if admin is not `disabled` and the `build` command is run with the `--admin-only` flag, then the admin output dir will be `.medusa/admin` with the purpose of deploying the admin separately. ⚠️ (expect to receive a warning log)
- if the admin is `disabled` and the `build` command is run with the `--admin-only` flag, then fallback to rule number 2
| admin enabled | medusa build --admin-only | output dir |
|---|---|---|
| true | true | `.medusa/admin` ⚠️ (expect to receive a warning log) |
| true | false | `.medusa/server/public/admin` |
| false | true | `.medusa/admin` |
| false | false | none |
```diff
// medusa-config.ts
{
// ...
admin: {
- outDir: 'some/path'
}
}
```
cc @kasperkristensen @sradevski @olivermrbl
2024-10-15 15:59:47 +00:00
Adrien de Peretti
e9383f25e0
fix(utils): update medusa config resolution for consistency ( #9591 )
2024-10-15 11:52:06 -03:00
Harminder Virk
f8e8b276bd
fix: remove default value for the cluster flag ( #9570 )
...
Defining the default value applies the flag automatically and hence activates the cluster mode.
2024-10-14 16:54:13 +00:00
Shahed Nasser
86f744cf3b
fix(create-medusa-app): use db:migrate to run migrations ( #9565 )
2024-10-14 15:54:05 +00:00
Harminder Virk
ad322f2760
breaking: remove deprecated commands and code ( #9521 )
...
* breaking: remove deprecated commands
* feat: remove deprecated code and usages
* refactor: remove more logic around default relations
* fix tests
* remove log
* fix: remove defaultFields usage
* fix: add back accidentally removed code
* refactor: implement feedback
* feat: add --cluster flag to the start command
* refactor: assign limit to defaultLimit property
* fix: breaking code because of removed check
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2024-10-14 20:11:34 +05:30
Adrien de Peretti
eea2bfdef1
chore(cli): Update start description ( #9448 )
...
**What**
Update description of the start command
2024-10-04 15:11:29 +00:00
Harminder Virk
1e046f2b81
feat: allow using typescript path aliases when using ts-node ( #9443 )
2024-10-03 16:56:36 +05:30
Harminder Virk
48e00169d2
breaking: move shared HTTP utils to the framework ( #9402 )
...
Fixes: FRMW-2728, FRMW-2729
After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.
- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-03 09:42:00 +00:00
Stevche Radevski
bffb36cd11
fix: Use the default admin port in create medusa app env definition ( #9439 )
2024-10-03 09:53:57 +02:00
github-actions[bot]
21badd069d
chore(docs): Updated API Reference (v2) ( #9437 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2024-10-03 07:48:54 +00:00
Shahed Nasser
cb5c228a36
fix(create-medusa-app): remove warnings on installation ( #9405 )
2024-10-02 13:27:13 +03:00
Shahed Nasser
a662c4b020
fix(medusa-oas-cli): Fix incorrect import ( #9404 )
...
* fix(medusa-oas-cli): Fix incorrect import
* update redocly config
2024-10-02 10:28:42 +03:00
Harminder Virk
37f4d03b7b
fix: db:rollback and db:generate commands to cast module names to arrays ( #9377 )
...
FIXES: FRMW-2720
2024-09-30 12:17:04 +00:00
Harminder Virk
a578313db9
feature: bundle all modules ( #9324 )
2024-09-30 09:04:03 +02:00
Shahed Nasser
5390c8a845
fix(create-medusa-app): fix publishable api key not saving in .env.local ( #9328 )
2024-09-26 16:43:40 +03:00
Adrien de Peretti
a8e19faf8d
chore: use framework sub paths everywhere ( #9253 )
2024-09-26 16:38:38 +05:30
Harminder Virk
48bea267dc
chore: perform dependencies scan and fix all dependencies ( #9296 )
2024-09-26 14:14:38 +05:30
Adrien de Peretti
ae320ac73f
fix: base tsconfig ( #9309 )
...
* fix: base tsconfig
* WIP
* wi[]
* update integration typescript version
* update lock file
* fix deps
* fix medusa tests runner
2024-09-25 16:31:57 +02:00
Shahed Nasser
ba14d4341f
fix(oas): handle new keys in circular reference patch ( #9218 )
...
Handle new keys in the circular references patch leading to undefined not being iterable error.
2024-09-22 12:44:23 +00:00
Shahed Nasser
6a2a105cf8
fix(oas): support additional props, fix circular references patch, and other fixes ( #9213 )
...
* chore(oas): support additional props, fix circular references patch, and other fixes
* fix description
* description fixes
2024-09-20 17:22:19 +03:00
Shahed Nasser
cf387aafa2
chore: re-add oas tests for generated OAS ( #9036 )
...
* chore: re-add oas tests for generated OAS
* test fix
2024-09-07 08:01:22 +02:00
Adrien de Peretti
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Shahed Nasser
ac30a989f4
feat(create-medusa-app): add publishable API key environment variable to Next.js storefront ( #9029 )
...
When installing with Next.js starter, retrieve the publishable API key seeded and add it to the environment variable in the `.env.local` or `.env.template` file
2024-09-06 09:43:55 +00:00
Shahed Nasser
ba24e6882d
fix(medusa-oas-cli): fix download url ( #8763 )
2024-08-28 14:23:25 +02:00