Skip to content

Release v1.0.6 - Fixed Package Structure

Latest

Choose a tag to compare

@mr-tanta mr-tanta released this 09 Jul 16:06
· 43 commits to main since this release

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.6

Usage

// 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

v1.0.5...v1.0.6