32 Commits

Author SHA1 Message Date
Marc Roig
099cbbec8e
Merge branch 'develop' into v5/main (#20566)
* Merge branch 'develop' into v5/main

* fix: missing dependency

* fix: yarn lock

* fix: prettier

* fix(cloud-cli): update types and structure for v5 (#20567)

* chore: skip cloud deployment until ready

* fix: webhook tests

* chore: revert schema changes

* fix: versions

---------

Co-authored-by: Nathan Pichon <nathan.pichon@strapi.io>
2024-06-21 13:38:56 +02:00
Alexandre Bodin
799c526386 enhancement: rework cli UX 2024-06-06 17:04:38 +02:00
Ben Irvin
710e683d6b
enhancement: improve gitignore in generated projects (#20348) 2024-05-22 08:56:53 +02:00
Convly
4837089586 chore: export StrapiApp type and update usages in examples and templates
The StrapiApp is now explicitly exported as a type from StrapiApp.tsx. It is also utilized generators/app directories, refining the type of the app parameter in the bootstrap method from 'unknown' to 'StrapiApp'.
2024-03-21 11:05:17 +01:00
Convly
60a32fc438 chore: replace 'Strapi' type imports with 'Core.Strapi/LoadedStrapi' from '@strapi/types' 2024-03-21 09:49:48 +01:00
Marc Roig
98bdf8e07f
feat: count cm relations (#19804) 2024-03-18 10:49:37 +01:00
Josh
f324494fe9 Merge branch 'develop' into v5/main 2024-01-10 15:58:45 +00:00
Josh
09b9d36b22 Merge branch 'main' into develop 2024-01-10 14:37:01 +00:00
L-Weisz
0ece62b7f3
Merge branch 'develop' into feature/strapi-init-create-plugins 2024-01-09 17:36:57 +01:00
Leah Weisz
1dbb4b62d9 feat(app-generator): create plugins file when init strapi 2024-01-09 17:36:35 +01:00
Josh
4cd75b2523 Merge branch 'develop' into v5/main 2024-01-04 08:32:19 +00:00
Josh
ddbb55f2eb Merge branch 'main' into releases/4.17.0 2024-01-02 13:41:57 +00:00
Josh
5582657cb6
chore(generator): add runtime dir to gitignore (#18978) 2023-12-12 12:52:29 +00:00
Jen Tak
5fc763775e
Register logger middleware before errors middleware (#16921)
In the examples and project templates the "errors" middleware which turn
thrown errors into HTTP responses is registered before the "logger"
middleware. This causes any errors thrown in controllers to pierce
through the logger middleware resulting in these requests not being
logged.

Eg. when a controller throws a ValidationError the resulting HTTP 400
request is not logged at all.

Change the order of middleware registration so that the logger is
'above' the errors middleware and has a chance to log *all* requests.

Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
2023-12-05 09:28:41 +01:00
Ben Irvin
3e3b3393e2
chore: use mysql2 as the package for mysql (#18503) 2023-10-30 13:29:39 +01:00
Maxime Castres
dfc4d17eb4
feat(admin): add promoting EE features in CE projects by default (#18179)
* Add: promoting EE features in CE projects by default

* Add: pages

* Update: first review modifications

* Update: integrate locked features pages

* Update: rename pages + update links to the website

* Update: append config to default files

* Update: implement flags logic

* Update: implement promoteEnterpriseFeatures flag

* Update: revamp variable + add doc

* Update: add documentation

* Delete: ContentTypes.d.ts file
2023-10-23 17:20:59 +01:00
Alexandre Bodin
4fab0c711d Update engines 2023-10-11 11:15:35 +02:00
Boegie19
f9f70e25b5
feat(admin): allows users to disable NPS in strapi config. (#18287) 2023-10-10 17:11:40 +02:00
Ben Irvin
41844c2867
[Feature] Entity Service types (#17799)
Co-authored-by:  christiancp100 <christian.capeans.perez@strapi.io>
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>
Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Ben Irvin <innerdvations@users.noreply.github.com>
Co-authored-by: Christian <christiancp100@gmail.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
Co-authored-by: Marco Autiero <marcoautiero@gmail.com>
Co-authored-by: Convly <jean-sebastien.herbaux@epitech.eu>
Co-authored-by: christiancp100 <christian.capeans.perez@strapi.io>
Co-authored-by: Christian Capeans <christiancp100@gmail.com>
Co-authored-by: Bassel <basselkanso82@gmail.com>
2023-08-30 09:56:38 +02:00
Maxime Castres
a00f960fb4 Update: README files with new links + Strapi Cloud option 2023-08-02 15:20:22 +02:00
Josh
f7babb775e
Merge pull request #14807 from strapi/chore/init-playwright 2023-07-26 15:00:50 +01:00
Jean-Sébastien Herbaux
31519d5978
Merge pull request #16570 from xiaotiandada/main 2023-07-26 11:20:19 +02:00
Alexandre Bodin
4a615f2db4 test: add e2e tooling
Remove old cypress related files

Update config and reorg tests

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

init deits

fix: e2e test

chore: rename to e2e

chore: commit tar for data

Init playwright

Run test app before running playwright tests

feat: add beginning of authentication test

feat: add app template with database dumping ability

chore: pr amends

chore: remove unneeded workflow

fix: add private: true to the template so `test-apps` aren't published

docs: add docs

chore: add warning about DTS caveats

chore: tweak docs

docs(e2e): add correct route to api example for template

chore: fix package.json tests

chore: update from feature/DEITS

chore: updates from DTS

chore: update data-transfer

Update yarn.lock

fix: remove duplicate type

chore(e2e): set up folder structure

fix(e2e): avoid clearing 'admin_' DB tables through DTS or DB Dump

feat(e2e): DTS scripts and backup files

add route to change rate limit

fix wront appPath for API test in CI

no template by default when creating a test app

Fix typo double equal

fix template path for e2e tests

chore(e2e): fix broken signup spec

feat(e2e): basic logout test spec

Login e2e tests

globalSetup attempt

use withAdmin backup

cleanup

fix playwright config & rate limit test

remove example.spec.js

refactor and merge some login tests

Chore: Cleanup login and signup specs

feat(e2e): sign up password error cases

feat(e2e): add homepage expectation to signup spec

refactor(e2e)

refactor(e2e): signUp

refactor(e2e): use global login util for logout and logins specs

Init playwright

fix: remove duplicate type

chore: uncomment transfer route registering

Update yarn.lock

chore: update data-transfer

chore: updates from DTS

chore: update from feature/DEITS

chore: fix package.json tests

docs(e2e): add correct route to api example for template

chore: tweak docs

chore: add warning about DTS caveats

docs: add docs

fix: add private: true to the template so `test-apps` aren't published

chore: remove unneeded workflow

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

Init playwright

chore: commit tar for data

chore: rename to e2e

fix: e2e test

init deits

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

chore: pr amends

feat: add app template with database dumping ability

feat: add beginning of authentication test

Run test app before running playwright tests

Update config and reorg tests

Remove old cypress related files

chore(e2e): cleanup e2e dir

chore(docs): improve e2e testing documentation

chore(docs): PR feedback

chore: tweak action to run browsers in matrix & build packages

chore: fix tests based on merge

chore: shuffle e2e tests and add first conent-type

fix: tests

Make use of yarn linking for api & e2e tests

Chore: Fix running backend unit tests

Chore: Bring opts.run back

Chore: Update playwright

Chore: Update Playwright setup

fix: workflow

chore: fix path to package.json

chore: build ts projects before tests

chore: update e2e workflow

chore: add no-immutable

Use simpler transfer token to avoid misinterpretation

Remove console.log

Ensure that the custom transfer token exists in the e2e test app's database upon startup

Use the custom transfer token for transferring data to the e2e test app

Fix code analysis warning

Define and export a constant for the custom transfer token

Allow passing a custom access key for the transfer token service

chore: add test-apps to workspace

chore: update lockfile
Co-Authored-By: Josh <37798644+joshuaellis@users.noreply.github.com>
Co-Authored-By: Gustav Hansen <gu@stav.dev>
Co-Authored-By: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
Co-Authored-By: Jean-Sébastien Herbaux <25851739+Convly@users.noreply.github.com>
2023-07-25 14:20:49 +01:00
Ben Irvin
7f5b10ee76
Merge branch 'main' into chore/replace-node-14-with-20 2023-06-27 13:45:23 +02:00
Convly
a238c9705d Fix js support 2023-06-12 09:26:00 +02:00
Convly
7e901ba08d Update app & types generation for javascript projects, fix empty augmentation 2023-06-09 18:57:10 +02:00
Ben Irvin
cb2531ef6b
Merge branch 'main' into chore/replace-node-14-with-20 2023-05-25 10:16:29 +02:00
Boegie19
c2e33e9b59 fix template data.db location 2023-05-19 19:09:22 +02:00
Ben Irvin
c9f6a66dfb set minimum node to 16 2023-05-09 18:40:30 +02:00
Donnie Burgs
328e2b1407
Update env.example 2023-05-03 22:19:51 +08:00
Donnie Burgs
f386e3bb65
Update env.example 2023-04-29 20:20:18 +08:00
Alexandre BODIN
12d3068013
Migrate generators to ts (#16392) 2023-04-26 09:07:40 +02:00