onelaraveljs 2.0.0 → 2.1.0

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.
Files changed (2) hide show
  1. package/index.js +8 -45
  2. package/package.json +5 -7
package/index.js CHANGED
@@ -1,48 +1,11 @@
1
- // OneJS Framework Core Export
2
- // V1 (Legacy - Backward Compatible)
3
- import { App } from './src/v1/app.js';
4
- import { viewLoader } from './src/v1/core/ViewLoader.js';
5
- import { EventService } from './src/v1/core/services/EventService.js';
6
- import initApp from './src/v1/init.js';
7
- import { View } from './src/v1/core/View.js';
8
- import logger from './src/v1/core/services/LoggerService.js';
9
- import { StoreService } from './src/v1/core/services/StoreService.js';
10
- import { HttpService } from './src/v1/core/services/HttpService.js';
11
- import { StorageService } from './src/v1/core/services/StorageService.js';
12
-
13
- // V2 Core Framework (Main Library)
14
- import * as V2Core from './dist/index.js';
15
-
16
- // Re-export all V2 components as main exports
1
+ /**
2
+ * OneJS Framework V2.0.0
3
+ * Modern TypeScript Framework for Laravel Integration
4
+ *
5
+ * Pure V2 Export - V1 has been completely removed
6
+ */
7
+
8
+ // Export all V2 framework components
17
9
  export * from './dist/index.js';
18
10
 
19
- // V1 Legacy Support (Backward Compatible)
20
- export { OneMarkup } from './src/v1/core/OneMarkup.js';
21
-
22
- // V1 Services (Legacy - Use V2 equivalents)
23
- export const Store = StoreService.getInstance();
24
- export const Storage = StorageService.getInstance();
25
- export const EventBus = EventService.getInstance();
26
- export const Http = new HttpService();
27
-
28
- // V1 Components (Legacy - Deprecated)
29
- export {
30
- App as LegacyApp,
31
- viewLoader as legacyViewLoader,
32
- EventService as LegacyEventService,
33
- initApp as legacyInitApp,
34
- View as LegacyView,
35
- StoreService as LegacyStoreService,
36
- HttpService as LegacyHttpService,
37
- StorageService as LegacyStorageService,
38
- logger as legacyLogger
39
- };
40
-
41
- // V2 as Default Export
42
- export default V2Core;
43
-
44
- // Backward compatibility aliases
45
- export const V2 = V2Core;
46
- export const V1 = { App, viewLoader, EventService, initApp, View, StoreService, HttpService, StorageService, logger };
47
-
48
11
 
package/package.json CHANGED
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "onelaraveljs",
3
- "version": "2.0.0",
4
- "description": "OneJS V2 Framework - Modern JavaScript Framework for Laravel Integration",
3
+ "version": "2.1.0",
4
+ "description": "OneJS V2 TypeScript Framework - Modern JavaScript Framework for Laravel (V1-free)",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
- "./plugins": "./plugins.js",
9
- "./legacy": "./src/v1/index.js",
10
- "./v2": "./dist/index.js",
11
- "./v2/core": "./dist/core/index.js",
12
- "./v2/scripts/build-views": "./src/v2/scripts/build-views.js"
8
+ "./plugins": "./plugins.js",
9
+ "./core": "./dist/core/index.js",
10
+ "./scripts/build-views": "./src/v2/scripts/build-views.js"
13
11
  },
14
12
  "bin": {
15
13
  "onejs-build": "bin/onejs-build.js"