
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
mmb-seasonal
Advanced tools
Create a calendar of date and time events, attach arbitrary objects to them and ask which objects are current at any point in time.
Uses the flexible time parsing of Time.parse to be easy to use and the timezone and DST handling of tzinfo.
Originally conceived for making web sites look and behave differently depending on the time of day or year.
Example (print holiday greetings):
require 'seasonal'
holidays = Seasonal::Calendar.new
holidays.push(Seasonal::Event.new('Merry Christmas', 'America/New_York',
:on => 'dec 25'))
holidays.push(Seasonal::Event.new("April Fool's Day", 'America/New_York',
:on => 'apr 1'))
holidays.going_on { |e| puts e }
Example (make text red between 9:00 and 10:00 am):
require 'seasonal'
colors = Seasonal::Calendar.new
colors.push(Seasonal::Event.new('#ff0000', 'America/New_York',
:start => '9:00am', :end => '10:00am'))
color = colors.going_on(:or_if_none => '#000000')
puts "test
"
Example (sale ends Jul 10):
require 'seasonal'
sales = Seasonal::Calendar.new
sales.push(Seasonal::Event.new('Everything on sale', 'America/New_York',
:end => 'jul 10 2009'))
sales.going_on { |e| puts e }
FAQs
Unknown package
We found that mmb-seasonal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.