Compare commits

..

1 commit

Author SHA1 Message Date
dependabot[bot]
d92befdb40
[skip ci]: Bump contentful-management from 10.38.3 to 10.46.4
Bumps [contentful-management](https://github.com/contentful/contentful-management.js) from 10.38.3 to 10.46.4.
- [Release notes](https://github.com/contentful/contentful-management.js/releases)
- [Changelog](https://github.com/contentful/contentful-management.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/contentful/contentful-management.js/compare/v10.38.3...v10.46.4)

---
updated-dependencies:
- dependency-name: contentful-management
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-29 07:36:19 +00:00
6 changed files with 23 additions and 47 deletions

View file

@ -1,8 +0,0 @@
#changelog
---
"apps": minor
---
### Added
- `apps/emails-and-messages/.env.template`: Described the new environment variable and how it works
- `apps/emails-and-messages/src/saleor-app.ts`: Added case "redis" for switch(AplType), which takes advantage of the [RedisAPL PR](https://github.com/saleor/app-sdk/pull/287) I submitted

View file

@ -27,7 +27,7 @@
"@trpc/server": "10.38.1",
"@urql/exchange-auth": "^2.1.4",
"@vitejs/plugin-react": "4.0.4",
"contentful-management": "10.38.3",
"contentful-management": "10.46.4",
"graphql": "16.7.1",
"graphql-tag": "^2.12.6",
"jsdom": "^20.0.3",

View file

@ -7,12 +7,6 @@ APL=
REST_APL_ENDPOINT=
REST_APL_TOKEN=
# To use Redis as an APL store, set APP_API_BASE_URL and REDIS_URL.
# URL is in format redis[s]://[[username][:password]@][host][:port][/db-number],
# so for example redis://alice:foobared@awesome.redis.server:6380
# For saleor-platform, thats: `redis://redis:6379/1`
REDIS_URL=
APP_LOG_LEVEL=info
# Local development variables. When developped locally with Saleor inside docker, these can be set to:
@ -21,5 +15,4 @@ APP_LOG_LEVEL=info
# If developped with tunnels, set this empty, it will fallback to default Next's localhost:3000
# https://docs.saleor.io/docs/3.x/developer/extending/apps/local-app-development
APP_IFRAME_BASE_URL=
APP_API_BASE_URL=
APP_API_BASE_URL=

View file

@ -1,4 +1,4 @@
import { APL, FileAPL, RedisAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
import { APL, FileAPL, SaleorCloudAPL, UpstashAPL } from "@saleor/app-sdk/APL";
import { SaleorApp } from "@saleor/app-sdk/saleor-app";
const aplType = process.env.APL ?? "file";
@ -6,12 +6,6 @@ const aplType = process.env.APL ?? "file";
export let apl: APL;
switch (aplType) {
case "redis": {
if (!process.env.REDIS_URL) throw new Error("Missing redis url");
if (!process.env.APP_API_BASE_URL)
throw new Error("Redis relies on APP_API_BASE_URL to store keys, please set env variable");
apl = new RedisAPL(new URL(process.env.REDIS_URL), process.env.APP_API_BASE_URL);
}
case "upstash":
apl = new UpstashAPL();

View file

@ -1,7 +1,5 @@
{
"extends": [
"//"
],
"extends": ["//"],
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
@ -23,8 +21,7 @@
"NEXT_PUBLIC_SENTRY_DSN",
"SENTRY_ENVIRONMENT",
"APP_IFRAME_BASE_URL",
"APP_API_BASE_URL",
"REDIS_URL"
"APP_API_BASE_URL"
]
}
}

View file

@ -96,8 +96,8 @@ importers:
specifier: 4.0.4
version: 4.0.4(vite@4.4.8)
contentful-management:
specifier: 10.38.3
version: 10.38.3
specifier: 10.46.4
version: 10.46.4
graphql:
specifier: 16.7.1
version: 16.7.1
@ -6178,8 +6178,8 @@ packages:
dev: true
optional: true
/@contentful/rich-text-types@16.2.0:
resolution: {integrity: sha512-4BHC+mfa50JB70epzpnas4EkiuB3mGdBZ5Rp8w7R5wXvswEf8TLg5yGau2FxmZeEjrAkDrt4vzBLVQ8v3Y//Jw==}
/@contentful/rich-text-types@16.3.0:
resolution: {integrity: sha512-OfQmAu5bxE0CgQA3WlUleVej+ifFG/iXmB2DmUl4EyWyFue1aiIvfjxQhcDRSH4n1jUNMJ6L1wInZL8uV5m3TQ==}
engines: {node: '>=6.0.0'}
dev: false
@ -12334,11 +12334,12 @@ packages:
- debug
dev: false
/axios@0.27.2:
resolution: {integrity: sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==}
/axios@1.5.1:
resolution: {integrity: sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==}
dependencies:
follow-redirects: 1.15.2
form-data: 4.0.0
proxy-from-env: 1.1.0
transitivePeerDependencies:
- debug
dev: false
@ -13325,30 +13326,29 @@ packages:
engines: {node: '>= 0.6'}
dev: true
/contentful-management@10.38.3:
resolution: {integrity: sha512-hAuUSEfPYMQ6aplaENkZM5Zvhg9q+yiCsbm++pyHadUr5x+XKC9D85fASXuA4vI0hB/K66YHaqBiJ7CwAHT9bQ==}
/contentful-management@10.46.4:
resolution: {integrity: sha512-swOTlKO6AeCRnD5w237ey6wKDXty8shFVm0AisKO2w5seQINlFytgCkZd89E0lxjg4zgjb9maa7AScUtyQUd5w==}
engines: {node: '>=14'}
dependencies:
'@contentful/rich-text-types': 16.2.0
'@contentful/rich-text-types': 16.3.0
'@types/json-patch': 0.0.30
axios: 0.27.2
contentful-sdk-core: 7.1.0
axios: 1.5.1
contentful-sdk-core: 8.1.0
fast-copy: 3.0.1
lodash.isplainobject: 4.0.6
type-fest: 3.13.0
type-fest: 4.3.2
transitivePeerDependencies:
- debug
dev: false
/contentful-sdk-core@7.1.0:
resolution: {integrity: sha512-RzTPnRsbCdVAhyka3wa9sDsAu9YsxoerNgaMqd63Ljb7qpG2zkdHcP7NTfyIbuHDJNJdAQdifyafxfEEwP+q/w==}
/contentful-sdk-core@8.1.0:
resolution: {integrity: sha512-ZXTtrkrx4OlRcVY0WLihrskF+BSuHe7QZuWA8DNEeTlHmkPXAVch9Og5TJDoyGeqNrArR3Ovd7yfaG+1QYo+ag==}
engines: {node: '>=12'}
dependencies:
fast-copy: 2.1.7
lodash.isplainobject: 4.0.6
lodash.isstring: 4.0.1
p-throttle: 4.1.1
qs: 6.11.2
dev: false
/convert-source-map@1.9.0:
@ -21564,9 +21564,9 @@ packages:
engines: {node: '>=12.20'}
dev: true
/type-fest@3.13.0:
resolution: {integrity: sha512-Gur3yQGM9qiLNs0KPP7LPgeRbio2QTt4xXouobMCarR0/wyW3F+F/+OWwshg3NG0Adon7uQfSZBpB46NfhoF1A==}
engines: {node: '>=14.16'}
/type-fest@4.3.2:
resolution: {integrity: sha512-VpwuOgnTsQUUWi0id8Hl4/xiQ+OoaeJGe8dnFjzubJYe/lOc2/d1Qx/d3FqWR0FlpOG/cvukAXfB12A49Y4iiA==}
engines: {node: '>=16'}
dev: false
/type-is@1.6.18: