video-react-new 0.20.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Fixed
11
+ - **Module Resolution:** Fixed a "Module not found" error when using the package with bundlers like Webpack. The `package.json` now points to the correct distribution files (`dist/` instead of `lib/`).
12
+ - **TypeScript Support:** Resolved an issue where `npm` would fail to find type definitions (`@types/video-react-new`). The package now correctly bundles and declares its own TypeScript types.
13
+ - **React 19 Compatibility:** Removed usage of the legacy `contextTypes` API in the `Player` component, fixing a critical error when using the library with React 19.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 video-react-new
3
+ Copyright (c) 2025 video-react
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4479,9 +4479,6 @@ function (_Component) {
4479
4479
 
4480
4480
  return Player;
4481
4481
  }(React.Component);
4482
- Player.contextTypes = {
4483
- store: PropTypes.object
4484
- };
4485
4482
  Player.propTypes = propTypes$t;
4486
4483
  Player.defaultProps = defaultProps$9;
4487
4484
  Player.displayName = 'Player';