New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): add GeneratedCacheAdapter
for production usage
#4167
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B4nan
force-pushed
the
sync-init
branch
2 times, most recently
from
March 26, 2023 19:16
4772b56
to
ac9806d
Compare
B4nan
force-pushed
the
generated-cache-adapter
branch
from
March 26, 2023 19:52
cc18689
to
d01d328
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v6 #4167 +/- ##
==========================================
- Coverage 99.51% 99.47% -0.05%
==========================================
Files 217 218 +1
Lines 14152 14187 +35
Branches 3241 3249 +8
==========================================
+ Hits 14083 14112 +29
- Misses 66 72 +6
Partials 3 3
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
B4nan
force-pushed
the
generated-cache-adapter
branch
3 times, most recently
from
March 26, 2023 22:41
a215d0c
to
1f181a4
Compare
B4nan
force-pushed
the
generated-cache-adapter
branch
from
March 26, 2023 22:56
1f181a4
to
c716934
Compare
B4nan
added a commit
that referenced
this pull request
Apr 6, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Apr 10, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Apr 12, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Apr 26, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
May 14, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
May 14, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
May 24, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
May 26, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Jun 11, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Sep 10, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Sep 20, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Sep 24, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Sep 30, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
This was referenced Oct 2, 2023
Merged
B4nan
added a commit
that referenced
this pull request
Oct 2, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Oct 17, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Oct 21, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Oct 25, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Nov 2, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
B4nan
added a commit
that referenced
this pull request
Nov 5, 2023
MikroORM now lets you generate production cache bundle into a single JSON file via CLI: ```bash npx mikro-orm cache:generate --combined ``` This will create `./temp/metadata.json` file which can be used together with `GeneratedCacheAdapter` in your production configuration: ```ts import { GeneratedCacheAdapter, MikroORM } from '@mikro-orm/core'; await MikroORM.init({ metadataCache: { enabled: true, adapter: GeneratedCacheAdapter, options: { data: require('./temp/metadata.json') }, }, // ... }); ``` This way you can keep the `@mikro-orm/reflection` package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build. > The cache bundle can be statically imported, which is handy in case you are using some bundler. Closes #4164
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MikroORM now lets you generate production cache bundle into a single JSON file via CLI:
This will create
./temp/metadata.json
file which can be used together withGeneratedCacheAdapter
in your production configuration:This way you can keep the
@mikro-orm/reflection
package as a development dependency only, use the CLI to create the cache bundle, and depend only on that in your production build.Closes #4164