Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jco transpile: implementation of wasi-filesystem for Node.js #203

Closed
77 tasks done
yoshuawuyts opened this issue Oct 17, 2023 · 3 comments · Fixed by #326
Closed
77 tasks done

Jco transpile: implementation of wasi-filesystem for Node.js #203

yoshuawuyts opened this issue Oct 17, 2023 · 3 comments · Fixed by #326
Labels
enhancement New feature or request target-nodejs This issue is about the Node.js target wasi-preview2 This issue is about the Wasi Preview 2 API

Comments

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Oct 17, 2023

Tasks

  • preopens.get-directories
  • types.descriptor.read-via-stream
  • types.descriptor.write-via-stream
  • types.descriptor.append-via-stream
  • types.descriptor.advise
  • types.descriptor.sync-data
  • types.descriptor.get-flags
  • types.descriptor.get-type
  • types.descriptor.set-size
  • types.descriptor.set-times
  • types.descriptor.read
  • types.descriptor.write
  • types.descriptor.read-directory
  • types.descriptor.sync
  • types.descriptor.create-directory-at
  • types.descriptor.stat
  • types.descriptor.stat-at
  • types.descriptor.set-times-at
  • types.descriptor.link-at
  • types.descriptor.open-at
  • types.descriptor.readlink-at
  • types.descriptor.remove-directory-at
  • types.descriptor.rename-at
  • types.descriptor.symlink-at
  • types.descriptor.access-at
  • types.descriptor.unlink-file-at
  • types.descriptor.is-same-object
  • types.descriptor.metadata-hash
  • types.descriptor.metadata-hash-at
  • types.directory-entry-stream.read-directory-entry
  • types.filesystem-error-code

Conformance Tests

  • api_read_only
  • cli_directory_list
  • cli_file_append
  • cli_file_dir_sync
  • cli_file_read
  • preview1_close_preopen
  • preview1_dangling_fd
  • preview1_dangling_symlink
  • preview1_dir_fd_op_failures
  • preview1_directory_seek
  • preview1_fd_advise
  • preview1_fd_filestat_get
  • preview1_fd_filestat_set
  • preview1_fd_flags_set
  • preview1_fd_readdir
  • preview1_file_allocate
  • preview1_file_pread_pwrite
  • preview1_file_seek_tell
  • preview1_file_truncation
  • preview1_file_unbuffered_write
  • preview1_interesting_paths
  • preview1_nofollow_errors
  • preview1_overwrite_preopen
  • preview1_path_exists
  • preview1_path_filestat
  • preview1_path_link
  • preview1_path_open_create_existing
  • preview1_path_open_dirfd_not_dir
  • preview1_path_open_missing
  • preview1_path_open_nonblock
  • preview1_path_open_preopen
  • preview1_path_open_read_write
  • preview1_path_rename
  • preview1_path_rename_dir_trailing_slashes
  • preview1_path_rename_file_trailing_slashes
  • preview1_path_symlink_trailing_slashes
  • preview1_poll_oneoff_files
  • preview1_readlink
  • preview1_regular_file_isatty
  • preview1_remove_directory_trailing_slashes
  • preview1_remove_nonempty_directory
  • preview1_renumber
  • preview1_symlink_create
  • preview1_symlink_filestat
  • preview1_symlink_loop
  • preview1_unlink_file_trailing_slashes
@yoshuawuyts yoshuawuyts added this to the Preview 2 milestone Oct 17, 2023
@yoshuawuyts yoshuawuyts added enhancement New feature or request wasi-preview2 This issue is about the Wasi Preview 2 API target-nodejs This issue is about the Node.js target labels Oct 17, 2023
@yoshuawuyts yoshuawuyts changed the title Jco transpile: implementation of wasi-filesystem for node.js Jco transpile: implementation of wasi-filesystem for Node.js Oct 17, 2023
@yoshuawuyts
Copy link
Member Author

To implement the lock functions, we can probably (re)-use https://www.npmjs.com/package/fd-lock

@manekinekko
Copy link
Collaborator

Looks like lock methods have been removed from Preview 2 for now.

@yoshuawuyts
Copy link
Member Author

From today's sync meeting: once #244 this should mostly be an exercise in checkboxes. Implement a function, write a test, check in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request target-nodejs This issue is about the Node.js target wasi-preview2 This issue is about the Wasi Preview 2 API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants