Releases: mr-tanta/ndpr-toolkit
Release v1.0.6 - Fixed Package Structure
Major Fix: Correct Package Structure
This release fixes the npm package structure issues from v1.0.5.
Bug Fixes
- Fixed import paths - you can now use standard imports like
import { ConsentBanner } from '@tantainnovative/ndpr-toolkit' - Corrected package publishing directory
- Removed unnecessary files from npm package
Improvements
- 50% reduction in package size: 305.5 kB (was 614.5 kB)
- Clean package structure with only essential files
- Proper CommonJS and ESM module support
- All TypeScript definitions included
Installation
npm install @tantainnovative/ndpr-toolkit@1.0.6Usage
// Now works correctly\!
import { ConsentBanner, ConsentManager } from '@tantainnovative/ndpr-toolkit';
function App() {
return (
<ConsentManager>
<ConsentBanner
options={[...]}
onSave={(consents) => console.log(consents)}
/>
</ConsentManager>
);
}What's Fixed
- Import paths now work without specifying full path
- Package only includes necessary files (dist/, README.md, package.json)
- TypeScript types properly exported
- Both CommonJS and ESM modules work correctly
Full Changelog
Release v1.0.5
What's Changed
🐛 Bug Fixes
- Fixed all TypeScript type safety issues for strict mode compliance
- Resolved SSR hydration issues in Checkbox component
- Fixed XSS vulnerabilities through input sanitization
- Fixed accessibility issues across all components
- Fixed DSRRequest interface mismatches
- Fixed ConsentBanner defaultValue type issues
- Fixed PolicySection interface to use 'template' property
🔧 Improvements
- Updated package name to @tantainnovative/ndpr-toolkit
- Added comprehensive error handling with SafeStorage wrapper
- Improved type definitions and exports
- Enhanced WCAG compliance across components
- Added .npmignore to exclude development files from npm package
📦 Dependencies
- Switched from npm to pnpm for better dependency management
- Updated GitHub Actions workflows for pnpm support
🏗️ Infrastructure
- Added React Error Boundaries for better error handling
- Implemented proper type exports for all components
- Fixed timestamp types across the codebase
Installation
npm install @tantainnovative/ndpr-toolkit@1.0.5Full Changelog
NDPR Toolkit v1.0.0 - Official Release
NDPR Toolkit v1.0.0 Release Notes
Release Date: May 4, 2025
Package: @tantainnovative/ndpr-toolkit
Version: 1.0.0 (Initial Stable Release)
Overview
We are excited to announce the official release of the NDPR Toolkit v1.0.0, a comprehensive solution for implementing Nigeria Data Protection Regulation (NDPR) compliance features in web applications. This enterprise-ready toolkit provides a complete set of components, hooks, and utilities to help organizations meet their NDPR compliance obligations efficiently and effectively.
Key Features
1. Privacy Policy Management
- PolicyGenerator: Create customizable, NDPR-compliant privacy policies with an intuitive form interface
- PolicyPreview: Display generated policies with professional formatting and section navigation
- PolicyExporter: Export policies in multiple formats (PDF, HTML, Markdown) with compliance notices
2. Consent Management
- ConsentBanner: Implement cookie consent banners with customizable appearance and behavior
- ConsentManager: Track and manage user consent preferences across your application
- ConsentStorage: Securely store and retrieve consent records with built-in persistence
3. Data Subject Rights (DSR)
- DSRRequestForm: Collect and validate data subject requests with comprehensive form validation
- DSRTracker: Monitor the status and progress of data subject requests
- DSRDashboard: Visualize and manage all data subject requests in one place
4. Data Protection Impact Assessment (DPIA)
- DPIAQuestionnaire: Guide users through the DPIA process with step-by-step questionnaires
- DPIAReport: Generate comprehensive DPIA reports based on questionnaire responses
- StepIndicator: Track progress through multi-step DPIA processes
5. Breach Notification
- BreachReportForm: Collect essential information about data breaches
- BreachRiskAssessment: Evaluate the risk level of reported breaches
- RegulatoryReportGenerator: Create NDPR-compliant breach notification reports
- BreachNotificationManager: Manage the entire breach notification workflow
Technical Specifications
- Framework Compatibility: React 18+
- TypeScript Support: Full TypeScript definitions for all components and utilities
- Modular Architecture: Use only what you need with tree-shakable imports
- Customization: Extensive theming and styling options
- Accessibility: WCAG 2.1 AA compliant components
- Performance: Optimized bundle size with minimal dependencies
Installation
# Using npm
npm install @tantainnovative/ndpr-toolkit
# Using yarn
yarn add @tantainnovative/ndpr-toolkit
# Using pnpm
pnpm add @tantainnovative/ndpr-toolkitUsage Example
import { ConsentBanner, useConsent } from '@tantainnovative/ndpr-toolkit';
function App() {
const { consent, updateConsent } = useConsent();
return (
<div className="app">
<ConsentBanner
title="Cookie Consent"
description="We use cookies to enhance your browsing experience."
cookieCategories={[
{ id: 'necessary', name: 'Necessary', required: true },
{ id: 'analytics', name: 'Analytics' },
{ id: 'marketing', name: 'Marketing' }
]}
onAccept={(categories) => updateConsent(categories)}
onReject={() => updateConsent(['necessary'])}
/>
{/* Your app content */}
</div>
);
}Documentation
Comprehensive documentation is available at:
Breaking Changes
This is the initial stable release, so there are no breaking changes from previous versions.
Bug Fixes
- Fixed conditional rendering in policy templates
- Resolved issues with form validation in DSR components
- Improved error handling in consent management
- Fixed accessibility issues in UI components
Performance Improvements
- Optimized bundle size with tree-shaking
- Improved rendering performance of complex forms
- Reduced memory usage in data management utilities
Security Enhancements
- Implemented secure storage for consent records
- Added data sanitization for all user inputs
- Enhanced protection against XSS attacks
Upcoming Features
We're already working on the next release, which will include:
- Integration with popular authentication providers
- Enhanced reporting capabilities
- Additional export formats
- Internationalization support
Acknowledgements
We would like to thank all contributors and early adopters who provided valuable feedback during the development of this toolkit.
License
MIT License - See LICENSE file for details.
Support
For enterprise support, please contact dev@tantainnovative.com
© 2025 Tanta Innovative. All rights reserved.