xyzones
45cf692f5e
fix(medusa-cli): Logger arguments ( #6526 )
2024-03-01 13:03:01 +01:00
Adrien de Peretti
6975eacb33
feat(medusa): Improve add line item to cart perf and transaction management + clustering start command ( #5701 )
2023-12-06 08:53:35 +01:00
Shahed Nasser
240b038006
feat(create-medusa-app): add install Next.js storefront option ( #4968 )
...
* feat(create-medusa-app): add install Next.js storefront option
* added config for yes option
* added more instructions to exit message
* handle duplicate directories and next errors
* use next.js branch
* add line break in storefront question
* pass next.js directory name as env variable
* change question message
* address PR feedback
* fix(medusa-cli): remove .git directory in `new` command
* fix deleting a directory error
2023-09-08 12:17:48 +02:00
Shahed Nasser
30ce35b163
feat(create-medusa-app): add database options ( #4733 )
...
## What
Adds new options for easier usage of the `create-medusa-app` command for regular medusa users.
The following options are added:
- `--skip-db`: Skips creating the database, running migrations, and seeding, and subsequently skips opening the browser. Useful if the developer wants to set the database URL at a later point in the configurations.
- `--db-url <url>`: Skips database creation and sets the database URL to the provided URL. Throws an error if can't connect to the database. Will still run migrations and open the admin after project creation. Useful if the developer already has database created, locally or remotely.
- `--no-migrations`: Skips running migrations, creating admin user, and seeding. If used, it's expected that you pass the `--db-url` option with a url of a database that has all necessary migrations. Otherwise, unexpected errors will occur. Helpful only if combined with `--db-url`
- `--no-browser`: Disables opening the browser at the end of the project creation and only shows success message.
- `--directory-path <path>`: Allows specifying the directory path to install the project in. Useful for testing.
2023-08-15 08:08:54 +00:00
Lacey Pevey
03fb0479c0
feat(medusa): Allow logging to file ( #4696 )
...
* enable additional log transport to file if FILE_NAME env var is set
* change var declaration to const
* Create chilly-geckos-look.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-06 15:14:49 +02:00
Adrien de Peretti
6f1fa244fa
chore(medusa-cli): Cleanup plugin setup ( #4420 )
...
* chore(medusa-cli): Cleanup plugin setup
* fix: logger types
* fix event bus local
* fix event bus redis
* Create late-dragons-collect.md
* move to ts
* remove unused command
* env
* fix
2023-06-28 16:37:25 +02:00
Shahed Nasser
e1f43fd207
chore(create-medusa-app, product, utils, medusa-cli): Resolve string-width dep issue ( #4328 )
2023-06-16 11:31:23 +02:00
Shahed Nasser
f98ba5bde8
feat(create-medusa-app,medusa-cli): Allow clearing project ( #4273 )
...
- Added build step
- Added `--no-boilerplate` option to `create-medusa-app` to allow clearing onboarding files
- Clear project files by default in medusa-cli
2023-06-15 17:31:30 +00:00
Shahed Nasser
8676ee7a2e
feat(medusa,medusa-cli): Added an invite option to the create user command, and allow seeding publishable api keys ( #4192 )
...
* feat(medusa,medusa-cli): Added an invite option to the create user command
* ensure process exits for invites
* addressed PR comments
* allow seeding publishable api keys
2023-06-07 20:34:27 +02:00
Oliver Windall Juhl
260dc55b6f
chore(medusa,medusa-cli): Clean up new command + fix CI ( #4214 )
...
* chore(workflows): Use default starter template in action
* Use postgres by default in new
* Add skip DB flag
* Create thirty-tomatoes-hug.md
* address PR comments
2023-05-31 12:38:44 +02:00
Oliver Windall Juhl
a91987fab3
feat(medusa): Remove sqlite support ( #4026 )
2023-05-17 12:13:36 +02:00
Carlos R. L. Rodrigues
4e9d257d3b
Chore(medusa,utils,types,inventory,stock-location): remove core dependency modules ( #3531 )
2023-03-23 08:07:32 -03:00
Adrien de Peretti
012513b6a1
feat(medusa-cli): Allow to revert migrations from the CLI ( #1353 )
2022-06-13 14:15:09 +02:00
Sebastian Rindom
c56660fca9
feat: new tax api ( #979 )
...
* feat: add tax calculation strategy (#885 )
* feat: add tax calculation strategy
* fix: adds strategy loader
* fix: eslint ignore
* chore: cleanup
* fix: allow plugin overwrites
* fix: allow plugin overwrites
* fix: fake region
* Update packages/medusa/src/loaders/strategies.ts
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* feat: adds tax related db entities + tax provider (#896 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: pr comments
* fix: unit test
* feat: totals service to ts (#911 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: adds TotalsServiceProps
* feat: adds integration tests for automatic tax calculation + shipping tax rates (#945 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: integration test helpers
* fix: adds factories + tests automatic tax rates
* fix: remove verbose
* fix: adds TotalsServiceProps
* fix: add shipping tax lines
* fix: add migration for shipping taxes
* fix: integration tests for shipping taxes
* fix: integration tests for shipping taxes
* fix: jsdoc types
* Feat/manual taxes (#950 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: integration test helpers
* fix: adds factories + tests automatic tax rates
* fix: remove verbose
* fix: adds TotalsServiceProps
* fix: add shipping tax lines
* fix: add migration for shipping taxes
* fix: integration tests for shipping taxes
* fix: integration tests for shipping taxes
* fix: add integration tests for manual taxes
* fix: cart service - cleanup jsdoc
* feat: add /carts/id/taxes to manually calculate taxes
* feat: add integration tests for order tax calculations
* fix: unit tests
* fix: merge
* fix: rm verbose
* fix: unit tests
* fix: object -> cartOrOrder
* fix: rounding
* Feat/complete order w tax lines (#951 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: integration test helpers
* fix: adds factories + tests automatic tax rates
* fix: remove verbose
* fix: adds TotalsServiceProps
* fix: add shipping tax lines
* fix: add migration for shipping taxes
* fix: integration tests for shipping taxes
* fix: integration tests for shipping taxes
* fix: add integration tests for manual taxes
* fix: cart service - cleanup jsdoc
* feat: add /carts/id/taxes to manually calculate taxes
* feat: add integration tests for order tax calculations
* feat: adds cart completion strategy + create order w. tax lines
* fix: unit tests
* fix: merge
* fix: rm verbose
* fix: unit tests
* fix: unit tests
* fix: unit tests
* fix: ensure calculation for list orders
* fix: unit tests
* fix: integration tests
* fix: adds cart order type gaurds
* Docs/tax api (#954 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: integration test helpers
* fix: adds factories + tests automatic tax rates
* fix: remove verbose
* fix: adds TotalsServiceProps
* fix: add shipping tax lines
* fix: add migration for shipping taxes
* fix: integration tests for shipping taxes
* fix: integration tests for shipping taxes
* fix: add integration tests for manual taxes
* fix: cart service - cleanup jsdoc
* feat: add /carts/id/taxes to manually calculate taxes
* feat: add integration tests for order tax calculations
* feat: adds cart completion strategy + create order w. tax lines
* fix: unit tests
* fix: merge
* fix: rm verbose
* fix: unit tests
* fix: unit tests
* fix: unit tests
* fix: ensure calculation for list orders
* fix: unit tests
* fix: integration tests
* docs: documents tax related methods and types
* fix: require either item_id or shipping_method_id
* feat: product type tax rate (#969 )
* feat: adds tax related db entities + tax provider
* fix: add tax provider tests
* fix: add tax service unit tests
* fix: tests + migrations
* feat: totals service to ts
* fix: remove totals.js
* fix: add shipping methods
* fix: add inherited tax lines
* chore: rm tax-line repo
* fix: test
* fix: tests
* fix: tests
* fix: unit test
* fix: integration test helpers
* fix: adds factories + tests automatic tax rates
* fix: remove verbose
* fix: adds TotalsServiceProps
* fix: add shipping tax lines
* fix: add migration for shipping taxes
* fix: integration tests for shipping taxes
* fix: integration tests for shipping taxes
* fix: add integration tests for manual taxes
* fix: cart service - cleanup jsdoc
* feat: add /carts/id/taxes to manually calculate taxes
* feat: add integration tests for order tax calculations
* feat: adds cart completion strategy + create order w. tax lines
* fix: unit tests
* fix: merge
* fix: rm verbose
* fix: unit tests
* fix: unit tests
* fix: unit tests
* fix: ensure calculation for list orders
* fix: unit tests
* fix: integration tests
* docs: documents tax related methods and types
* fix: require either item_id or shipping_method_id
* feat: adds returns tests for new tax system
* feat: adds return lines + integration tests for swaps
* feat: return integration tests
* feat: adds product type tax rates
* feat: add tax management endpoints
* fix: create single migration
* fix: adds tax rates to js client
* fix: strats
* Fix/plugin tests (#998 )
* plugin testing setup
* fix: test sendgrid plugin
* fix: test sendgrid plugin
* chore: clean
* chore: clean
* fix: clean up tests
* fix: remove dirty import
* fix: sendgrid + brightpearl
* fix: plugin integration tests
* fix: klarna
* fix: shipping method tax
* fix: remove taxrates
* fix: unit tests
* fix: integration
* fix: integration
* fix: plugins tests
* fix: ignore plugins
* fix: tests
* fix: taxes (#1017 )
* fix: taxes
* fix: taxes
* fix: faulty ref
* fix: create tax-lines with claim items
* fix: snapshot tax-liens
* fix: allows integration test teardown to force deleting tables
* fix: tests
* fix: merge
* fix: adds tax-rates to client
* fix: adds tax-rates to medusa-react
* fix: tests
* fix: tests
* fix: add product types
* fix: adds tax provider endpoint + cascaded deletes on tax rate relations
* fix: move errors to service layer
* fix: cleanup api
* fix: unit tests
* fix: error handler in base-service
* fix: Add order region to swap on createFulfillment (#1110 )
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
2022-02-24 20:14:09 +01:00
Sebastian Rindom
1039d040e9
Add SQLite support for easy setup ( #336 )
...
* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process.
* Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected.
* Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js
* Small improvements to bin resolution
* Improvements to endpoint stability
2021-08-16 15:45:26 +02:00
Sebastian Rindom
cfe19f7f9d
feat: medusa-telemetry ( #328 )
...
* feat: adds a telemetry package to collect anonymous usage data
* fix: update telemetry host
* fix: adds medusa telemetry --disable
* fix: add tracking of link,login,new
* fix: interactively collect db credentials
* fix: require seed file
* fix: removes tracking from reporter
2021-08-05 12:23:05 +02:00
Sebastian Rindom
f4a7138a58
feat: CLI + local linking ( #313 )
...
* fix: allow local cmd without exiting process
* fix: improves cli experience
* fix: allow running link with --develop
* test: adds snapshot testing of error logs
* chore: cleanup
* feat(medusa-cli): new command (#320 )
* adds: new command
* fix: creates command for easy project setup
* chore: deps
* chore: deps
* fix: loggin
* fix: logging
* fix: adds cli as dependency in core
* fix: consolidates CLI in medusa
* fix: use project deps medusa bin
* fix: use project deps medusa bin
* fix: use cli path
* fix: new command setup db + env vars
* fix: new command with db seed
* fix: cleanup
2021-07-26 10:09:55 +02:00
Sebastian Rindom
d1ac092285
docs: link, login, whoami commands
2021-06-08 15:07:51 +02:00
Sebastian Rindom
5136c77401
feat(cli): adds seed script
2021-06-03 10:03:44 +02:00
Sebastian Rindom
953747f3d2
fix: better cli
2021-05-02 23:20:35 +02:00
Sebastian Rindom
bbd2f02d54
fix: setup to allow login to Medusa Cloud
2021-04-22 18:44:55 +02:00
Sebastian Rindom
f1baca3cbd
Replaces MongoDB support with PostgreSQL ( #151 )
...
- All schemas have been rewritten to a relational model
- All services have been rewritten to accommodate the new data model
- Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects
- Adds staged jobs to avoid putting jobs in the queue when transactions abort
- Adds atomic transactions to all methods with access to the data layer
Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com >
2021-01-26 10:26:14 +01:00
oliverheaps
782869a46b
Adds customer routes to admin
2020-07-09 10:28:58 +02:00
Sebastian Rindom
4c2aec2838
Adds publish/subscribe pattern to allow plugins and projects to hook into events ( #55 )
...
Also adds CLI to ease development.
2020-05-07 13:47:27 +02:00