New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-zod-api

Package Overview
Dependencies
Maintainers
0
Versions
429
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-zod-api - npm Package Versions

1
4142

0.5.0

Diff

Changelog

Source

v0.5.0

  • ConfigType changes:
// before
export interface ConfigType {
  server: {
    listen: number | string;
    cors: boolean;
    jsonParser?: NextHandleFunction;
    resultHandler?: ResultHandler;
  };
  logger: LoggerConfig | winston.Logger;
}

// after
export type ConfigType = (
  | {
      server: {
        // server configuration
        listen: number | string; // preserved
        jsonParser?: NextHandleFunction; // preserved
      };
    }
  | {
      // or your custom express app
      app: Express;
    }
) & {
  cors: boolean; // moved
  resultHandler?: ResultHandler; // moved
  logger: LoggerConfig | Logger;
};
  • More convenient way to attach routing to your custom express app:
// before
initRouting({ app, logger, config, routing });
// after
const config: ConfigType = { app /* ..., */ };
attachRouting(config, routing);
robintail
published 0.4.1 •

Changelog

Source

v0.4.1

  • Minor Readme file fixes and clarifications.
  • Nice dataflow diagram.
robintail
published 0.4.0 •

Changelog

Source

v0.4.0

  • Ability to specify your custom Winston logger in config.
  • createLogger() now accepts LoggerConfig as an argument:
// before
createLogger(config);
// after
createLogger(config.logger);
robintail
published 0.3.1 •

Changelog

Source

v0.3.1

  • Minor Readme file fixes and clarifications.
robintail
published 0.3.0 •

Changelog

Source

v0.3.0

  • Zod version is v3.0.0-alpha33.
  • The syntax for generating the Swagger/OpenAPI specification has changed:
// before
generateOpenApi().getSpecAsYaml();
// after
new OpenAPI().builder.getSpecAsYaml();
robintail
published 0.2.4 •

Changelog

Source

v0.2.4

  • Refactoring of Endpoint::execute() method.
robintail
published 0.2.3 •

robintail
published 0.2.2 •

Changelog

Source

v0.2.2

  • First published release.
  • Zod version is v3.0.0-alpha4.
1
4142
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc