@scaleway/outdated-browser
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

@scaleway/outdated-browser

A small web script to display outdated banner


Install

$ pnpm add @scaleway/outdated-browser

Usage

This package is intended to be used in tandem with a bundler Only one parameter is required, a regex of accepted browser user agents

Example with webpack:

import { getUserAgentRegExp } from 'browserslist-useragent-regexp'

const SUPPORTED_BROWSERS = getUserAgentRegExp({
  browsers: '> 1%, last 2 versions, Firefox ESR, not IE > 0, not IE_Mob > 0',
  allowHigherVersions: true,
  ignoreMinor: true,
  ignorePatch: true,
}).toString()

export default {
  entry: {
    outdated: '@scaleway/outdated-browser',
    main: './src/index.tsx',
  },
  plugins: [
    new webpack.DefinePlugin({
      SUPPORTED_BROWSERS,
    }),
  ],
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.1
1,439latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.1
1,439
3.0.0
0
2.0.2
428
2.0.12
2.0.01
1.2.11
1.2.0439
1.1.01

Package Sidebar

Install

npm i @scaleway/outdated-browser

Weekly Downloads

1,166

Version

3.0.1

License

MIT

Unpacked Size

13.3 kB

Total Files

10

Last publish

Collaborators

  • scaleway-serverless-team
  • codelax
  • quantumsheep
  • scaleway-bot
  • mprost
  • imanu
  • vincentaudebert
  • maliszewskid
  • phiphi