Skip to content
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

chore(deps): update directus/directus docker tag to v10 #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 1, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
directus/directus major 9.23.1 -> 10.6.3

Release Notes

directus/directus (directus/directus)

v10.6.3

Compare Source

⚠️ Potential Breaking Changes

Fixed the format of the stored field conditions value (#​19799)
Due to a bug introduced in v10.6.2, Field Conditions were saved incorrectly. This has been fixed and works again as expected.
However, if Field Conditions have been edited under this version, they need to be corrected. Please refer to https://github.com/directus/directus/issues/19757#issuecomment-1734162756 for instructions. Note that no other versions are affected by this!

✨ New Features & Improvements
🐛 Bug Fixes & Optimizations
📦 Published Versions

v10.6.2

Compare Source

⚠️ Potential Breaking Changes
  • @​directus/sdk
    • Allow for cross-origin cookies to be sent with fetch, fixed parameter order for refresh request, introduced withOptions helper and renamed asSearch to withSearch for consistency (#​19354 by @​br41nslug)
✨ New Features & Improvements
🐛 Bug Fixes & Optimizations
📝 Documentation
  • Switched the default format of config.js to ESM in order to fix import incompatibilities (#​19654 by @​paescuj)
  • Fixed broken link under the "Themes & Styling" extension page (#​19645 by @​ched-dev)
  • Added options allowing to override global APIs in the SDK (#​19606 by @​br41nslug)
  • Allow for cross-origin cookies to be sent with fetch, fixed parameter order for refresh request, introduced withOptions helper and renamed asSearch to withSearch for consistency (#​19354 by @​br41nslug)
  • Added Google SAML example to the documentation (#​19548 by @​AndreGKruger)
  • Fixed a typo in the "Use Hooks to Create Stripe Customers" guide (#​19667 by @​thame)
📦 Published Versions

v10.6.1

Compare Source

Re-release to make sure ARM Docker images are publishing correctly. See https://github.com/directus/directus/releases/tag/v10.6.0 for the release notes!

v10.5.3

Compare Source

🐛 Bug Fixes & Optimizations
📦 Published Versions

v10.5.2

Compare Source

🐛 Bug Fixes & Optimizations
📝 Documentation
📦 Published Versions

v10.5.1

Compare Source

🐛 Bug Fixes & Optimizations
📦 Published Versions

v10.5.0

Compare Source

✨ New Features & Improvements
🐛 Bug Fixes & Optimizations
📝 Documentation
📦 Published Versions

v10.4.3

Compare Source

✨ New Features & Improvements
🐛 Bug Fixes & Optimizations
📝 Documentation
📦 Published Versions

v10.4.2

Compare Source

🐛 Bug Fixes & Optimizations
📝 Documentation
📦 Published Versions

v10.4.0

Compare Source

⚠️ Potential Breaking Changes

There's a couple potentially breaking changes in this release that you should be aware of:

Consolidated environment variables for Redis use

Directus had various different functionalities that required you to use Redis when running Directus in a horizontally scaled environment (like caching/rate-limiting). With the release of 10.3, two more functionalities were added (websockets/flows). In 10.4, the configuration for these different parts will be combined into a single set of REDIS environment variables that are reused across the system.

Migration / Mitigation

Combine all the *_REDIS environment variables into a single shared one as followed:

Before

CACHE_STORE="redis"
CACHE_REDIS_HOST="127.0.0.1"
CACHE_REDIS_PORT="6379"
...
RATE_LIMITER_STORE="redis"
RATE_LIMITER_REDIS_HOST="127.0.0.1"
RATE_LIMITER_REDIS_PORT="6379"
...
SYNCHRONIZATION_STORE="redis"
SYNCHRONIZATION_REDIS_HOST="127.0.0.1"
SYNCHRONIZATION_REDIS_PORT="6379"
...
MESSENGER_STORE="redis"
MESSENGER_REDIS_HOST="127.0.0.1"
MESSENGER_REDIS_PORT="6379"

After

REDIS_HOST="127.0.0.1"
REDIS_PORT="6379"

CACHE_STORE="redis"
RATE_LIMITER_STORE="redis"
SYNCHRONIZATION_STORE="redis"
MESSENGER_STORE="redis"
Dropped support for Memcached

Directus used to support either memory, Redis, or Memcached for caching and rate-limiting storage. Since the 10.3 release, Redis has been used more integrated as part of WebSockets / Subscriptions and the ability to synchronize flows across containers. Given this deeper integration with Redis, and the low overall usage/adoption of Memcached across Directus installations, we've decided to sunset Memcached in favor of focussing on Redis as the primary solution for pub/sub and hot-storage across load-balanced Directus installations.

Updated Errors structure for Extensions

A new @directus/errors package is available that allows you to create custom DirectusErrors for use in extensions. Errors created through this package will be treated the same as errors thrown by the Directus API, which means you can use proper HTTP status codes, error extensions, codes, and messages. This does also mean that extensions no longer get an exceptions options passed in that contains some preconfigured errors.

Migration / Mitigation

Replace any system exceptions you extracted from exceptions with new errors created within the extension itself. We recommend prefixing the error code with your extension name for improved debugging, but you can keep using the system codes if you relied on that in the past.

Before

export default (router, { exceptions }) => {
	const { ForbiddenException } = exceptions;

	router.get('/', (req, res) => {
		throw new ForbiddenException();
	});
};

After

import { createError } from '@​directus/errors';

const ForbiddenError = createError('MY_EXTENSION_FORBIDDEN', 'No script kiddies please...');

export default (router) => {
	router.get('/', (req, res) => {
		throw new ForbiddenError();
	});
};
✨ New Features & Improvements

The New SDK is available in beta! We've been working hard on redesigning the SDK from the ground up to solve for / improve on some of the most often brought up pain points / shortcomings of the SDK. You can try it out by installing from the beta tag: npm install @​directus/sdk@beta. Please tell us any and all feedback in the #new-sdk channel on Discord! We'll be pushing out more beta releases of the SDK during the next couple weeks. Docs will be continuously updated on https://docs.directus.io/guides/sdk/getting-started.html

🐛 Bug Fixes & Optimizations
📝 Documentation
📦 Published Versions

v10.3.0

Compare Source

✨ New Features & Improvements

Configuration

📅 Schedule: Branch creation - "before 6am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 4b03945 to 71c972d Compare May 28, 2023 11:57
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 71c972d to fbce9d6 Compare June 13, 2023 18:24
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch 2 times, most recently from 56aeb27 to 90c0ffe Compare June 30, 2023 20:50
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 90c0ffe to 1ad6351 Compare July 11, 2023 17:44
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch 3 times, most recently from 8062161 to 5e7df98 Compare July 28, 2023 18:45
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 5e7df98 to 8152b53 Compare August 10, 2023 22:28
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 8152b53 to 1889f71 Compare August 25, 2023 19:20
@renovate renovate bot force-pushed the renovate/directus-directus-10.x branch from 1889f71 to 7a4bdff Compare October 1, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants