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 dependency @dzangolab/fastify-config to v0.75.2 #813

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@dzangolab/fastify-config (source) 0.70.0 -> 0.75.2 age adoption passing confidence

Release Notes

dzangolab/fastify (@​dzangolab/fastify-config)

v0.75.2

Compare Source

Features

v0.75.1

Compare Source

Bug Fixes
  • user: skip email verification check for get me route (#​806) (bde5d07)

v0.75.0

Compare Source

BREAKING CHANGES
  • (slonik): Removes createMockPool, Dev should use database connection instead of mocking.
  • (slonik): Removed config to disable slonik package migration .i.e. migrations.package is removed from SlonikOptions.
  • (slonik): Removed migration to auto update updated_at column for tables that that updated_at column in all schema but you can still run this sql from application or directly in postgres
/* Update updated_at column for a table. */
  CREATE OR REPLACE FUNCTION update_updated_at_column()
  RETURNS TRIGGER AS $$
  BEGIN
    NEW.updated_at = NOW();
    RETURN NEW;
  END;
  $$ LANGUAGE plpgsql;

  /* Add trigger to update updated_at for all tables (matching the filters). */
  CREATE OR REPLACE FUNCTION create_updated_at_trigger_to_all_tables()
  RETURNS void AS $$
  DECLARE
    table_name TEXT;
  DECLARE
    table_schema TEXT;
  BEGIN
    FOR table_name, table_schema IN
      SELECT
        c.table_name,
        c.table_schema
      FROM
        information_schema.columns c
        join information_schema.tables as t
        ON
        t.table_name = c.table_name
      WHERE
            c.column_name = 'updated_at'
            AND t.table_schema NOT IN ('pg_catalog', 'information_schema')
            AND t.table_schema NOT LIKE 'pg_toast%'
            AND t.table_schema NOT LIKE'pg_temp_%'
    LOOP
      IF NOT Exists(
          SELECT
            trigger_name
          FROM
            information_schema.triggers
          WHERE
            event_object_table = table_name
            AND trigger_name = CONCAT(table_name,'_updated_at_trigger')
            AND event_object_schema = table_schema
          )
      THEN
        EXECUTE 'CREATE OR REPLACE TRIGGER ' || table_name || '_updated_at_trigger BEFORE UPDATE ON ' || table_schema || '.' || table_name || ' FOR EACH ROW EXECUTE FUNCTION public.update_updated_at_column()';
      END IF;
    END LOOP;
  END;
  $$ LANGUAGE plpgsql;

  /* Execute create_updated_at_trigger_to_all_tables as a Function. */
  CREATE OR REPLACE FUNCTION add_updated_at_trigger_to_all_existing_tables()
  RETURNS void AS $$
  BEGIN
    EXECUTE public.create_updated_at_trigger_to_all_tables();
  END;
  $$ LANGUAGE plpgsql;
  /* Add trigger to all existing tables. */
  SELECT add_updated_at_trigger_to_all_existing_tables();
  /* Execute create_updated_at_trigger_to_all_tables as a Trigger */
  CREATE OR REPLACE FUNCTION add_updated_at_trigger_to_all_tables()
  RETURNS event_trigger AS $$
  BEGIN
    EXECUTE public.create_updated_at_trigger_to_all_tables();
  END;
  $$ LANGUAGE plpgsql;
  DROP EVENT TRIGGER IF EXISTS on_create_or_update_table;
  /* Add trigger to add trigger to update updated_at in new table or altered table. */
  CREATE EVENT TRIGGER
  on_create_or_update_table ON ddl_command_end
  WHEN TAG IN ('CREATE TABLE', 'CREATE TABLE AS', 'ALTER TABLE')
  EXECUTE FUNCTION add_updated_at_trigger_to_all_tables();
  /*
    The difference between add_updated_at_trigger_to_all_existing_tables
    and add_updated_at_trigger_to_all_tables is that
    add_updated_at_trigger_to_all_existing_tables is a function and executes
    create_updated_at_trigger_to_all_tables as function discernible by its return type
    RETURNS void AS $$.
    But, add_updated_at_trigger_to_all_tables returns
    create_updated_at_trigger_to_all_tables as a trigger discernible by its return type
    RETURNS event_trigger AS $$.
  */

0.74.1 (2024-10-23)

Bug Fixes
Features
  • firebase: support options as argument by firebase plugin (#​791) (653ab96)
  • slonik: support options as argument by slonik plugin (#​786) (fb1097d)

v0.74.1

Compare Source

Bug Fixes
Features
  • firebase: support options as argument by firebase plugin (#​791) (653ab96)
  • slonik: support options as argument by slonik plugin (#​786) (fb1097d)

v0.74.0

Compare Source

BREAKING CHANGES
  • By default, the package automatically registers its routes. However, route registration can be disabled if needed.
Features
  • graphql: support options as argument by graphql plugin (#​779) (b6faf81)
Reverts

0.73.1 (2024-09-25)

Features
  • user: support custom prefix for Supertokens API routes (#​775) (b286a20)

v0.73.1

Compare Source

Features
  • user: support custom prefix for Supertokens API routes (#​775) (b286a20)

v0.73.0

Compare Source

Features
  • mailer: add support for passing options as arguments to mailer plugin (#​772) (3211ef0)

0.72.1 (2024-09-11)

v0.72.1

Compare Source

v0.72.0

Compare Source

Features
  • slonik: add support for custom sql factory class (#​742) (4d63632)

0.71.3 (2024-08-28)

Bug Fixes
  • supress ts error not relevent to the current package (a2a63b6)

0.71.2 (2024-08-19)

0.71.1 (2024-08-14)

Bug Fixes
  • support removing graphql related packages when not used (#​719) (05ffba1)

v0.71.3

Compare Source

Bug Fixes
  • supress ts error not relevent to the current package (a2a63b6)

v0.71.2

Compare Source

v0.71.1

Compare Source

Bug Fixes
  • support removing graphql related packages when not used (#​719) (05ffba1)

v0.71.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Nov 11, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.75.2). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/dzangolab-fastify-config-0.x branch November 11, 2024 08:50
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.

1 participant